AutomationMart
Home/Browse/Create playlists and control your Spotify player with GPT-4
n8n

Create playlists and control your Spotify player with GPT-4

n8nn8n22 modulesv1.0
DiscordOpenAITelegram

This n8n template provides a powerful AI-powered chatbot that acts as your personal Spotify DJ. Simply tell the chatbot what kind of music you're in the mood for, and it will intelligently create a custom playlist, give it a fitting name, and populate it with relevant tracks directly in your Spotify account. The workflow is built to be flexible, allowing you to easily change the underlying AI model to your preferred provider, making it a versatile starting point for any AI-driven project. W

At a glance

Create playlists and control your Spotify player with GPT-4 is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Discord, OpenAI, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Discord, OpenAI, Telegram
Modules
22
Price
Free
Version
v1.0
Create playlists and control your Spotify player with GPT-4 workflow diagram

About this workflow

This n8n template provides a powerful AI-powered chatbot that acts as your personal Spotify DJ. Simply tell the chatbot what kind of music you're in the mood for, and it will intelligently create a custom playlist, give it a fitting name, and populate it with relevant tracks directly in your Spotify account. The workflow is built to be flexible, allowing you to easily change the underlying AI model to your preferred provider, making it a versatile starting point for any AI-driven project. Who is this for? Music lovers: Instantly create playlists for any activity, mood, or genre without interrupting your flow. Developers & AI enthusiasts: A perfect starting point to understand how to build a functional AI Agent that uses tools to interact with external services. Automation experts: See a practical example of how to chain AI actions and sub-workflows for more complex, stateful automations. What problem does this solve? Manually creating a good playlist is time-consuming. You have to think of a name, search for individual songs, and add them one by one. This workflow solves that by: Automating playlist creation: Turns a simple natural language request (e.g., "I need a playlist for my morning run") into a fully-formed Spotify playlist. Reducing manual effort: Eliminates the tedious task of searching for and adding multiple tracks. Providing player control: Allows you to manage your Spotify player (play, pause, next) directly from the chat interface. Centralizing music management: Acts as a single point of control for both creating playlists and managing playback. How it works 1. Trigger & input: The workflow starts when you send a message in the Chat Trigger interface. 2. AI agent & tool-use: An AI Agent, powered by a Large Language Model (LLM), interprets your message. It has access to a set of "tools" that allow it to interact with Spotify. 3. Playlist creation sub-workflow: If you ask for a new playlist, the Agent calls a sub-workflow using the Create new playlist tool. This sub-workflow uses another AI call to brainstorm a creative playlist name and a list of suitable songs based on your request. 4. Spotify actions: The sub-workflow then connects to Spotify to: Create a new, empty playlist with the generated name. Search for each song from the AI's list to get its official Spotify Track ID. Add each track to the new playlist. 5. Player control: If your request is to control the music (e.g., "pause the music"), the Agent uses the appropriate tool (Pause player, Resume player, etc.) to directly control your active Spotify player. Setup 1. Accounts & API keys: You will need active accounts and credentials for: Your AI provider (e.g., OpenAI, Groq, local LLMs via Ollama): To power the AI Agent and the playlist generation. Spotify: To create playlists and control the player. You'll need to register an application in the Spotify Developer Dashboard to get your credentials. 2. Configure credentials: Add your AI provider's API key to the Chat Model nodes. The template uses OpenAI by default, but you can easily swap this out for any compatible Langchain model node. Add your Spotify OAuth2 credentials to all Spotify and Spotify Tool nodes. 3. Activate workflow: Once all credentials are set and the workflow is saved, click the "Active" toggle. You can now start interacting with your Spotify AI Agent via the chat panel! Taking it further This template is a great foundation. Here are a few ideas to expand its capabilities: Become the party DJ: Make the Chat Trigger's webhook public. You can then generate a QR code that links to the chat URL. Party guests can scan the code and request songs directly from their phones, which the agent can add to a collaborative playlist or the queue. Expand the agent's skills: The Spotify Tool node has more actions available. Add a new tool for Add to Queue so you can ask the agent to queue up a specific song without creating a whole new playlist. Integrate with other platforms: Swap the Chat Trigger for a Telegram or Discord trigger to build a Spotify bot for your community. You could also connect it to a Webhook to take requests from a custom web form.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Altcoin news to LinkedIn posts with DeepSeek AI & Google Sheets

