Back to feed
Dev.to
Dev.to
7/18/2026
Adding an AI Chatbot to Echostats

Adding an AI Chatbot to Echostats

Short summary

The author added a Gemini-powered chatbot to Echostats, a Spotify stats dashboard, to explain listening data in plain language. Streaming was abandoned due to Vercel serverless limitations, and two key bugs were solved: blank messages caused by Node.js runtime constraints and a loading indicator that stopped prematurely during two-response queries. The main lesson: research hosting environment limitations before building.

  • Switched from streaming to non-streaming responses due to Vercel serverless limitations
  • Solved blank-message bug by refactoring message structure for the Gemini model
  • Added a delta command to handle two-response queries where the AI acknowledges then fetches data

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more