How shradha-khapra/ai_assistant_withflask works
This small Flask app serves a single page and offers two form-based workflows: ask a personal-assistant question or summarize an email. Both workflows call the OpenAI Responses API and return the generated text as JSON. The excerpts show the server routes and API calls, but not the template or styling contents, so the page is represented only as a rendered view.
Main entry points: main.py Flask routes · index.html Assistant page
Components 6
Web app
- Assistant page
templates/index.html - Flask routes
main.py
AI workflows
- Ask assistant
main.py - Summarize email
main.py
Other components
- User
- OpenAI API
Connections 6
- User → Flask routes: submits request
main.py - Flask routes → Assistant page: renders
main.py - Flask routes → Ask assistant: dispatches
main.py - Flask routes → Summarize email: dispatches
main.py - Ask assistant → OpenAI API: requests answer
main.py - Summarize email → OpenAI API: requests summary
main.py