How omwairagade/my-ai-chatbot works
This is a small Flask chatbot: a user submits a message to the web route, which validates it and calls the response-generation function; that function sends the prompt to Google Gemini, and the route returns the result as JSON. The home route renders the chat page. The template and stylesheet are present in the tree, but their contents were not sampled, so their client-side behavior and styling connections are not shown. The only evidenced AI integration is Gemini.
Main entry points: app.py Flask routes · index.html Chat page
Components 5
Web application
- Flask routes
app.py - Chat page
templates/index.html
AI integration
- Response generator
app.py
Other components
- User
- Google Gemini
Connections 5
- User → Flask routes: submits message
app.py - Flask routes → Chat page: renders home
app.py - Flask routes → Response generator: requests response
app.py - Response generator → Google Gemini: generates content
app.py - Flask routes → User: returns JSON
app.py