Automate Archiving Spotify Discover Weekly with n8n

This automation workflow solves the hassle of manually archiving your Spotify Discover Weekly playlist by automatically comparing and adding only unique tracks to an archive playlist every Monday. It saves time, avoids duplicates, and keeps your archived music collection organized effortlessly using n8n.
spotify
scheduleTrigger
merge
+3
Workflow Identifier: 1485
NODES in Use: Schedule Trigger, Spotify, Switch, Merge, If, Sticky Note
Automate Spotify archiving with n8n and Spotify

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This n8n workflow copies new songs from Spotify’s Discover Weekly playlist into a separate archive playlist automatically every Monday at 8:30 AM.
It solves the problem of forgetting to save fresh songs and prevents duplicates in the archive.
The result is a clean, updated music archive without manual work.


How It Works

Input: It starts with checking user Spotify playlists.

Process: The workflow finds the current Discover Weekly and the archive playlists.
Then it gets tracks from both playlists to compare song URIs.
Only tracks that are new in Discover Weekly and not in the archive get selected.
Those unique new tracks get added to the archive playlist.

Output: An updated archive playlist with no duplicate songs.


Who Should Use This Workflow

Anyone who listens to Spotify Discover Weekly and wants to save new songs automatically.
The workflow is helpful for people who dislike manual copying of tracks each week.


Tools and Services Used

  • Spotify with OAuth2 credentials: To access playlists and tracks.
  • n8n platform: To create and run automation workflows.
  • CRON node in n8n: To schedule the workflow weekly.
  • Spotify nodes in n8n: To fetch playlists and add tracks.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Download and Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor and select “Import from File”.
  3. Choose the downloaded workflow file and import it.

Step 2: Configure Credentials and IDs

  1. Add Spotify OAuth2 credentials in n8n credentials if not done yet.
  2. Open imported workflow and assign these credentials to all Spotify nodes.
  3. Check the Switch node playlist names “Discover Weekly” and “Discover Weekly Archive” and update if your playlists have different names.
  4. Confirm the playlist IDs passed to “Get Discover Tracks” and “Get Archive Tracks” nodes match the intended playlists.

Step 3: Test the Workflow

  1. Run the workflow manually once to check for errors and confirm tracks are fetched.
  2. If test is successful, verify if unique tracks move from Discover Weekly to the archive.

Step 4: Activate Workflow

  1. Switch the workflow toggle button to activate it for automatic running.
  2. Ensure n8n instance keeps running continuously for the scheduled trigger.
  3. Consider using self-host n8n if needing full control over execution.

Inputs, Processing, and Outputs

Inputs: User’s full set of Spotify playlists.

Processing Steps:
– The CRON node triggers weekly.
– The Spotify Get User’s Playlists node fetches playlist list.
– The Switch node filters playlists by name.
– Two Spotify getTracks nodes retrieve all songs in both playlists.
– The Merge node compares track URIs and outputs only new songs.
– The IF node checks if new tracks exist.
– The Spotify add tracks node adds unique songs to archive.

Outputs: Discover Weekly Archive playlist updated with only new, non-duplicate tracks.


Edge Cases and Troubleshooting

  • If Spotify nodes fail with authentication errors, check and refresh OAuth2 credentials.
  • If no tracks add to archive, confirm Merge node compares track.uri fields correctly.
  • If workflow does not trigger on time, verify CRON expression and n8n timezone settings match.
  • If playlist names differ from “Discover Weekly” or “Discover Weekly Archive”, update Switch node rules accordingly.

Customization Ideas

  • Rename archive playlist by changing Switch node playlist name rule.
  • Adjust CRON node expression to change schedule time or day.
  • Add HTTP Request node after archiving to send notifications via Telegram, Slack, or NTFY.
  • Fetch extra track details or save data to databases for advanced tracking.

Summary of Benefits

✓ Saves over 30 minutes weekly on manual copying of songs.
✓ Prevents duplicate tracks in archive playlist.
✓ Keeps Discover Weekly archive orderly and up-to-date.
✓ Runs automatically without manual effort.
✓ Allows future expansion, like notifications or data export.


Automate Spotify archiving with n8n and Spotify

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow uses the user’s Discover Weekly playlist and a separate archive playlist named “Discover Weekly Archive” or custom name set in the Switch node.
The workflow runs automatically every Monday at 8:30 AM using the CRON node with the cron expression “30 8 * * MON”.
It compares the track URIs from Discover Weekly and the archive playlists using the Merge node, and only adds tracks not already in the archive.
The user should refresh or recreate Spotify OAuth2 credentials in n8n and assign them to all Spotify nodes.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.