How tanishktewetia/pollpoint-qa-agent works
PollPoint QA Agent is a scheduled and event-driven survey-testing product. Operators configure synthetic participant accounts in the dashboard; manual runs, schedules, and invitation-email handling feed a durable queue, whose worker runs a browser-backed LangGraph workflow through login, survey discovery, question answering, navigation, and submission. Results and activity are exposed through the API and dashboard. The graph preserves the documented retry and human-review capabilities. Edges follow excerpts, SOURCE INDEX references, or README statements; unsampled wiring is omitted where evidence is insufficient.
Main entry points: graph.py Survey state graph · adapter.py Browser adapter · fill_answer.py Fill answer · route.ts Backend proxy
Components 33
Operator dashboard
- Dashboard UI
frontend/src/app/page.tsx - Account management
frontend/src/app/accounts/page.tsx - Run history
frontend/src/app/runs/page.tsx - System status
frontend/src/app/system/page.tsx - Backend proxy
frontend/src/app/api/backend/[...path]/route.ts
API and persistence
- FastAPI application
main.py - Account routes
app/api/routes/accounts.py - Run routes
app/api/routes/runs.py - System routes
app/api/routes/system.py - API key auth
app/auth/dependencies.py - Account validation
app/schemas/account.py - Supabase persistence
app/services/supabase/client.py
Queue and orchestration
- Worker scheduler
app/workers/scheduler.py - Invitation email workflow
app/services/email_workflow.py - Worker health
app/workers/health.py - Run pipeline
app/pipelines/survey_pipeline.py - Survey state graph
app/core/graph.py - Run activity events
app/core/run_events.py
Survey execution
- Browser adapter
app/browser/adapter.py - Load participant
app/nodes/load_account.py - Open survey
app/nodes/open_survey.py - Extract question
app/nodes/extract_question.py - Navigate or finish
app/nodes/check_next.py - Submit survey
app/nodes/submit_survey.py
Answering services
- Generate answer
app/nodes/generate_answer.py - Fill answer
app/nodes/fill_answer.py - Answering service
app/services/answering.py - Verified answers
app/services/knowledge_base.py - Random fallback
app/services/random_fallback.py
Other components
- Operator
- PostgreSQL queue and data
- PollPoint test site
- Gemini model
Connections 43
- Operator → Dashboard UI: operates
- Dashboard UI → Backend proxy: requests API
- Account management → Backend proxy: manages accounts
- Run history → Backend proxy: views runs
- System status → Backend proxy: checks status
- Backend proxy → FastAPI application: forwards requests
- FastAPI application → Account routes: mounts routes
main.py - FastAPI application → Run routes: mounts routes
main.py - FastAPI application → System routes: mounts routes
main.py - Account routes → API key auth: authenticates
app/api/routes/accounts.py - Run routes → API key auth: authenticates
app/api/routes/runs.py - System routes → API key auth: authenticates
app/auth/dependencies.py - Account routes → Account validation: validates accounts
app/api/routes/accounts.py - Account routes → Supabase persistence: reads and writes
app/api/routes/accounts.py - Run routes → Supabase persistence: queues and reads runs
app/api/routes/runs.py - System routes → Supabase persistence: checks database
app/api/routes/system.py - Supabase persistence → PostgreSQL queue and data: persists queue and records
- Worker scheduler → Supabase persistence: claims and enqueues
app/workers/scheduler.py - Worker scheduler → Invitation email workflow: checks invitations
app/workers/scheduler.py - Worker scheduler → Run pipeline: runs survey workflow
app/workers/scheduler.py - Worker scheduler → Worker health: reports health
app/workers/scheduler.py - Run pipeline → Survey state graph: streams graph
app/pipelines/survey_pipeline.py - Survey state graph → Load participant: dispatches
app/core/graph.py - Survey state graph → Open survey: dispatches
app/core/graph.py - Survey state graph → Extract question: dispatches
app/core/graph.py - Survey state graph → Generate answer: dispatches
app/core/graph.py - Survey state graph → Fill answer: dispatches
app/core/graph.py - Survey state graph → Navigate or finish: dispatches
app/core/graph.py - Survey state graph → Submit survey: dispatches
app/core/graph.py - Load participant → Browser adapter: prepares session
- Open survey → Browser adapter: controls browser
app/browser/adapter.py - Extract question → Browser adapter: reads page
- Navigate or finish → Browser adapter: inspects navigation
app/nodes/check_next.py - Fill answer → Browser adapter: fills response
app/nodes/fill_answer.py - Submit survey → Browser adapter: submits response
- Browser adapter → PollPoint test site: drives headless browser
- Generate answer → Answering service: requests answer
- Fill answer → Answering service: requests correction
app/nodes/fill_answer.py - Fill answer → Verified answers: updates reusable answers
app/nodes/fill_answer.py - Fill answer → Random fallback: selects fallback
app/nodes/fill_answer.py - Answering service → Gemini model: generates response
app/services/answering.py - Run pipeline → Run activity events: records activity
app/pipelines/survey_pipeline.py - Run pipeline → Browser adapter: owns browser lifetime
app/pipelines/survey_pipeline.py