How ismail-2001/customer-support-ai-employee works
cs-agent is a multi-store ecommerce support agent with a review-oriented dashboard and storefront chat. The main workflow is ticket intake, conversation-aware classification and context gathering, grounded response drafting, then guarded delivery or human-approved actions. README capabilities also include knowledge-base sync, subscriptions, return labels, tracing, analytics, ROI, and guided setup. Edges are limited to relationships shown in excerpts, the SOURCE INDEX, or README; unsampled subsystem links are omitted where their caller is not evidenced.
Main entry points: customer_support.py Ticket workflows · main.py API service · response_engine.py Reply generation · support_agent.py Order and policy context
Components 25
API and intake
- API service
api/main.py - Ticket workflows
api/customer_support.py - Storefront chat
api/chat.py
Support intelligence
- Ticket classification
agent/classifier.py - Order and policy context
agent/support_agent.py - Reply generation
agent/response_engine.py - Thread memory
agent/conversation.py - LLM providers
agent/llm.py - LLM tracing
agent/observability.py - Send and escalate
agent/automation.py - Runtime configuration
agent/config.py
Store data
- Policy and product KB
agent/knowledge_base.py - Catalog sync
agent/product_sync.py - Tickets and analytics
agent/storage.py - Store isolation
agent/multistore.py
Commerce integrations
- Shopify commerce
integrations/shopify.py - Gorgias support desk
integrations/gorgias.py - Subscription providers
integrations/subscriptions.py - Return labels
integrations/shipengine.py
Operator experience
- Operator dashboard
dashboard/src/App.tsx - Dashboard API client
dashboard/src/lib/api.ts - Onboarding wizard
dashboard/src/pages/SetupPage.tsx - Chat widget
dashboard/src/widget/widget.ts
Other components
- Customer
- Support operator
Connections 30
- Customer → API service: sends request
api/main.py - API service → Ticket workflows: routes requests
api/main.py - API service → Storefront chat: routes requests
api/main.py - Ticket workflows → Ticket classification: classifies ticket
api/customer_support.py - Ticket workflows → Order and policy context: gets context
api/customer_support.py - Ticket workflows → Reply generation: requests draft
api/customer_support.py - Reply generation → LLM providers: calls model
agent/response_engine.py - Reply generation → LLM tracing: records call
agent/response_engine.py - Reply generation → Thread memory: uses thread
agent/response_engine.py - Ticket workflows → Send and escalate: controls delivery
agent/automation.py - Ticket workflows → Tickets and analytics: reads and writes
agent/storage.py - Order and policy context → Shopify commerce: looks up orders
- Order and policy context → Policy and product KB: retrieves policy
agent/knowledge_base.py - Catalog sync → Shopify commerce: imports catalog
- Catalog sync → Policy and product KB: indexes products
- API service → Store isolation: scopes stores
api/main.py - Store isolation → Tickets and analytics: selects store data
agent/multistore.py - Store isolation → Policy and product KB: selects store KB
agent/multistore.py - Ticket workflows → Gorgias support desk: syncs tickets
api/customer_support.py - Ticket workflows → Subscription providers: handles approvals
api/customer_support.py - Ticket workflows → Return labels: requests label
api/customer_support.py - Support operator → Operator dashboard: reviews tickets
- Operator dashboard → Dashboard API client: loads data
dashboard/src/App.tsx - Dashboard API client → API service: calls API
- Operator dashboard → Onboarding wizard: opens setup
dashboard/src/App.tsx - Onboarding wizard → Dashboard API client: submits setup
dashboard/src/pages/SetupPage.tsx - Customer → Chat widget: chats
- Chat widget → Storefront chat: streams chat
- Runtime configuration → LLM providers: configures providers
agent/llm.py - Ticket workflows → Tickets and analytics: serves analytics
api/customer_support.py