๐ŸŽฌ Turn NASA astronomy pictures into matching Spotify tracks using GPT-4o Vision

โšก 199 views ยท ๐ŸŽฌ Content Creation & Video

Description

Who is this for

How it works

  1. Schedule: The workflow runs every night at 10 PM.
  2. 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).
  3. 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).
  4. Curation: Spotify searches for a track that matches these specific parameters.
  5. Creative Writing: OpenAI generates a short poem or caption linking the image to the song.
  6. Delivery: The image, track link, and poem are posted to Slack, and the track is automatically saved to a designated Spotify Playlist.

Requirements

How to set up

  1. Set up your credentials for NASA, OpenAI, Spotify, and Slack in n8n.
  2. Create a specific Playlist in Spotify and copy its Playlist ID.
  3. Copy the Channel ID from the Slack channel where you want to post.
  4. Paste these IDs into the respective nodes (marked with <__PLACEHOLDER__>) or use the Set Fields node to manage them globally.

๐Ÿ”— Nodes Used

Slack, Spotify, NASA, Schedule Trigger, OpenAI

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup