Skip to main content

Monthly Spotify track archiving and playlist classification

Workflow preview

Workflow preview
100%
Monthly Spotify track archiving and playlist classification preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Monthly Spotify Track Archiving and Playlist Classification This n8n workflow allows you to automatically archive your monthly Spotify liked tracks in a Google Sheet, along with playlist details an...

Best for

  • Personal Productivity automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.spotify, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.filter

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Arnaud MARIE.

Original n8n.io source

1.1 Workflow description

Title
Monthly Spotify track archiving and playlist classification
Workflow name
Monthly Spotify track archiving and playlist classification

Monthly Spotify Track Archiving and Playlist Classification

This n8n workflow allows you to automatically archive your monthly Spotify liked tracks in a Google Sheet, along with playlist details and descriptions. Based on this data, Claude 3.5 is used to classify each track into multiple playlists and add them in bulk.

Who is this template for?

This workflow template is perfect for Spotify users who want to systematically archive their listening history and organize their tracks into custom playlists.

What problem does this workflow solve?

It automates the monthly process of tracking, storing, and categorizing Spotify tracks into relevant playlists, helping users maintain well-organized music collections and keep a historical record of their listening habits.

Workflow Overview

  • Trigger Options: Can be initiated manually or on a set schedule.
  • Spotify Playlists Retrieval: Fetches the current playlists and filters them by owner.
  • Track Details Collection: Retrieves information such as track ID and popularity from the user’s library.
  • Audio Features Fetching: Uses Spotify's API to get audio features for each track.
  • Data Merging: Combines track information with their audio features.
  • Duplicate Checking: Filters out tracks that have already been logged in Google Sheets.
  • Data Logging: Archives new tracks into a Google Sheet.
  • AI Classification: Uses an AI model to classify tracks into suitable playlists.
  • Playlist Updates: Adds classified tracks to the corresponding playlists.

Setup Instructions

  1. Credentials Setup:
    Make sure you have valid Spotify OAuth2 and Google Sheets access credentials.
  2. Trigger Configuration:
    Choose between manual or scheduled triggers to start the workflow.
  3. Google Sheets Preparation:
    Set up a Google Sheet with the necessary structure for logging track details.
  4. Spotify Playlists Setup:
    Have a diverse range of playlists and exhaustive description (see example) ready to accommodate different music genres and moods.

Customization Options

  • Adjust Playlist Conditions:
    Modify the AI model’s classification criteria to align with your personal music preferences.
  • Enhance Track Analysis:
    Incorporate additional audio features or external data sources for more refined track categorization.
  • Personalize Data Logging:
    Customize which track attributes to log in Google Sheets based on your archival preferences.
  • Configure Scheduling:
    Set a preferred schedule for periodic track archiving, e.g., monthly or weekly.

Cost Estimate

For 300 tracks, the token usage amounts to approximately 60,000 tokens (58,000 for input and 2,000 for completion), costing around 20 cents with Claude 3.5 Sonnet (as of October 2024).

Playlists' Description Examples

Playlist Name Playlist Description
Classique Indulge in the timeless beauty of classical music with this refined playlist. From baroque to romantic periods, this collection showcases renowned compositions.
Poi Find your flow with this dynamic playlist tailored for poi, staff, and ball juggling. Featuring rhythmic tracks that complement your movements.
Pro Sound Boost your productivity and focus with this carefully selected mix of concentration-enhancing music. Ideal for work or study sessions.
ChillySleep Drift off to dreamland with this soothing playlist of sleep-inducing tracks. Gentle melodies and ambient sounds create a peaceful atmosphere for restful sleep.
To Sing Warm up your vocal cords and sing your heart out with karaoke-friendly tracks. Featuring popular songs, perfect for solo performances or group sing-alongs.
1990s Relive the diverse musical landscape of the 90s with this eclectic mix. From grunge to pop, hip-hop to electronic, this playlist showcases defining genres.
1980s Take a nostalgic trip back to the era of big hair and neon with this 80s playlist. Packed with iconic hits and forgotten gems, capturing the energy of the decade.
Groove Up Elevate your mood and energy with this upbeat playlist. Featuring a mix of feel-good tracks across various genres to lift your spirits and get you moving.
Reggae & Dub Relax and unwind with the laid-back vibes of reggae and dub. This playlist combines classic reggae tunes with deep, spacious dub tracks for a chilled-out vibe.
Psytrance Embark on a mind-bending journey with this collection of psychedelic trance tracks. Ideal for late-night dance sessions or intense focus.
Cumbia Sway to the infectious rhythms of Cumbia with this lively playlist. Blending traditional Latin American sounds with modern interpretations for a danceable mix.
Funky Groove Get your body moving with this collection of funk and disco tracks. Featuring irresistible basslines and catchy rhythms, perfect for dance parties.
French Chanson Experience the romance and charm of France with this mix of classic and modern French songs, capturing the essence of French musical culture.
Workout Motivation Push your limits and power through your exercise routine with this high-energy playlist. From warm-up to cool-down, these tracks will keep you motivated.
Cinematic Instrumentals Immerse yourself in a world of atmospheric sounds with this collection of cinematic instrumental tracks, perfect for focus, relaxation, or contemplation.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Retrieve relevant info

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - Batch preparation

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Get Track details

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 5 - Anthropic Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.2

Block 6 - Get Playlist

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 7 - Get Tracks

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 8 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 9 - Playlists informations

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Filter my playlist

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 11 - Split Out1

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 12 - Batch preparation1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 14 - Simplify Tracks informations

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Limit

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 16 - Get logged tracks

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 17 - Excluding logged tracks

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 18 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 19 - Split Out2

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 20 - Manual Verification

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 21 - Spotify

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 22 - Aggregate by 200 tracks

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Monthly Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Showing the first 24 of 37 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Monthly Spotify track archiving and playlist classification
Complexity advanced
Nodes 37
Categories Personal Productivity, AI Summarization
Author Arnaud MARIE
Published 27 Oct 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2502/2502.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Monthly Spotify track archiving and playlist classification do?

Monthly Spotify Track Archiving and Playlist Classification This n8n workflow allows you to automatically archive your monthly Spotify liked tracks in a Google Sheet, along with playlist details an...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, AI Summarization use case.