ARCHITECTURE OVERVIEW

Voter Engagement
Prototype Stack

v1.1  ·  End-to-End Component Diagram

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
Voter Engagement Prototype Components v1.1 — architecture diagram showing PC/mobile browser, Flask on Render, OpenAI ChatGPT, GitHub, UptimeRobot, Mailgun, and Email Client

Flow Legend

1
Deploy application from GitHub to Render
2
UptimeRobot pings every 5 min to prevent spin-down
3
Send/receive HTTP POST transaction with Render
4
Send/receive with ChatGPT using OpenAI API
5
ChatGPT (GPT-4o-mini) responds to prompts
6
Email sent via Mailgun REST API
7
Mailgun delivers email to voter's inbox