How ashutosh-kumar-rao/chat-cue works
Chat-Cue combines an organization-facing support dashboard with an embedded customer widget and Convex backend. Its documented core workflow is businesses managing knowledge files, then customers asking questions that the AI answers with retrieved context and tracks as conversations. The sampled code confirms the embed-to-widget launch and contact-session creation, plus RAG configuration, but not the full file-ingestion or AI-answer call chain. Dashed links mark documented capabilities whose implementation wiring was not sampled.
Main entry points: dashboard/ui Admin dashboard · widget/ui Customer widget · supportAgent.ts Support agent · messages.ts Messages
Components 23
Business Console
- Sign-in and org setup
apps/web/modules/auth/ui - Admin dashboard
apps/web/modules/dashboard/ui - Knowledge files
apps/web/modules/files/ui - Widget settings
apps/web/modules/customization/ui - Plans and billing
apps/web/modules/billing/ui - Integrations
apps/web/modules/integrations/ui - Voice integration
apps/web/modules/plugin/ui
Customer Channels
- Website embed
apps/embed/embed.ts - Customer widget
apps/widget/modules/widget/ui
Support Backend
- Convex API
packages/backend/convex/public - Contact sessions
packages/backend/convex/public/contactSessions.ts - Conversation management
packages/backend/convex/public/conversations.ts - Messages
packages/backend/convex/public/messages.ts - Application data
packages/backend/convex/schema.ts - File processing
packages/backend/convex/private/files.ts
AI Knowledge
- RAG retrieval
packages/backend/convex/system/ai/rag.ts - Support agent
packages/backend/convex/system/ai/agents/supportAgent.ts - Knowledge search
packages/backend/convex/system/ai/tools/search.ts - Resolve or escalate
packages/backend/convex/system/ai/tools
Other components
- Business user
- Customer
- VAPI voice service
- Clerk identity and billing
Connections 27
- Business user → Sign-in and org setup: signs in
- Sign-in and org setup → Clerk identity and billing: authenticates
- Business user → Admin dashboard: manages support
- Admin dashboard → Knowledge files: opens knowledge
- Admin dashboard → Widget settings: configures widget
- Admin dashboard → Plans and billing: manages plan
- Admin dashboard → Integrations: connects tools
- Admin dashboard → Voice integration: configures voice
- Business user → Website embed: installs script
- Website embed → Customer widget: loads iframe
apps/embed/embed.ts - Customer → Customer widget: starts support
- Customer widget → Contact sessions: creates session
apps/widget/modules/widget/ui/screens/widget-auth-screen.tsx - Contact sessions → Application data: writes session
packages/backend/convex/public/contactSessions.ts - Customer widget → Convex API: uses backend API
apps/widget/modules/widget/ui/screens/widget-auth-screen.tsx - Admin dashboard → Convex API: queries and mutates
- Knowledge files → File processing: uploads documents
- File processing → RAG retrieval: indexes content
- Customer widget → Messages: sends questions
- Support agent → Knowledge search: retrieves context
- Knowledge search → RAG retrieval: searches vectors
- Support agent → Messages: produces response
- Support agent → Resolve or escalate: classifies outcome
- Conversation management → Application data: tracks state
- Messages → Application data: stores messages
- Voice integration → VAPI voice service: connects voice
- Customer widget → VAPI voice service: supports voice calls
- Plans and billing → Clerk identity and billing: uses billing