How giripsr769/autogen_customer_support works
This is a multi-agent customer-support application. A user submits a query in the React UI; the frontend streams events from FastAPI, whose workflow applies input safety checks, gathers direct and web-researched answers, finalizes and logs them, then checks the generated content before the UI presents the result and agent statuses. The README also identifies a Streamlit frontend, though its integration with the main backend is not shown. Edges reflect excerpts or explicit README descriptions; unsampled implementation details are not inferred.
Main entry points: support_service.py Support workflow · App.jsx React app · research_agent.py Web research · logger_agent.py Finalizer and logger
Components 20
User interfaces
- React app
frontend/src/App.jsx - Chat message
frontend/src/components/ChatMessage.jsx - Agent status
frontend/src/components/AgentSidebar.jsx - Agent responses
frontend/src/components/AgentResponse.jsx - SSE client
frontend/src/services/supportApi.js - Streamlit interface
frontend_streamlit/app.py
API and workflow
- FastAPI endpoints
backend/main.py - Support workflow
backend/services/support_service.py
Safety checks
- Input guardrail
backend/guardrails/input_guardrail.py - Output guardrail
backend/guardrails/output_guardrail.py
Support agents
- Direct support
backend/agents/support_agent.py - Web research
backend/agents/research_agent.py - Finalizer and logger
backend/agents/logger_agent.py
External services and logging
- Web search tool
backend/tools/web_search.py - Log writer
backend/tools/file_writer.py - OpenAI
- Serper search
- DuckDuckGo search
- Conversation log
Other components
- Customer
Connections 23
- Customer → React app: asks
README.md - React app → SSE client: streams query
frontend/src/App.jsx - SSE client → FastAPI endpoints: POSTs SSE request
frontend/src/services/supportApi.js - FastAPI endpoints → Support workflow: dispatches workflow
backend/main.py - Support workflow → Input guardrail: validates query
backend/services/support_service.py - Support workflow → Direct support: runs agent
backend/services/support_service.py - Support workflow → Web research: runs agent
backend/services/support_service.py - Support workflow → Finalizer and logger: runs agent
backend/services/support_service.py - Support workflow → Output guardrail: validates outputs
backend/services/support_service.py - Web research → Web search tool: uses tool
backend/agents/research_agent.py - Web search tool → Serper search: searches first
backend/tools/web_search.py - Web search tool → DuckDuckGo search: falls back
backend/tools/web_search.py - Finalizer and logger → Log writer: saves conversation
backend/agents/logger_agent.py - Log writer → Conversation log: appends log
backend/tools/file_writer.py - React app → Agent status: renders
frontend/src/App.jsx - React app → Chat message: renders
frontend/src/App.jsx - React app → Agent responses: renders
frontend/src/App.jsx - Support workflow → React app: streams statuses and results
README.md - Direct support → OpenAI: uses model
README.md - Web research → OpenAI: uses model
README.md - Finalizer and logger → OpenAI: uses model
README.md - Input guardrail → OpenAI: classifies query
README.md - Output guardrail → OpenAI: checks response
README.md