AI Agents

Control Spotify Playback from Telegram with AI Commands

14 nodes 311 153 Automatic trigger
Download

Workflow Description

Automates music control by allowing users to send natural language commands through Telegram to Spotify. OpenAI processes user intent from messages, then executes corresponding Spotify actions like play, pause, or skip with confirmation feedback.

How it works

  1. 1.Receive and parse Telegram messages for music control intent
  2. 2.Process natural language commands through OpenAI to determine action
  3. 3.Execute corresponding Spotify playback actions (play, pause, skip)
  4. 4.Send confirmation status back to user via Telegram

Use cases

  • Play a specific song on Spotify using simple Telegram text messages
  • Control playback without opening the Spotify app directly
  • Create dynamic playlists based on conversational requests from Telegram

Requirements

  • Active Telegram account with bot integration
  • OpenAI API key configured
  • Authenticated Spotify account connection

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 311
Downloads 153

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