How azizulhakim31/ai-chatbot works
Nova AI is a browser-based Gemini chatbot. A user enters a message or selects a suggested prompt; the React app sends it with recent conversation history to the Express chat endpoint, which validates the request, applies the configured system prompt, and calls Gemini. The reply returns to the app for display, with assistant Markdown rendering. The app also persists conversation history in browser localStorage and supports clearing and copying responses. The README documents the health endpoint and responsive chat capabilities; the graph reflects sampled runtime wiring.
Main entry points: App.jsx Chat UI and workflow · server.js Chat and health API · main.jsx React entry point · prompt.js System prompt
Components 8
Chat interface
- Chat UI and workflow
client/src/App.jsx - React entry point
client/src/main.jsx - Conversation history
- Markdown renderer
Chat service
- Chat and health API
server/server.js
Assistant behavior
- System prompt
server/prompt.js
Other components
- Chat user
- Google Gemini API
Connections 8
- React entry point → Chat UI and workflow: mounts
- Chat user → Chat UI and workflow: sends messages
- Chat UI and workflow → Conversation history: reads and writes
- Chat UI and workflow → Chat and health API: posts chat request
- Chat and health API → Chat UI and workflow: returns reply
- Chat UI and workflow → Markdown renderer: renders responses
- Chat and health API → System prompt: uses instructions
- Chat and health API → Google Gemini API: generates content