#Built an AI-powered Spotify playlist generator with AI SDK + OpenAI

1 messages Ā· Page 1 of 1 (latest)

topaz wadi
#

šŸ‘‹ 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!

night eagle
#

Thank you