How srinivas626/multi-agent-support-ai works
Multi-Agent Support AI accepts support questions through a FastAPI chat API and returns a composed answer. The graph routes each request to document-grounded retrieval, general chat, or an action path; actions pass role checks, approval gating, and argument validation before mock ticket/email tools. The README also documents a static chat UI and an offline knowledge-index build path. Edges follow explicit workflow wiring, sampled calls, or README statements; unsampled endpoint and indexing internals are represented only where documented.
Main entry points: nodes.py Workflow nodes · workflow.py Workflow graph · main.py Chat API · qa.py Grounded answering
Components 23
Agent workflow
- Workflow graph
app/graph/workflow.py - Request state
app/graph/state.py - Route classifier
app/agents/router.py - Workflow nodes
app/graph/nodes.py - General chat
app/agents/general_agent.py - Action selector
app/agents/action_agent.py - Response formatter
app/agents/response_agent.py
Knowledge retrieval
- Knowledge agent
app/agents/knowledge_agent.py - Grounded answering
app/rag/qa.py - Document search
app/rag/retriever.py - Text embeddings
app/rag/embeddings.py - Index preparation
app/rag/build_index.py - Support documents
data/documents/company_support.txt - FAISS index
data/vectorstore/index.faiss
Action safeguards
- Role permissions
app/guardrails/permissions.py - Approval rules
app/guardrails/risk.py - Argument validation
app/guardrails/validation.py
Models and tools
- Ticket tool
app/tools/ticket_tool.py - Email tool
app/tools/email_tool.py - Bedrock model
Other components
- Support user
Connections 28
- Support user → Chat API: submits chat
README.md - Support user → Chat page: uses chat
README.md - Chat page → Chat API: sends chat
- Chat API → Workflow graph: invokes workflow
app/main.py - Workflow graph → Request state: uses state
app/graph/workflow.py - Workflow graph → Workflow nodes: registers nodes
app/graph/workflow.py - Workflow nodes → Route classifier: classifies request
app/graph/nodes.py - Workflow nodes → Knowledge agent: runs retrieval agent
app/graph/nodes.py - Knowledge agent → Grounded answering: answers question
app/agents/knowledge_agent.py - Grounded answering → Document search: searches documents
app/rag/qa.py - Document search → Text embeddings: creates embeddings
app/rag/retriever.py - Document search → FAISS index: loads and searches
app/rag/retriever.py - Support documents → Index preparation: provides source text
- Index preparation → FAISS index: builds index
README.md - Workflow nodes → General chat: runs general chat
app/graph/nodes.py - Workflow nodes → Action selector: selects action
app/graph/nodes.py - Workflow nodes → Role permissions: checks role
app/graph/nodes.py - Workflow nodes → Approval rules: checks approval
app/graph/nodes.py - Workflow nodes → Argument validation: validates arguments
app/graph/nodes.py - Workflow nodes → Ticket tool: executes ticket
app/graph/nodes.py - Workflow nodes → Email tool: executes email
app/graph/nodes.py - Workflow nodes → Response formatter: formats result
app/graph/nodes.py - Route classifier → Bedrock model: classifies with
app/agents/router.py - Action selector → Bedrock model: selects with
app/agents/action_agent.py - Grounded answering → Bedrock model: generates answer
app/rag/qa.py - General chat → Bedrock model: generates reply
app/agents/general_agent.py - Response formatter → Bedrock model: composes response
app/agents/response_agent.py - Workflow graph → Chat API: returns result
app/main.py