Developer Builds AI Chat Assistant for Internal Tool Using Gemini API and Firebase
A developer has integrated an AI-powered chat panel into PanelControl, an internal commercial team management tool, using vanilla JavaScript and Google's Gemini API. The assistant answers repetitive business queries — such as sales rankings and bonus thresholds — by dynamically building a system prompt from live Firebase Realtime Database data on every request. Google's Gemini API was chosen over Anthropic's because it offers a more generous free tier suitable for light internal use, though a billing account is still required even when no charges apply. During development, the builder encountered model availability issues, finding that several Gemini versions were unavailable to new accounts before settling on gemini-2.5-flash-lite. The project highlights that AI models require full business context injected via system prompts to function meaningfully within custom internal applications.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in