Skip to main content

Create AI-generated Spotify playlists with GPT-5 and email the link

Workflow preview

Workflow preview
100%
Create AI-generated Spotify playlists with GPT-5 and email the link preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.formtrigger, n8n-nodes-base.emailsend, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.splitout, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ufuk Ören.

Original n8n.io source

1.1 Workflow description

Title
Create AI-generated Spotify playlists with GPT-5 and email the link
Workflow name
Create AI-generated Spotify playlists with GPT-5 and email the link

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 recommended song, creates a new playlist on the user's Spotify account, adds all the tracks, and sends the user an email with a direct link to listen.

Key Features:

  • AI-Powered Playlist Generation: Uses OpenAI's GPT-5 model to create contextually relevant song recommendations based on event type, audience, and personal preferences.
  • Automated Spotify Integration: Searches Spotify's API for each song and automatically adds them to a new playlist on the user's account.
  • One-Click Listening: Users receive an email with a direct Spotify link to listen, follow, and modify the playlist immediately after creation.
  • Multi-Language Support: The AI responds in the same language as the user's input, making the workflow accessible globally.
  • Email Confirmation: Users instantly receive an email notification confirming playlist creation with a shareable Spotify link.

Step-by-step: Form Submission Trigger: User submits event details (occasion, guests, preferences, and email) through the web form.

AI Playlist Generation: OpenAI's GPT-5 generates a curated list of 18–32 songs based on the provided event context.

Spotify Integration: The workflow searches Spotify for each song, creates a new playlist, and adds all found tracks to the user's account.

Email Notification: User receives an email with the playlist name and a direct Spotify link to listen immediately.

API Keys Required

  • OpenAI API Key: Required to access GPT-5 for generating playlist recommendations.
  • Spotify Client ID & Secret: Required to authenticate with Spotify's API for searching, creating playlists, and adding tracks.
  • SMTP Credentials: Required to send the confirmation email to the user (server, port, username, password, and sender email).

Response Generation The AI model receives event details and generates a structured JSON response containing a playlist name, 18–32 song recommendations with artist credits, and HTML-formatted content for website integration, all in the user's language.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 2 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 4 - Send email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 5 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 9 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 10 - Search Spotify for Song

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Extract Track URI

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 17 - Build URIs Array

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Get Spotify User ID

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Create Spotify Playlist

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 20 - Extract Playlist ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Add Tracks to Playlist

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

3. Summary Table

Workflow Create AI-generated Spotify playlists with GPT-5 and email the link
Complexity advanced
Nodes 21
Categories Content Creation, Multimodal AI
Author Ufuk Ören
Published 30 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11376/11376.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create AI-generated Spotify playlists with GPT-5 and email the link do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.