AI Agents

Control Spotify Playback with Smart Telegram Commands

14 nodes 322 141 Automatic trigger
Download

Workflow Description

An automation that receives messages from Telegram, processes them with artificial intelligence to play songs and playlists on Spotify automatically, enabling music control through natural language without opening the app.

How it works

  1. 1.Receive a text message from a Telegram user requesting music playback
  2. 2.Process the request with OpenAI to understand user intent and search for the requested song or playlist
  3. 3.Play the audio track on Spotify and send a confirmation message back to the Telegram user

Use cases

  • Control music playlists without opening the Spotify app directly
  • Request specific songs using natural language like 'play relaxing study music'
  • Enjoy a seamless and quick music experience while working or studying

Requirements

  • Active Telegram account and connected Spotify account with API access
  • Valid OpenAI API key and proper bot permissions in Telegram
  • Stable internet connection and full permissions to control Spotify playback

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Telegram OpenAI If

Details

Trigger Automatic trigger
Nodes 14
Apps 3
Views 322
Downloads 141

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (14)

/

Telegram Trigger

Set

#1

OpenAI - Ask about a track

OpenAI

#2

Search track

If

#3

Add song

If

#4

Next Song

If

#5

Resume play

If

#6

Currently Playing

If

#7

Sticky Note

Sticky Note

#8

Merge

Merge

#9

If

If

#10

Message parser

Set

#11

Not found error message

Set

#12

Return message to Telegram

Set

#13

Define Now Playing

Set

#14