How this bot works
I scoped, designed, coded, deployed and run this agent myself, end to end, self-hosted on my own Google Cloud project. It answers questions about me using only the documents in its knowledge base, with evaluation and observability built in.
- Astro
- TypeScript
- React
- Python
- FastAPI
- Google ADK
- Firebase Hosting
- Cloud Run
- Firestore
- Cloud Storage
- OpenTelemetry
Architecture
Your browser
Static pages, plus one small React island for the chat.
Firebase Hosting
CDN; forwards /api and /auth to the backend on the same domain.
Python API on Cloud Run
Google sign-in, daily limits and reply validation.
Google ADK agent
Calls an external LLM API, chosen by configuration.
The API uses:
Knowledge bucket
The agent’s only source of facts.
Firestore
Daily limits, CV log, contact messages.
Cloud Trace and Logging
One trace per chat request, no message text.
Guardrails
- Answers only from a dedicated knowledge bucket, and says so when something isn’t covered.
- Grounding is checked in code: a reply citing a document that doesn’t exist is never sent.
- Documents are data, not instructions, and the agent has no tool that can read storage.
- Google sign-in and daily limits on every chat; a contact message is sent only after you confirm it.
Latest evaluation
57/57 cases passed (100%)
Mean groundedness 5/5, scored by an LLM judge. Run on 21 October 2026 with gemini-3.8-flash. The set covers facts, unknown topics, ownership, sensitive questions, prompt injection and tool use, and runs on every pull request.