About the Project
Inspiration
Customer support teams handle thousands of repetitive inquiries every day, but traditional AI chatbots often struggle with reliability. They can confidently provide incorrect information, fail to recognize conflicting company policies, or escalate too many conversations unnecessarily. We wanted to build an AI system that behaves more like a responsible support agent—one that not only generates answers but also evaluates its own confidence, understands business risk, and knows when to involve a human.
SupportFlow AI was inspired by a simple question:
What if an AI could review its own work before sending it to a customer?
That idea became the foundation of a self-auditing, agentic customer support platform that prioritizes trust, transparency, and human oversight.
What it does
SupportFlow AI is a Self-Auditing Agentic RAG System for customer support automation.
Instead of relying on a single LLM response, the system orchestrates multiple specialized AI agents that collaborate to understand the customer's request, retrieve relevant company policies, generate a response, verify its accuracy, assess business risk, and decide the safest next action.
For every customer message, the system performs the following pipeline:
- Understands customer intent and extracts key entities.
- Retrieves relevant knowledge using Google Gemini embeddings and a FAISS vector database.
- Detects contradictions across retrieved policy documents.
- Evaluates customer emotion and business risk.
- Generates a policy-grounded response.
- Performs an independent self-audit to verify factual support and response quality.
- Routes the conversation into exactly one action:
- Auto-send
- Save as draft
- Ask a follow-up question
- Escalate to a human agent
- Learns from human corrections by storing approved edits as retrieval-based examples for future conversations—without requiring model fine-tuning.
This creates a customer support workflow that is not only intelligent but also accountable.
How we built it
The system combines several modern AI technologies into a modular multi-agent architecture.
AI Stack
- Groq (Llama 3.3 70B) for reasoning and all agent decisions
- Google Gemini text-embedding-004 for semantic embeddings
- FAISS for persistent vector search
- FastAPI backend for orchestration
- SQLite for conversation history, learning logs, and handoff records
- Streamlit dashboard for monitoring and administration
Specialized AI Agents
Our architecture consists of independent agents responsible for:
- Query Understanding
- Knowledge Retrieval (RAG)
- Policy Conflict Detection
- Risk & Emotion Detection
- Response Generation
- Self-Audit
- Decision Engine
- Human Handoff
- Learning Feedback
Because each agent has a single responsibility, the system remains modular, explainable, and easy to extend.
Challenges we ran into
One of the biggest challenges was reducing hallucinations without making the system overly conservative.
Instead of trusting the first generated answer, we introduced a Self-Audit Agent that independently reviews the draft against the retrieved policy documents. This second verification step significantly improves reliability by identifying unsupported claims before responses reach customers.
Another challenge was handling conflicting knowledge. In real organizations, documentation often becomes inconsistent over time. Rather than allowing the AI to guess, we built a Policy Conflict Detector that identifies contradictory documents and automatically escalates those cases for human review.
Designing the decision engine also required balancing automation with safety. High-confidence, low-risk requests should be answered instantly, while payment disputes, legal threats, or policy conflicts should always involve a human.
Finally, we wanted the system to improve over time without expensive retraining. We solved this by implementing a retrieval-based learning loop that stores human corrections and reuses them as few-shot examples in future conversations.
What we learned
Building SupportFlow AI reinforced several important lessons:
- Multi-agent systems produce more reliable outcomes than a single LLM prompt.
- Confidence estimation is just as important as answer generation.
- Human-in-the-loop workflows remain essential for high-risk business scenarios.
- Retrieval-Augmented Generation becomes significantly more trustworthy when combined with verification and policy conflict detection.
- Continuous improvement can be achieved through retrieval-based learning without fine-tuning large language models.
Most importantly, we learned that trustworthy AI isn't about answering every question—it's about knowing when not to answer.
What's next
We plan to extend SupportFlow AI with:
- Multi-channel integrations (Slack, Microsoft Teams, WhatsApp, Zendesk)
- OCR support for invoices, receipts, and uploaded documents
- Multi-language customer support
- Real-time analytics dashboards
- Knowledge base versioning and automatic policy synchronization
- Reinforcement from human feedback (RLHF) workflows
- Enterprise authentication and role-based access control
- Deployment-ready cloud infrastructure with scalable vector databases
Our long-term vision is to build AI customer support systems that are not only fast and intelligent but also transparent, trustworthy, and safe enough for real-world business operations.


Log in or sign up for Devpost to join the conversation.