How arpanarnav03-lab/voice_ai_number_management-system- works
Bolna Number Manager is an internal dashboard and backend for managing voice-agent caller IDs, triggering calls, counting connected calls, and switching numbers safely at a threshold. The principal workflow is dashboard action → API → transactional rules and database → Bolna call → background polling and settlement; settlement can trigger a deferred number switch. Separate branches cover account-number sync and human-reviewed spam testing/release. Edges reflect README statements and SOURCE INDEX references; unsampled implementation details are not inferred beyond those references.
Main entry points: services.py Allocation rules · main.py Application runtime · App.tsx Dashboard routes · api.py HTTP API
Components 21
Dashboard
- Dashboard routes
frontend/src/App.tsx - Agent management
frontend/src/AgentsTab.tsx - Agent detail
frontend/src/AgentDetail.tsx - Number pool
frontend/src/PoolTab.tsx - Spam review
frontend/src/SpamTab.tsx - API client
frontend/src/api.ts
Backend workflows
- HTTP API
backend/app/api.py - Allocation rules
backend/app/services.py - Call classification
backend/app/connected.py - Call settlement poller
backend/app/poller.py - Number sync
backend/app/sync.py - Spam test and release
backend/app/spam.py - Test stack rules
backend/app/stack.py - Application runtime
backend/app/main.py
Bolna integration
- Bolna client
backend/app/bolna_client.py - Simulated Bolna
backend/app/fake_bolna.py
Persistent state
- Database access
backend/app/db.py - Domain records
backend/app/models.py
Other components
- Operator
- Bolna API
- Application database
Connections 30
- Operator → Dashboard routes: uses
README.md - Dashboard routes → Agent management: routes to
frontend/src/App.tsx - Dashboard routes → Agent detail: routes to
frontend/src/App.tsx - Dashboard routes → Number pool: routes to
frontend/src/App.tsx - Dashboard routes → Spam review: routes to
frontend/src/App.tsx - Agent management → API client: requests
frontend/src/AgentsTab.tsx - Agent detail → API client: requests
frontend/src/AgentDetail.tsx - Number pool → API client: requests
frontend/src/PoolTab.tsx - Spam review → API client: requests
frontend/src/SpamTab.tsx - API client → HTTP API: calls
README.md - HTTP API → Allocation rules: delegates
backend/app/api.py - HTTP API → Number sync: dispatches
backend/app/api.py - HTTP API → Spam test and release: dispatches
backend/app/api.py - Allocation rules → Call classification: classifies
backend/app/services.py - Allocation rules → Test stack rules: uses
backend/app/services.py - Allocation rules → Database access: uses
README.md - Call settlement poller → Allocation rules: settles calls
backend/app/poller.py - Call settlement poller → Spam test and release: advances tests
backend/app/poller.py - Number sync → Allocation rules: reconciles pool
backend/app/sync.py - Spam test and release → Allocation rules: checks blockers
backend/app/spam.py - Spam test and release → Bolna client: places tests
backend/app/spam.py - Application runtime → HTTP API: registers routes
backend/app/main.py - Application runtime → Call settlement poller: starts
backend/app/main.py - Application runtime → Number sync: starts
backend/app/main.py - Application runtime → Spam test and release: recovers state
backend/app/main.py - Application runtime → Bolna client: selects client
backend/app/main.py - Simulated Bolna → Bolna client: implements interface
backend/app/fake_bolna.py - Bolna client → Bolna API: requests
backend/app/bolna_client.py - Database access → Domain records: maps records
backend/app/db.py - Database access → Application database: reads and writes
README.md