Create AI-generated Spotify playlists with GPT-5 and email the link
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when someone submits an n8n form (“Playlist Maker”). Along the way it connects OpenAI Chat Model. It also calls api.spotify.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Playlist Maker”).
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Get Spotify User ID (HTTP Request): calls api.spotify.com
- Split Out: splits a list into separate items
- Create Spotify Playlist (HTTP Request): calls an HTTP API (POST)
- Search Spotify for Song (HTTP Request): calls an HTTP API
- Extract Playlist ID (Edit Fields (Set)): sets 1 field: playlistId
- Extract Track URI (Edit Fields (Set)): sets 1 field: trackUri
- Merge: merges the data from its input branches
- Build URIs Array (Code): runs custom JavaScript code
- Add Tracks to Playlist (HTTP Request): calls an HTTP API (POST)
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: api.spotify.com
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 (10)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - n8n Form Trigger
n8n-nodes-base.formTrigger - Send Email
n8n-nodes-base.emailSend - AI Agent
@n8n/n8n-nodes-langchain.agent - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code
From the author
How it works: When a user submits a form with event details, the workflow sends this information to OpenAI's GPT-5 model, which generates a curated list of 18–32 songs tailored to the occasion and audience. The workflow then searches Spotify for each…