Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Chatbots & Messaging Bots

Chatbots & Messaging Bots

Control Spotify from Telegram with OpenAI

When a Telegram message arrives, OpenAI works out which track you mean, then Spotify searches, queues, skips or resumes playback and replies in the chat.

What it does

# Play with Spotify from Telegram ## Overview Automated workflow: Play with Spotify from Telegram. This workflow integrates 9 different services: telegramTrigger, stickyNote, telegram, merge, set. It contains 17 nodes and follows best practices for error handling and security. ## Workflow Details - Total Nodes: 17 - Node Types: 9 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - Telegram Trigger: telegramTrigger - OpenAI - Ask about a track: openAi - Search track: spotify - Add song: spotify - Next Song: spotify - Resume play: spotify - Currently Playing: spotify - Sticky Note: stickyNote - Merge: merge - If Node: if - ... and 7 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible

The steps

  1. Telegram Trigger
  2. OpenAI - Ask about a track
  3. Search track
  4. Add song
  5. Next Song
  6. Resume play
  7. Currently Playing
  8. Merge
  9. If Node
  10. Message parser
  11. Not found error message
  12. Return message to Telegram
  13. Define Now Playing
  14. Error Handler for 0395b3e4

17 steps in total.

Similar automations