AI DJ: Text-to-Spotify playlist generator with Linkup and GPT4
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when someone submits an n8n form (“Spotify playlist AI generator”). Along the way it connects Spotify, OpenAI Chat Model and HTTP Request. It also calls api.linkup.so over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Spotify playlist AI generator”).
- Ideate playlist (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Web query to find tracks); output parser: Structured Output Parser
- Create playlist (Spotify): create (playlist)
- Get tracks array (Edit Fields (Set)): sets 1 field: Tracks
- Split Out: splits a list into separate items
- Search the track (Spotify): search (track)
- Get track IDs (Edit Fields (Set)): sets 1 field: Track ID
- Add track to playlist (Spotify): work with playlist
- Get the final playlist (Spotify): get (playlist)
- Opening the playlist (n8n Form): shows the next form page
Services it uses
HTTP calls to: api.linkup.so
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Edit Fields (Set)
n8n-nodes-base.set - Spotify
n8n-nodes-base.spotify - Split Out
n8n-nodes-base.splitOut - n8n Form Trigger
n8n-nodes-base.formTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Http Request Tool
n8n-nodes-base.httpRequestTool - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - n8n Form
n8n-nodes-base.form
From the author
Quick overview Describe a playlist idea and track count in a web form, and an AI agent researches matching songs on the live web via Linkup, curates a tracklist and title, builds the playlist in your Spotify account, then redirects you straight to it. How it…