š Hey everyone! Just shipped a small AI side project and wanted to share.
šµ AI-powered Spotify Playlist Generator
A web app that creates movie soundtrack playlists based on your mood and saves them directly to your Spotify.
How it works
⢠User describes their mood
⢠OpenAI (via AI SDK) curates 5 tracks from 90sā2010s movie soundtracks
⢠Playlist is created using the Spotify Web API
Stack
⢠Next.js 16 (App Router) + TypeScript
⢠OpenAI (AI SDK)
⢠Spotify Web API
⢠Vercel KV (rate limiting)
⢠Tailwind CSS
What I learned
⢠Structured LLM output with Zod
⢠OAuth 2.0 flows with secure cookies
⢠Designing predictable UX around LLM calls
⢠Handling LLM ā external API failure cases
š Demo: https://spotify-playlist-generator-ai.vercel.app/
Would love feedback from folks building with OpenAI!
An agentic flow application to create playlists on the authenticated user's Spotify account based on the user's prompt.