Spotify Track Archiving and AI-Driven Playlist Generation
detail.loadingPreview
Automate monthly archiving of Spotify liked tracks to Google Sheets and use AI to classify and add tracks to relevant playlists.
About This Workflow
This workflow automates the process of archiving your monthly Spotify liked tracks into a Google Sheet. It then leverages an AI model (Anthropic Claude 3.5) to analyze track characteristics and metadata, classifying them into appropriate playlists. Finally, it adds these classified tracks to the respective Spotify playlists, helping you maintain a well-organized and dynamic music library.
Key Features
- Scheduled Archiving: Automatically runs monthly to capture new liked tracks.
- Google Sheets Integration: Logs track details (artist, album, popularity, audio features) into a Google Sheet for historical records.
- Duplicate Prevention: Checks against existing entries in the Google Sheet to avoid redundant logging.
- AI-Powered Classification: Utilizes Anthropic Claude 3.5 to analyze track data and suggest playlist assignments.
- Dynamic Playlist Updates: Adds classified tracks to existing Spotify playlists in bulk.
- Batch Processing: Efficiently handles large numbers of tracks and API calls.
How To Use
- Set up Credentials: Configure Spotify OAuth2 and Google Sheets OAuth2 credentials.
- Configure Trigger: Set the
Monthly Triggernode to run the workflow at your desired monthly interval. - Spotify Playlists: Ensure your Spotify playlists have descriptive names and potentially descriptions to aid the AI classification. The workflow filters playlists owned by 'Arnaud' as a starting point.
- Google Sheets Setup: Prepare a Google Sheet with a 'tracks listing' sheet for archiving track information and a 'playslists listing' sheet for playlist metadata. The workflow assumes these sheets exist and are accessible via the provided
documentId. - AI Prompting: The
Anthropic Chat Modelnode uses a prompt that describes the desired output schema for playlist classification. You may need to adjust the schema and the prompt within theStructured Output ParserandAnthropic Chat Modelnodes to better suit your classification needs. - Batching: The workflow uses batching for Spotify API calls (
Get Track details) and for sending data to the AI (Aggregate by 200 tracks). This is crucial for efficiency and API rate limits. - Output: The workflow outputs classified tracks ready to be added to Spotify playlists.
Apps Used
Workflow JSON
{
"id": "73807670-27f7-4f95-8ee5-da36dbfab276",
"name": "Spotify Track Archiving and AI-Driven Playlist Generation",
"nodes": 25,
"category": "Media & Entertainment",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 73807670-27f7...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Automate Local Business Outreach with AI-Powered Yelp Scraper
This workflow automates the process of scraping local business details from Yelp using AI, then leverages that data to send personalized partnership proposals via Gmail. It's perfect for sales and marketing teams looking to streamline lead generation and outreach campaigns.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.