How sahithyapopuriofficial-bit/ncct-chatbot works
NCCT Assistant is a browser-based chatbot for questions about NCCT, cooperative training, courses, and its training-institute network. A user submits a question from the chat UI; the browser sends the in-memory conversation to a server route, which validates it and requests a Gemini response using NCCT-specific guidance. The route returns the reply for display in the chat. The README documents the supported topics and intended guidance for uncertain current facts. The graph reflects the sampled UI and route; it does not imply a separate knowledge base or persistent storage.
Main entry points: page.tsx Chat UI and history · route.ts Chat API route · globals.css Chat styling
Components 6
Chat interface
- Chat UI and history
app/page.tsx - Chat styling
app/globals.css
Chat service
- Chat API route
app/api/chat/route.ts - NCCT answer guidance
app/api/chat/route.ts
AI provider
- Gemini API
Other components
- Chat user
Connections 7
- Chat user → Chat UI and history: asks questions
README.md - Chat UI and history → Chat API route: sends history
app/page.tsx - Chat API route → NCCT answer guidance: configures answers
app/api/chat/route.ts - Chat API route → Gemini API: requests generation
app/api/chat/route.ts - Chat API route → Chat UI and history: returns reply
app/api/chat/route.ts - Chat UI and history → Chat user: displays reply
app/page.tsx - Chat UI and history → Chat styling: uses styles