How rclalithkumar/nexaflow-ai works
NexaFlow AI is an enterprise support chatbot: users submit text or dictated messages, the backend classifies intent, generates a persona-specific reply, optionally creates a support ticket, saves the conversation, and returns the result. The UI also reloads history; separate ticket and analytics endpoints expose operational data. The sampled backend shows the classification, prompting, ticketing, and persistence logic in one server module. The dashboard exists but is documented as not yet routed. Edges reflect shown calls or README-described capabilities; unsampled integrations are not inferred.
Main entry points: server.js API and chat workflow · ChatPage.jsx Chat interface · Chat.js Chat records · Ticket.js Ticket records
Components 17
Chat experience
- App shell
frontend/vite-project/src/App.jsx - Chat interface
frontend/vite-project/src/pages/ChatPage.jsx - Browser speech recognition
- Analytics dashboard
frontend/vite-project/src/pages/Dashboard.jsx
Conversation handling
- API and chat workflow
backend/server.js - Intent classification
backend/server.js - Keyword fallback
backend/server.js - Persona reply generation
backend/server.js
Support operations
- Automatic ticketing
backend/server.js - Analytics endpoint
backend/server.js - Ticket listing endpoint
backend/server.js - Chat history endpoint
backend/server.js
Persistence
- Chat records
backend/models/Chat.js - Ticket records
backend/models/Ticket.js
Other components
- Customer
- Groq LLM
- MongoDB
Connections 20
- Customer → Chat interface: sends message
frontend/vite-project/src/pages/ChatPage.jsx - App shell → Chat interface: renders
frontend/vite-project/src/App.jsx - Chat interface → Browser speech recognition: dictates input
README.md - Chat interface → API and chat workflow: posts chat
frontend/vite-project/src/pages/ChatPage.jsx - Chat interface → Chat history endpoint: loads history
frontend/vite-project/src/pages/ChatPage.jsx - Analytics dashboard → Analytics endpoint: fetches metrics
frontend/vite-project/src/pages/Dashboard.jsx - API and chat workflow → Intent classification: classifies message
backend/server.js - Intent classification → Groq LLM: requests intent
backend/server.js - Intent classification → Keyword fallback: uses on failure
backend/server.js - API and chat workflow → Persona reply generation: selects prompt
backend/server.js - Persona reply generation → Groq LLM: generates reply
backend/server.js - API and chat workflow → Automatic ticketing: checks ticket rule
backend/server.js - Automatic ticketing → Ticket records: creates ticket
backend/server.js - API and chat workflow → Chat records: saves conversation
backend/server.js - Chat history endpoint → Chat records: queries history
backend/server.js - Ticket listing endpoint → Ticket records: queries tickets
backend/server.js - Analytics endpoint → Chat records: counts and groups
backend/server.js - Analytics endpoint → Ticket records: counts tickets
backend/server.js - API and chat workflow → MongoDB: connects to
backend/server.js - Chat interface → Customer: shows reply
frontend/vite-project/src/pages/ChatPage.jsx