How baddamakshaya01-star/customer-support works
RecallDesk is an AI customer-support console backed by a FastAPI service. An agent uses customer context, tickets, and recalled memories to answer each customer message, then evaluates whether to escalate and extracts new memories and frustration data. The console also supports customer, ticket, escalation, and analytics views. Persistent customer and ticket records use SQLite; conversational memory optionally uses Hindsight, and response generation uses a configured language-model provider. The README documents the REST-backed frontend workflow; unsampled endpoint and UI details are represented only at subsystem level.
Main entry points: main.py REST API · agent_service.py Support Agent · memory_service.py Memory Service · app.js Console UI
Components 13
Support Console
- Console UI
frontend/app.js - Console Views
frontend/app.js
API and Domain
- REST API
backend/main.py - API Schemas
backend/models.py
Agent Workflow
- Support Agent
backend/services/agent_service.py - Context Prompts
backend/services/prompts.py - Escalation Rules
backend/services/escalation_service.py - LLM Service
backend/services/llm_service.py
Persistence and Providers
- Memory Service
backend/services/memory_service.py - SQLite Records
backend/database.py - Hindsight Memory
Other components
- Support User
- LLM Provider
Connections 15
- Support User → Console UI: uses
README.md - Console UI → REST API: sends REST requests
README.md - REST API → API Schemas: validates payloads
backend/main.py - REST API → Support Agent: requests response
backend/main.py - REST API → Memory Service: loads and saves context
backend/main.py - REST API → SQLite Records: initializes and queries
backend/main.py - Support Agent → Memory Service: fetches and updates memory
backend/services/agent_service.py - Support Agent → Context Prompts: builds context prompt
backend/services/agent_service.py - Support Agent → LLM Service: generates and extracts
backend/services/agent_service.py - Support Agent → Escalation Rules: checks handoff
backend/services/agent_service.py - LLM Service → LLM Provider: calls completions
backend/services/llm_service.py - Memory Service → SQLite Records: reads and updates records
backend/services/memory_service.py - Memory Service → Hindsight Memory: retains and recalls
backend/services/memory_service.py - Console UI → Console Views: renders console
frontend/app.js - Console Views → REST API: loads console data
frontend/app.js