How ranjith-fullstack/ai-calling-agent works
This is a self-hosted AI calling platform with a React interface and FastAPI backend. Users import and manage contacts, build consent-checked campaigns, then simulate or queue calls; call handling includes IVR, local AI voice services, and agent handoff. Users also monitor queues and review reports. The README documents these capabilities and the limited local telephony scope. Several service and route implementations were not sampled, so edges for those documented workflows cite the README rather than implying source-level inspection.
Main entry points: routes API routes · client.js HTTP client · call_service.py Call handling facade · campaigns.py Campaign management
Components 25
User interface
- React application
frontend/src/App.jsx - Customer management
frontend/src/pages/Customers.jsx - Spreadsheet import
frontend/src/pages/ExcelUpload.jsx - Campaign controls
frontend/src/pages/Campaigns.jsx - Call simulation
frontend/src/pages/CallSimulation.jsx - Reports and dashboards
frontend/src/pages/Reports.jsx - HTTP client
frontend/src/api/client.js
API and data
- API routes
backend/app/api/routes - Authentication
backend/app/api/routes/auth.py - Customer records
backend/app/api/routes/customers.py - Import staging
backend/app/services/imports.py - PostgreSQL data
backend/app/database/session.py - Analytics and export
backend/app/services/reports.py
Campaign operations
- Campaign management
backend/app/services/campaigns.py - Campaign assignments
backend/app/models/campaign.py - Call queue worker
backend/app/services/queue.py
Call handling
- Call handling facade
backend/app/services/call_service.py - Call simulation
backend/app/services/simulation.py - IVR and DTMF
backend/app/services/ivr.py - AI and voice services
backend/app/services - Asterisk adapter
backend/app/services/telephony.py - Agent transfers
backend/app/api/routes/agents.py
Other components
- Operator
- Asterisk
- Local AI tools
Connections 28
- Operator → React application: uses
README.md - React application → Customer management: routes to
- Customer management → HTTP client: requests data
frontend/src/pages/Customers.jsx - Spreadsheet import → HTTP client: uploads data
- Campaign controls → HTTP client: manages campaigns
README.md - Call simulation → HTTP client: starts simulations
README.md - Reports and dashboards → HTTP client: requests reports
README.md - HTTP client → API routes: sends requests
README.md - API routes → Authentication: mounts routes
backend/app/main.py - API routes → Customer records: mounts routes
backend/app/main.py - API routes → Import staging: delegates imports
README.md - Authentication → PostgreSQL data: reads and writes
backend/app/api/routes/auth.py - Customer records → PostgreSQL data: persists records
README.md - Import staging → PostgreSQL data: stages records
README.md - Campaign controls → Campaign management: controls lifecycle
README.md - Campaign management → Campaign assignments: manages assignments
README.md - Campaign management → Call queue worker: queues campaign
backend/app/services/campaign_service.py - Call queue worker → Call handling facade: executes jobs
backend/app/services/call_service.py - API routes → Call handling facade: dispatches calls
README.md - Call handling facade → Call simulation: delegates simulation
backend/app/services/call_service.py - Call handling facade → IVR and DTMF: delegates IVR
backend/app/services/call_service.py - Call handling facade → Asterisk adapter: delegates telephony
backend/app/services/call_service.py - API routes → AI and voice services: serves AI and voice
README.md - Asterisk adapter → Asterisk: connects locally
README.md - AI and voice services → Local AI tools: uses local models
README.md - API routes → Agent transfers: serves agent controls
backend/app/main.py - API routes → Analytics and export: serves analytics
README.md - Reports and dashboards → Analytics and export: reviews results
README.md