AI Agents

Archive monthly Spotify tracks and playlist categorization

37 nodes 219 152 Scheduled trigger
Download

Workflow Description

This automation archives your monthly Spotify tracks and playlists, using AI to automatically categorize them by genre, mood, and performance metrics, then saves organized results to Google Sheets for easy tracking and analysis.

How it works

  1. 1.Schedule monthly execution with a time-based trigger to run automatically each month
  2. 2.Retrieve your current tracks and playlists from your Spotify account via API
  3. 3.Process the data through an LLM chain to analyze musical characteristics, emotions, and categories
  4. 4.Save your auto-categorized tracks to organized Google Sheets by genre, mood, and metrics
  5. 5.Apply filters to extract your most-played and favorite tracks for deeper insights
  6. 6.Archive historical data for comparison and trend analysis over time

Use cases

  • Musicians and producers who want to organize their music library and understand listening patterns
  • Music analysts and bloggers who need structured data on music trends and categorization
  • Playlist curators who want to understand track characteristics and improve selection quality

Requirements

  • Active Spotify account with access permissions to your tracks and playlists
  • Google account with write permissions to Google Sheets
  • Anthropic API key or compatible LLM model for AI processing

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Anthropic If Output Parser Google Sheets LLM Chain

Details

Trigger Scheduled trigger
Nodes 37
Apps 5
Views 219
Downloads 152

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (37)

/

Retrieve relevant info

Set

#1

Batch preparation

Code

#2

Get Track details

HTTP Request

#3

Split Out

Split Out

#4

Anthropic Chat Model

Lm Chat Anthropic

#5

Get Playlist

If

#6

Get Tracks

If

#7

Structured Output Parser

Output Parser Structured

#8

Playlists informations

Set

#9

Filter my playlist

Filter

#10

Split Out1

Split Out

#11

Batch preparation1

Code

#12

Merge

Merge

#13

Simplify Tracks informations

Set

#14

Limit

Limit

#15

Get logged tracks

Google Sheets

#16

Excluding logged tracks

Merge

#17

Filter

Filter

#18

Split Out2

Split Out

#19

Manual Verification

Merge

#20

Spotify

If

#21

Aggregate by 200 tracks

Code

#22

Sticky Note

Sticky Note

#23

Monthly Trigger

Schedule Trigger

#24

Sticky Note1

Sticky Note

#25

Get logged playlists

Google Sheets

#26

Log new tracks

Google Sheets

#27

Log new playlists

Google Sheets

#28

Excluding logged playlists

Merge

#29

Sticky Note2

Sticky Note

#30

Limit2

Limit

#31

Classify new tracks

No Op

#32

Sticky Note3

Sticky Note

#33

Sticky Note4

Sticky Note

#34

Sticky Note5

Sticky Note

#35

Sticky Note6

Sticky Note

#36

Basic LLM Chain - AI Classification

LLM Chain

#37