Altcoin News to LinkedIn Posts with DeepSeek AI & Google Sheets Automate your daily crypto content creation and publishing using this n8n workflow. This automation fetches the latest altcoin news from an RSS feed, rewrites it into LinkedIn-style posts using DeepSeek AI, stores it in Google Sheets, and schedules it for publishing—completely hands-free. <h3🔧 Prerequisites</h3 n8n instance (cloud or self-hosted) DeepSeek AI or OpenAI API key Google account with Sheets API enabled RSS feed URL of yo

Free

Create personalized responses using ChatGPT and send data via a custom webhook

Automatically generate personalized responses using ChatGPT and send data via a custom webhook. Parse JSON and send data with HTTP action.

Free

AI guest post generator with OpenAI & Google Sheets automation

About this Template This n8n template automates the process of writing SEO guest post content using OpenAI, based on rules and topics provided in a Google Sheet. The generated articles are saved into a separate sheet for outreach or publishing. Use cases include: SEO guest post generation Content marketing automation for agencies Outreach planning and editorial automation 💡 Good to Know OpenAI API usage costs apply based on the selected model (e.g., GPT-4). This automation uses Google

Free

AI-powered accounting reports from Sabre EDI with GPT-4 and Pinecone RAG

This workflow automates the process of reading EDI files generated by Sabre, parsing them using an AI Agent, and producing structured accounting reports like: 📌 Accounts Receivable (AR) Summary 📌 Tax and Surcharges Report It also uses Retrieval-Augmented Generation (RAG) to vectorize the Sabre Interface User Record (IUR)—a 154-page technical document—so that the AI agent can reference it when clarification is required while generating reports. ⚙️ Tools & Integrations Used Component:Tool/S

Free

AI-powered Scrum Master assistant with OpenAI, Slack and Asana integration

What is This? This automation simulates Scrum Master role on daily meetings. Essentially it is an AI Scrum Master using different sources of data. As intelligent support system for Scrum Masters that leverages data from Asana, Slack, and direct developer responses for comprehensive sprint status analysis and identification of areas requiring intervention. As such it is usable for Scrum Masters (of course) but Scrum Team aswell, Product Owner and possibly Business Owner. Who is it For?

Free

🏛️ Daily US Congress members stock trades report via Firecrawl + OpenAI + Gmail

What This Workflow Does This workflow automatically scrapes recent high-value congressional stock trades from Quiver Quantitative, summarizes the key transactions, and delivers a neatly formatted report to your inbox — every single day. It combines Firecrawl's powerful content extraction, OpenAI's GPT formatting, and n8n's automation engine to turn raw HTML data into a digestible, human-readable email. Watch Full Tutorial on how to build this workflow here: 🔧 How It Works 🕒 Schedule Trigger Fire

Free

AI-powered interview preparation system using local LLM for campus placements

Overview An AI-powered, end-to-end interview preparation and mentoring automation system for campus placements. It enables placement cells to generate hyper-personalized 4-page interview preparation PDFs for shortlisted students, by combining job descriptions (JDs), candidate data, and LLMs via LangChain and Ollama. Note: This template requires self-hosted n8n to run community nodes like LangChain and Ollama. What This Workflow Does Accepts a CSV of shortlisted students and a JD via form upload

Free

Send crypto price alerts, daily digests and /price replies with CoinGecko, Telegram and Sheets

Quick overview This workflow tracks a configurable crypto watchlist using the CoinGecko API, sends Telegram alerts when price, % change, or volume-spike conditions are met (with optional RSI filtering), optionally logs triggered alerts to Google Sheets, and also provides a daily Telegram digest plus a /price command bot. How it works 1. Runs every hour on a schedule, loads your watchlist, and loops through each configured asset. 2. Fetches current price, 24h change, 24h volume, and market cap fr

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free