Track Spotify podcast performance in Google Sheets with weekly AI email insights
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs on a schedule (every week at 08:00). Along the way it connects Gmail, Google Sheets and OpenAI Chat Model.
How it runs
Trigger: On a schedule (every week at 08:00).
- Set config (Edit Fields (Set)): sets 7 fields: USER_ID, BEARER_TOKEN, BASE_URL…
- Check the token works (HTTP Request): calls an HTTP API (POST)
- Token still valid? (If): checks a condition and branches into true / false
- Get all episodes (HTTP Request): calls an HTTP API
- Email that the token expired (Gmail): uses Gmail
- One item per episode (Split Out): splits a list into separate items
- Keep the episode fields (Edit Fields (Set)): sets 4 fields: episode_id, episode_title, duration_min…
- Get episode performance (HTTP Request): calls an HTTP API
- Build the metrics row (Edit Fields (Set)): sets 10 fields: Episode ID, Episode Title, Published At…
- Pause between episodes (Wait): waits 1 seconds
…plus 8 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Split Out
n8n-nodes-base.splitOut - Wait
n8n-nodes-base.wait - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Quick overview This workflow manually pulls episode lists and performance metrics from Spotify for Creators (Anchor API) and appends one analytics row per episode to a Google Sheets worksheet. How it works 1. Starts when you run the workflow manually. 2.…