Hybrid AI notification routing · AI Agents
Message Notification Router
An AI-powered, personalized notification router for WhatsApp-style messaging. A single Gemini call per message makes the final notify/digest/mute judgment, informed by a deterministic feature layer that joins user, group, business, and historical-message data to compute recipient engagement/dismissal history, group trust and quiet hours, and a scored shortlist of that user's own relevant past messages. Images and voice notes are described/transcribed by Gemini before classification, and evidence message IDs are restricted at the schema level to the real shortlisted candidates, so hallucinated evidence is impossible. A system prompt treats message content as untrusted data to defeat prompt-injection attempts embedded in the messages themselves.
Highlights
- LLM (Gemini) makes every routing decision, grounded in verified deterministic context
- Schema-restricted evidence IDs make hallucination a validation error
- Multimodal: Gemini describes/transcribes images and voice notes before routing
- Prompt-injection resistant — message text is data, never instructions
Tech stack
- Python
- Gemini
- Pydantic
- Pandas