Latenode

Automate Spotify playlists from text prompts with AI and Linkup

This template receives a playlist prompt on a webhook, asks ChatGPT for a title, description, and track search queries, then creates the playlist through the Spotify Web API.

Store your Spotify access token in the JavaScript node so it can create the playlist, search each query, and add tracks. Send JSON with the prompt (and a track count if you want a cap) to the webhook.

Updated Sep 16, 2026Est. run: 12sEst. cost: $0.0008
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns a sentence into a Spotify playlist without dragging tracks by hand
  • Uses ChatGPT for title, description, and track search queries
  • Creates and fills the playlist through the Spotify Web API in JavaScript
  • Returns the playlist URL to the webhook caller

How it works

1
Trigger

Receive the prompt

A webhook accepts the text prompt and a track count if you send one.

2
AI

Propose the playlist

ChatGPT returns a title, description, and a list of track search queries.

3
Logic

Create playlist and add tracks

Use a JavaScript node to call the Spotify Web API with your token in that node: create the playlist, search each query, add track URIs.

4
Action

Return the playlist URL

The JavaScript node returns the Spotify playlist URL so the caller can open it. Send that URL back with a webhook response if a client is waiting.

Setup guide

1

Add the webhook

Add a webhook trigger. Send JSON with a prompt string and a trackCount number if you want a cap.

2

Add ChatGPT

Ask ChatGPT for a playlist title, description, and N search queries. This is a Latenode AI node; you do not paste an OpenAI API key into it.

3

Call Spotify from JavaScript

Put the Spotify access token in the JavaScript node and call the Spotify Web API to create the playlist and add tracks.

4

Return the URL

Add a webhook response with the playlist URL so the caller can open it.

Requirements

A Spotify account and Web API token stored in the JavaScript node
A webhook caller that sends the text prompt

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.