How arunsagi7/ai-automatic-calling works
The product is an AI calling operations system: a React dashboard manages leads, calls, events, and agents through a FastAPI backend; SnapServe performs telephony and the STT/LLM/TTS conversation. The backend stores operational records, synchronizes event details into agent prompts, and supports webhook updates and asynchronous call work. The graph preserves documented dashboard and simulator capabilities; some worker and tool wiring is documented or indexed but not shown in source excerpts, so uncertain links are omitted or dashed.
Main entry points: session.py Application database · main.py API application · calls.py Calls and campaigns · event_sync_service.py Event synchronization
Components 26
Operations dashboard
- Dashboard
frontend/src/App.jsx - API client
frontend/src/api/client.js
Backend API
- API application
backend/app/main.py - Calls and campaigns
backend/app/api/routes/calls.py - Lead management
backend/app/api/routes/leads.py - Event management
backend/app/api/routes/events.py - Agent administration
backend/app/api/routes/admin.py - SnapServe webhooks
backend/app/api/routes/webhooks/snapserve.py - Signature verification
backend/app/middleware/webhook_signature.py
Calling and agents
- SnapServe voice service
backend/app/services/snapserve_service.py - Event prompt sync
backend/app/services/event_sync_service.py - Appointment booking
backend/app/functions/book_appointment.py - Order status lookup
backend/app/functions/check_order_status.py - Human transfer
backend/app/functions/transfer_to_human.py
Persistence and jobs
- Application database
backend/app/db/session.py - Call records
backend/app/models/call.py - Lead records
backend/app/models/lead.py - Event records
backend/app/models/event.py - Transcript records
backend/app/models/transcript.py - Campaign dialer
backend/app/workers/outbound_dialer.py - Post-call jobs
backend/app/workers/post_call_jobs.py - CRM service
backend/app/services/crm_service.py - Notifications
backend/app/services/notification_service.py - Event synchronization
backend/app/services/event_sync_service.py
Other components
- Operator
- SnapServe platform
Connections 35
- Operator → Dashboard: operates
README.md - Dashboard → API client: requests data
frontend/src/App.jsx - API client → API application: calls backend
README.md - API application → Calls and campaigns: routes calls
backend/app/main.py - API application → Lead management: routes leads
backend/app/main.py - API application → Event management: routes events
backend/app/main.py - API application → Agent administration: routes admin
backend/app/main.py - API application → SnapServe webhooks: routes webhooks
backend/app/main.py - Calls and campaigns → SnapServe voice service: places and reads calls
backend/app/api/routes/calls.py - Agent administration → SnapServe voice service: manages agents
backend/app/api/routes/admin.py - SnapServe voice service → SnapServe platform: calls API
backend/app/services/snapserve_service.py - SnapServe platform → Calls and campaigns: returns call results
README.md - SnapServe webhooks → Signature verification: verifies signature
backend/app/api/routes/webhooks/snapserve.py - SnapServe webhooks → Application database: updates records
backend/app/api/routes/webhooks/snapserve.py - Calls and campaigns → Application database: reads and writes
backend/app/api/routes/calls.py - Lead management → Application database: reads and writes
backend/app/api/routes/leads.py - Event management → Application database: reads and writes
backend/app/api/routes/events.py - Application database → Call records: persists
backend/app/models/call.py - Application database → Lead records: persists
backend/app/models/lead.py - Application database → Event records: persists
backend/app/models/event.py - Application database → Transcript records: persists
backend/app/models/transcript.py - Event management → Event synchronization: synchronizes changes
backend/app/api/routes/events.py - Calls and campaigns → Event synchronization: syncs before dialing
backend/app/api/routes/calls.py - Event synchronization → Application database: reads active events
backend/app/services/event_sync_service.py - Event synchronization → SnapServe voice service: updates agent prompt
backend/app/services/event_sync_service.py - Calls and campaigns → Campaign dialer: queues campaign dialing
- Campaign dialer → SnapServe voice service: places outbound calls
backend/app/workers/outbound_dialer.py - Campaign dialer → Application database: reads and updates
backend/app/workers/outbound_dialer.py - Campaign dialer → Event synchronization: syncs before dialing
backend/app/workers/outbound_dialer.py - Post-call jobs → Application database: loads call data
backend/app/workers/post_call_jobs.py - Post-call jobs → CRM service: syncs outcomes
backend/app/workers/post_call_jobs.py - Post-call jobs → Notifications: sends updates
backend/app/workers/post_call_jobs.py - SnapServe platform → Appointment booking: invokes tool
- SnapServe platform → Order status lookup: invokes tool
- SnapServe platform → Human transfer: invokes tool