Welcome to the AI Customer Support Agent documentation. This directory contains comprehensive technical documentation for the entire system.
- System Architecture Overview - Complete system architecture, components, and data flows
- High-Level Design (HLD) - Deployment architecture, component layers, scalability, and performance
- Sequence Diagrams - Detailed interaction flows for all major workflows
- Multi-LLM Provider Architecture - LLM provider system with automatic fallback (Gem ini, Claude)
- Multi-Vector DB Provider Architecture - Vector database abstraction (Pinecone, future providers)
Step-by-step setup and configuration guides:
- Gmail Setup Guide - Configure Gmail API authentication
- Code Walkthrough - Critical flows: auth, routing, data fetching, and knowledge base management
- Main Walkthrough - Installation, configuration, and usage guide
System prompts and templates used by the AI agent:
- Prompts Directory - All prompt templates
- Agent system prompts
- Email classification prompts
- Response generation templates
- Retriever tool descriptions
- Product Requirements Document (PRD) - Complete product specifications, user stories, and technical architecture
graph TB
Start[Start Here]
Start --> PRD[Product Requirements<br/>PRD.md]
Start --> Arch[System Architecture<br/>architecture/README.md]
Start --> Code[Code Walkthrough<br/>walkthroughs/code_walkthrough.md]
Arch --> HLD[High-Level Design<br/>architecture/HIGH_LEVEL_DESIGN.md]
Arch --> Seq[Sequence Diagrams<br/>architecture/SEQUENCE_DIAGRAMS.md]
Arch --> LLM[Multi-LLM Architecture<br/>architecture/llm/README.md]
Arch --> VDB[Multi-Vector DB Architecture<br/>architecture/vector_db/README.md]
Code --> Setup[Main Walkthrough<br/>walkthroughs/main_walkthrough.md]
Setup --> Guides[Setup Guides<br/>guides/]
Guides --> Gmail[Gmail Setup<br/>guides/gmail_setup_guide.md]
Understand the system architecture
→ Start with Architecture Overview
→ Then read High-Level Design
Understand the code → Read Code Walkthrough
Set up the system
→ Follow Main Walkthrough
→ Reference Gmail Setup Guide as needed
Understand multi-LLM support
→ Read Multi-LLM Architecture
→ Check Sequence Diagrams - LLM Fallback
Understand multi-Vector DB support
→ Read Multi-Vector DB Architecture
→ Check Sequence Diagrams - Vector Search
See how emails are processed → Check Sequence Diagrams - Email Processing
All architecture diagrams use Mermaid syntax for:
- Component diagrams
- Sequence diagrams
- State diagrams
- Flow charts
- Python code blocks use syntax highlighting
- Examples are complete and runnable
- Configuration snippets show actual
.envformat
- All file paths use absolute paths
- Code references link to actual files
- Line numbers included where relevant
This documentation was generated from the codebase on 2025-11-29 and should be updated when:
- New providers are added
- Architecture changes significantly
- New features are implemented
- Breaking changes occur
- System overview
- High-level design
- Sequence diagrams (9 workflows)
- Multi-LLM architecture
- Multi-Vector DB architecture
- Complete code walkthrough
- Design patterns explanation
- Service layer documentation
- Gmail setup
- LLM configuration
- Vector DB configuration
- Main user walkthrough
- PRD (Product Requirements)
- User stories
- Technical specifications
Last Updated: November 30, 2025
Codebase Version: Python 3.12+
Architecture Status: Multi-LLM ✅ | Multi-Vector DB ✅ | Gmail Integration ✅ | Separated Auth/Dashboard ✅