A lightweight web application designed to capture voter input, process it with AI, and return meaningful responses—while maintaining a simple, scalable architecture.
A voter submits their name, voter ID, and a comment or question for a candidate. The Flask app on Render receives the request, forwards it to the OpenAI API (GPT-4o-mini), and returns a contextual AI-generated response. Optionally, replies can be delivered to the voter's inbox via Mailgun. UptimeRobot pings the server every 5 minutes to prevent spin-down.
Component Diagram
📱 Pinch to zoom · Scroll to pan
Flow Legend
1
Deploy application from GitHub to Render2
UptimeRobot pings every 5 min to prevent spin-down3
Send/receive HTTP POST transaction with Render4
Send/receive with ChatGPT using OpenAI API5
ChatGPT (GPT-4o-mini) responds to prompts6
Email sent via Mailgun REST API7
Mailgun delivers email to voter's inbox