CareGuru Brain
Conversational backend for CareGuru
A conversational backend for CareGuru, the caregiver-client marketplace, in active development. It receives WhatsApp and Facebook Messenger messages through signature-verified webhooks that persist inbound messages and jobs in PostgreSQL; a worker then debounces batches, loads conversation history and retrieves knowledge-base passages with Postgres full-text search. Gemini is prompted to answer from the retrieved knowledge-base context and receives filtered tool results; it can call tools such as the city-filtered professional search URL builder. Conversations move to a human handoff through Telegram when the bot cannot help. Implemented as Fastify services in TypeScript; deployment status is not verified.
// highlights
- Signature-verified webhook ingestion with idempotent PostgreSQL persistence and durable jobs
- Conversation lifecycle: debouncing, session timeout, summaries, rate limiting and human handoff
- Knowledge-base retrieval via Postgres full-text search with guarded prompt assembly
- Gemini model cascade, tool calling and filtered tool results
- WhatsApp Cloud API and Facebook Messenger channels; Telegram handoff notifications
- In active development: deployment status is not verified
in development — not publicly available.
ask about this project