How sherinovia19/nexora-ai works
Nexora AI’s main workflow runs from a user’s browser through the Flask chat endpoint to a Gemini response, then displays that response in the conversation. The backend validates requests and assigns conversation IDs; the chatbot builds bounded context from per-conversation in-memory history and supplies a fixed system prompt to Gemini. The README also documents the web interface, error handling, and environment-based API-key configuration. Source excerpts show the backend and chatbot calls; the browser-to-endpoint link is visible in the JavaScript. Other UI wiring is not shown in the excerpts.
Main entry points: app.py Chat API · chatbot.py Chat orchestration · script.js Chat interaction · index.html Chat page
Components 10
Web interface
- Chat page
templates/index.html - Chat interaction
static/script.js
Flask backend
- Chat API
app.py - Request validation
app.py - API error handling
app.py
Conversation and AI
- Chat orchestration
chatbot.py - Context and prompt
chatbot.py - Conversation history
chatbot.py
Other components
- Chat user
- Gemini API
Connections 10
- Chat user → Chat interaction: sends messages
README.md - Chat API → Chat page: renders page
app.py - Chat interaction → Chat API: posts message
static/script.js - Chat API → Request validation: validates input
app.py - Chat API → Chat orchestration: calls chat
app.py - Chat API → API error handling: handles failures
app.py - Chat orchestration → Context and prompt: builds context
chatbot.py - Chat orchestration → Conversation history: reads and writes
chatbot.py - Chat orchestration → Gemini API: sends prompt and context
chatbot.py - Gemini API → Chat orchestration: returns response
chatbot.py