# AI assistant for Spotify: create playlists and control playback via chat
This automation template enables chat-based control of Spotify using an AI agent built on n8n and LangChain. Users send natural language requests (e.g., ´create a 10-track evening jazz playlist´), and the system generates a title, selects real tracks, creates the playlist in their Spotify account, and can manage playback — pause, skip, or play existing playlists by name.
## Who it´s for
- Music producers needing to quickly generate thematic playlists
- Event hosts automating background music
- Regular Spotify users who want chat-based music control
- Developers integrating AI assistants with music platforms
## What the automation does
- Analyzes incoming chat messages using an AI agent (LangChain + OpenAI)
- Detects intent: playlist creation, playback control, or search
- Generates playlist name and description based on mood or genre description
- Finds suitable tracks via Spotify API and creates the playlist in the user’s account
- Controls playback: pause, next track, play playlist by name
- Returns a public Spotify link to the new playlist
- Maintains conversation context to clarify vague requests
## What´s included
- Ready-to-use n8n workflow with AI agent logic
- Trigger handling logic: chat message, manual execution
- Integrations with Spotify API, OpenAI, and chat interface
- Basic setup and adaptation guide
## Requirements for setup
- Spotify account with API access enabled
- OpenAI API key
- Access to an n8n instance (self-hosted or cloud)
- Configured chat entry point (e.g., webhook, Telegram bot, etc.)
## Benefits and outcomes
- Saves time on manual playlist creation
- Personalized music curation from natural language input
- Centralized Spotify control via text commands
- Automatic sync with user’s Spotify account
- Can be embedded into larger AI assistants or event management systems
- Context-aware dialog support improves accuracy
- Scalable: one template serves multiple users
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
Spotify playlist creation
Spotify playback control
AI assistant for Spotify
create playlists from description
chatbot for Spotify
n8n and LangChain integration
AI-generated playlists
Spotify API automation
music control via chat
personalized Spotify playlists
automatic track addition
play music by command
mood-based playlists
OpenAI Spotify integration
chat interface for Spotify
No feedback yet