Generate News Cards from Spotify Emotions with LLM, Google News and APITemplate.io

Go to Workflow
0 views
Built by noda noda
Created on October 29, 2025

Description

πŸ“„ Workflow Overview

Title: Spotify Emotion-to-News Card Generator (APITemplate.io + Slack)

What it does:
This workflow analyzes the emotion of your recently played Spotify track using OpenRouter (LLM), fetches a related trending Google News article, generates a visual news card with APITemplate.io, and posts it to Slack.

πŸ‘₯ Who’s it for

Music lovers, marketers, and developers who want to automatically turn their listening mood into a visual daily digest or Slack update.

βš™οΈ How it works

Spotify Trigger β€” Fetch your recently played tracks.

LLM (Emotion Analyzer) β€” Infer the main emotion from the track title and artist.

Google News Query β€” Build an RSS URL based on the emotion keyword.

RSS Reader β€” Retrieve trending news headlines.

APITemplate.io β€” Render the top article into an image card.

Slack β€” Post title, link, and card image into your channel.

🧰 Requirements

Spotify API credentials

OpenRouter API key

APITemplate.io account (with template ID)

Slack OAuth2 connection

πŸͺ„ How to customize

Replace the APITemplate.io template ID with your own.

Adjust the RSS URL language (hl=en-US β†’ hl=ja-JP for Japanese news).

Modify the Slack message text for your preferred channel tone.

⚠️ Disclaimer

If you use community nodes (LangChain), this template is for self-hosted n8n only.

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
APITemplate.io
n8n-nodes-base.apiTemplateIo
Code
n8n-nodes-base.code
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
Slack
n8n-nodes-base.slack
Spotify
n8n-nodes-base.spotify