# AuditGate

- **Event:** [Agents in Context Toronto: a MongoDB Hackathon](https://cerebralvalley.ai/e/mongodb-toronto-hackathon)
- **When:** Sat, Nov 14 at 9:00 AM – 9:00 PM (EST)
- **Where:** Toronto, Canada
- **Team:** [Peter Yousefi](https://cerebralvalley.ai/u/peteryou)
- **GitHub:** https://github.com/PeterYousefi/AuditGate
- **Demo video:** https://youtu.be/9Eub8QxFS7E
- **Gallery:** https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/36

AuditGate is a customer support and refund agent built around a simple idea: an AI shouldn't be trusted to police itself with money. Instead of relying on system prompts to keep the model in line, AuditGate puts every financial threshold, security check, and approval rule directly inside MongoDB Atlas.

When a customer asks for a refund—either by typing or speaking through ElevenLabs voice—the agent verifies their order in MongoDB and checks our live policy rules without ever revealing internal limits to the user. Routine refunds within the limit go through automatically. If someone asks for a larger amount, LangGraph pauses the conversation state in MongoDB until a manager reviews the request and hits Approve, which immediately wakes the agent back up via MongoDB Change Streams to finish the refund.

To protect against jailbreaks, Atlas Vector Search screens incoming messages for prompt-injection patterns and pulls up relevant policy precedents for human reviewers. Every decision is permanently recorded in a schema-validated MongoDB audit log linked directly to its LangSmith trace, giving teams a clear, tamper-proof record of every action the agent takes.

## More from Agents in Context Toronto: a MongoDB Hackathon

- [JQ](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/33)
- [Yanli](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/34)
- [Strata](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/35)
- [mongogov](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/37)
- [ArchMind](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/38)
- [Phylax Tower](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/39)

---

Markdown version of https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/36. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
