Turn NASA Astronomy Pictures into Matching Spotify Tracks using GPT-4o Vision
Who is this for Space Enthusiasts & Music Lovers**: Discover new music paired with stunning cosmic visuals. Community Managers**: specific Slack channels with engaging, creative daily content. n8n Learners**: Learn how to chain Image Analysis (Vision), Logic, and API integrations (Spotify/Slack).
How it works Schedule: The workflow runs every night at 10 PM. Mood Logic: It checks the day of the week to adjust the energy level (e.g., higher energy for Friday nights, calmer vibes for Mondays). Visual Analysis: OpenAI (GPT-4o) analyzes the NASA APOD image to determine its color palette, mood, and subject matter, converting these into musical parameters (Valence, Energy). Curation: Spotify searches for a track that matches these specific parameters. Creative Writing: OpenAI generates a short poem or caption linking the image to the song. Delivery: The image, track link, and poem are posted to Slack, and the track is automatically saved to a designated Spotify Playlist.
Requirements NASA API Key** (Free) OpenAI API Key** (Must have access to GPT-4o model) Spotify Developer Credentials** (Client ID and Client Secret) Slack** Workspace and Bot Token
How to set up Set up your credentials for NASA, OpenAI, Spotify, and Slack in n8n. Create a specific Playlist in Spotify and copy its Playlist ID. Copy the Channel ID from the Slack channel where you want to post. Paste these IDs into the respective nodes (marked with <PLACEHOLDER>) or use the Set Fields node to manage them globally.
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
š¤ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments