This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Spotify_tool",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.3,
"position": [
0,
0
],
"id": "d6bc795f-bcd6-4ea9-b4f6-1a61827d793e",
"name": "When chat message received"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.2,
"position": [
208,
0
],
"id": "0654674a-28b0-4bca-8306-d2163bc2b416",
"name": "AI Agent"
},
{
"parameters": {
"model": "gpt-4o-2",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"typeVersion": 1,
"position": [
80,
208
],
"id": "73f93fac-bc12-4926-b64c-eca85b078924",
"name": "Azure OpenAI Chat Model",
"credentials": {
"azureOpenAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-base.spotifyTool",
"typeVersion": 1,
"position": [
368,
208
],
"id": "2d797738-8270-4338-af92-65d1660185ba",
"name": "Add a song to a queue in Spotify",
"credentials": {
"spotifyOAuth2Api": {
"name": "<your credential>"
}
}
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Add a song to a queue in Spotify": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "a9104784-3b35-40ff-96ee-5c22572a8d07",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "hWQ5cmrFklSf7tL6",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
azureOpenAiApispotifyOAuth2Api
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Spotify_tool. Uses chatTrigger, agent, lmChatAzureOpenAi, spotifyTool. Chat trigger; 4 nodes.
Source: https://github.com/romellfudi/medium/blob/b295bac6dcf1c1de90c007ba980644c8db5bec82/n8n/Spotify_tool.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
playwright_docker. Uses agent, chatTrigger, lmChatAzureOpenAi, memoryBufferWindow. Chat trigger; 10 nodes.
The aim of the Bakery Data Analytics Workflow is to automate the process of analyzing bakery sales and stock data stored in Google Sheets. It allows bakery owners or managers to interact with an AI as
Promo Seeker finds fresh, working promo codes and vouchers on the web so your team never misses a deal.
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 cu
The Project starter bot takes the hassle out of launching projects by automatically creating a well-structured folder system in Dropbox and sending timely notifications through Slack and Gmail. By com