InfiniteTech AI - Navbar (navbar_html)
Best AI Calling Agent: Top AI Voice Solutions for Businesses

Sky Pro AI Calling Agent

Autonomous Conversational Voice Agent, Predictive Telephony & Campaign Management ERP System

Sky Pro AI Calling Agent Scope & Authorization

This system manual serves as the single authoritative operational, mathematical, architectural, and developmental specification for the Sky Pro AI Calling Agent autonomous voice platform. It covers every component from network-level VoIP/SIP ingest, digital signal processing (DSP), real-time large language model inference, and client-side spreadsheet parsing, to full campaign analytics and automated callback queuing. All workflows described herein reflect the active production build.

Sky Pro AI Calling Agent

24/7 AI calling that helps businesses connect with customers faster and never miss an opportunity.

Industry Context & The Contact Center Crisis

Global tele-calling operations and customer contact centers are encountering systemic operational inefficiencies that erode corporate operating margins, compromise lead acquisition quality, and cause customer dissatisfaction.

The High-Turnover Tele-calling Cycle

Modern outbound tele-marketing and tele-sales teams operate under severe psychological strain. Human agents are expected to place 150 to 250 manual calls daily. Of these, less than 20% connect to live prospects, and fewer than 5% express qualified buying intent. This creates rapid agent burnout, resulting in an annualized turnover rate exceeding 45% across international business process outsourcing (BPO) centers.

The Static Keypad IVR Bottleneck

Traditional DTMF IVR systems are universally detested by consumers. Callers are forced through lengthy recorded menus before reaching a representative, resulting in average drop-off rates of 32%. Furthermore, keypad IVRs are incapable of understanding nuance, interpreting urgent problems, or cross-referencing caller history in real time.

The Business Impact of Dropped Callbacks

When a prospect says 'call me back at 6 PM', in 70% of legacy operations that lead is lost. Human agents take unstructured notes on paper or fail to set reminders. Without automated parsing, callbacks slip through the cracks, wasting valuable customer acquisition investments.

What Is Sky Pro AI Calling Agent? Vision & Scope

Sky Pro AI Calling Agent is an enterprise-grade autonomous telephony platform engineered from the ground up to deliver bidirectional, real-time conversational voice experiences at scale. It acts as an automated digital workforce, conducting complex conversations with sub-800 millisecond response times.

Core Technological Pillars

  • Streaming Ingestion: Captures audio at 16kHz/8kHz over WebSockets and SIP trunks with continuous VAD.
  • Cognitive Reasoning: Google Gemini LLM instances understand nuance, extract intent, and maintain dialogue memory.
  • Neural Voice Synthesis: Streams lifelike neural audio back to the caller, mimicking human pacing and intonation.
  • Active Interruption (Barge-In): Allows callers to interrupt the AI at any time, instantly halting voice output.
  • Integrated Telephony ERP: Campaign scheduling, lead uploads, call logs, and callback registries in one interface.

Strategic System Objectives

Sky Pro AI Calling Agent transforms enterprise customer communications by replacing rigid keypad trees with natural conversations. Human staff are freed to focus on high-value escalations, closing deals, and managing strategic client relationships.

Enterprise Problems vs. Platform Solutions

Every feature maps to a specific operational failure observed in traditional tele-calling environments.

Operational FailureTraditional BPO ApproachSky Pro Solution
Inconsistent Pitch QualityTired agents skip key qualification points; pitches vary wildly.Deterministic prompt directives ensure consistent delivery on every call.
Unstructured Callback LossesManual notes on spreadsheets; callbacks frequently forgotten.NLP temporal extraction automatically captures commitments into the Callback Scheduler.
Speech Collisions & Talk-overHigh latency causes machine and human to speak simultaneously.Client-side AudioWorklet barge-in instantly purges output audio buffers.
Lead Upload BottlenecksIT teams manually run SQL scripts to populate dialer lists.SheetJS (excelParser.ts) allows drag-and-drop spreadsheet ingestion directly in browser.
Lack of Granular TelemetryCall records only log connection time; outcomes unanalyzed.Turn-by-turn dialogue logging, latency breakdowns, and auto disposition tagging.

Detailed User Personas & Access Control

Sky Pro AI Calling Agent enforces role-based access control across three primary user tiers.

Persona 1: Voice Systems Administrator (super_admin)

Scope: Telephony infrastructure, SIP gateways, LLM system directives, and server maintenance.
Permissions: Full, unrestricted access to all backend routes, logs, database migrations, and operational settings.

Persona 2: Campaign & Sales Manager (campaign_manager)

Scope: Outbound dialer operations, lead ingestion, schedule pacing, and conversion tracking.
Permissions: Access to Metrics, Dialer Queue, Scheduler, Calls, and Reports. Restricted from DSP configurations.

Persona 3: Quality & Compliance Analyst (qa_analyst)

Scope: Dialogue verification, compliance tracking, and conversational auditing.
Permissions: Read-only access to Call History, Conversation Modals, Reports, and analytical exports.

Technology Stack & Architectural Topology

A decoupled, high-performance client-server topology designed for low-latency streaming and high concurrent throughput.

ReactReact 18
TSTypeScript
TailwindTailwind CSS
FastAPIFastAPI
PythonPython 3.11
PostgreSQLPostgreSQL
DockerDocker
ReactReact 18
TSTypeScript
TailwindTailwind CSS
FastAPIFastAPI
PythonPython 3.11
PostgreSQLPostgreSQL
DockerDocker
SubsystemTechnology / LibraryOperational Functionality
Frontend RuntimeReact 18 + Vite + TypeScriptSPA providing fast UI rendering and state handling.
UI & ComponentsTailwind CSS + Lucide IconsResponsive, modern interface styling for dashboards.
File IngestionSheetJS (xlsx)Client-side Excel parsing transforming spreadsheets into dialer queues.
Backend CoreFastAPI (Python 3.11)Asynchronous REST endpoints and WebSocket stream controllers.
AI ReasoningGoogle Gemini 1.5 Pro / FlashContext-aware dialogue understanding and response generation.
Voice PipelineStreaming STT & Neural TTSReal-time bidirectional speech-to-text and text-to-speech.
Database ORMSQLAlchemy + AlembicRelational mapping, query execution, and migration tracking.
Web Server ProxyNginx (Alpine)High-performance reverse proxy routing HTTP and WebSocket traffic.
ContainerizationDocker + Docker ComposeIsolated multi-container production environments.

Directory Structure & Repository Layout

Clean architectural layout separating backend voice pipelines, frontend user interfaces, and production deployment scripts.

AI-Call-Agent-main/ ■■■ .github/workflows/deploy.yml # Automated CI/CD build, container publish, and deployment ■■■ backend/ # Python FastAPI application core ■ ■■■ Scripts/ ■ ■ ■■■ inbound_prompt.txt # Behavioral directives for incoming support and inquiries ■ ■ ■■■ outbound_prompt.txt # Tele-sales qualification, objection handling, and pitch ■ ■■■ api_routes.py # REST endpoints for metrics, calls, queues, and reports ■ ■■■ database.py # SQLAlchemy models, database connection pool, migrations ■ ■■■ logging_config.py # Centralized logging engine with rotating file output ■ ■■■ main.py # FastAPI lifespan handlers, CORS settings, and router mounts ■ ■■■ voice.py # Real-time WebSocket audio, STT/TTS, and Gemini logic ■ ■■■ requirements.txt # Python backend dependencies ■ ■■■ Dockerfile # Multi-stage container definition for backend services ■■■ frontend/ # React 18 TypeScript frontend ■ ■■■ src/components/ ■ ■ ■■■ CallHistory.tsx # Paginated call audit log with audio playback controls ■ ■ ■■■ CallLogs.tsx # Technical trace logs and latency monitoring ■ ■ ■■■ ConversationModal.tsx # Turn-by-turn dialogue bubble modal viewer ■ ■ ■■■ LiveSimulator.tsx # Browser sandbox for testing microphone input/audio ■ ■ ■■■ Metrics.tsx # Executive dashboard KPI widgets and performance analytics ■ ■ ■■■ Reports.tsx # Advanced multi-parameter filter engine with CSV export ■ ■ ■■■ ScheduleTracker.tsx # Outbound campaign scheduler and callback manager ■ ■ ■■■ TeleforceAgent.tsx # Softphone dialer overlay and line status monitor ■ ■■■ src/utils/excelParser.ts # Client-side spreadsheet parser for contact lists ■ ■■■ src/types.ts # TypeScript type definitions for calls, metrics, and contacts ■ ■■■ src/App.tsx # Master route coordinator and view switcher ■ ■■■ nginx.conf # Reverse proxy configuration for frontend assets and API routing ■ ■■■ Dockerfile # Multi-stage static asset build using Nginx Alpine ■■■ deploy/ ■ ■■■ docker-compose.yml # Production container composition ■ ■■■ migrate-data.sh # Automated database backup and migration script ■■■ build-and-push.ps1 # PowerShell script for automated Docker image delivery

Platform Modules & Visual Dashboards

Explore the 6 core functional modules of the Sky Pro AI Calling Agent ERP system.

Inbound Voice Pipeline & IVR Replacement

The inbound pipeline replaces rigid keypad menus with natural, open-ended conversational routing.

1

Call Ingestion

Customer dials in; SIP gateway routes the call via WebSocket to the FastAPI backend.

2

Greeting & Intent Capture

Agent introduces itself using inbound_prompt.txt: 'Hello! How can I help you today?'

3

Streaming Audio Processing

Caller's voice is processed into streaming audio chunks and STT converts audio to text.

4

Intent Recognition

Gemini LLM parses the transcript, matching the request against knowledge bases.

5

Voice Synthesis & Response

Neural TTS synthesizes the response, streaming audio back with sub-800ms latency.

6

Call Wrap-Up

Conversation is summarized, classified, and saved to call_logs.

Outbound Campaign Dialer Pipeline

The outbound pipeline automates lead qualification and sales outreach at scale.

1

Lead List Upload

Campaign manager uploads an Excel lead list in the Dialer Queue interface.

2

Pacing Initiation

Clicking Start triggers the outbound dialer up to configured concurrency limits.

3

Live Answer Detection

VAD distinguishes between live human speech and voicemail systems.

4

Pitch Delivery

Agent initiates using outbound_prompt.txt, confirming identity and presenting the pitch.

5

Objection Handling

LLM addresses questions regarding pricing, features, and timing.

6

Demo Scheduling or Callback

If interested, agent secures a demo slot. If busy, schedules a follow-up callback.

7

Disposition & Logging

Call assigned disposition tag (Hot, Warm, Cold, Demo Booked) and written to database.

DSP Engine: VAD, Noise Suppression & Echo Cancellation

Sky Pro uses digital signal processing (DSP) to filter background noise and maintain audio quality.

Voice Activity Detection (VAD)

Continuously analyzes incoming audio frames, distinguishing human speech from background silence.

Acoustic Echo Cancellation (AEC)

Prevents the caller's audio from looping back into the microphone when using speakerphones.

Noise Suppression (NS)

Attenuates steady-state background noises such as air conditioning hum or street traffic.

Barge-In Interrupt Controller

Instantly clears audio buffers when the user speaks, ensuring smooth conversational flow.

Low-Latency Mathematical Turn-Taking Model

Sky Pro targets an end-to-end response time under 800 milliseconds.

T_total = T_VAD + T_STT + T_LLM_First_Token + T_TTS_Chunk + T_Network_Buffer < 800 ms
Pipeline StageTarget LatencyOptimization Method
VAD Speech Detection50 - 100 msRolling energy thresholds to detect speech start and end.
Streaming STT150 - 200 msTranscribes audio chunks progressively over WebSockets.
LLM First Token Generation200 - 250 msStreams tokens from Gemini as generated, not waiting for complete responses.
Neural TTS Synthesis100 - 150 msSynthesizes audio from initial token chunk while subsequent text generates.
Network Buffer & Ingress50 - 100 msCompact PCM audio packets and optimized WebSocket routing.
Total End-to-End Latency550 - 800 msNatural conversational pacing without awkward pauses.

Prompt Engineering & Directives

Establishing behavioral boundaries and conversational structures for both inbound and outbound campaigns.

Inbound Customer Care Directives

The file backend/Scripts/inbound_prompt.txt defines the system prompt for incoming customer service calls.

Identity & Persona: Define the agent as professional, patient, and knowledgeable.

Call Opening: Standard greeting acknowledging the customer.

Knowledge Retrieval: Instructions for querying internal documentation.

Escalation Rules: Clear guidelines for transferring callers to human supervisors.

Polite Wrap-Up: Standard closing verifying all questions are addressed.

Outbound Sales Qualification

The file backend/Scripts/outbound_prompt.txt establishes guidelines for tele-sales campaigns.

Contact Confirmation: Verify prospect's identity before delivering the pitch.

Value Proposition: Present a concise 15-second summary of the offer.

Objection Handling: Structured approaches to pricing concerns and timing issues.

Demo Conversion: Guide interested prospects toward scheduling a demonstration.

Callback Capture: If unavailable, capture preferred callback time for the scheduler.

Relational Database Schema (ERD Specification)

Database models implemented using SQLAlchemy in backend/database.py.

Table NamePrimary / Foreign KeysAttributes & Types
call_logsid UUID PKsession_id (VARCHAR UNIQUE), direction (INCOMING/OUTGOING), phone_number, duration_seconds (INT), lead_status (HOT/WARM/COLD), demo_booked (BOOL), recording_url, created_at (DATETIME).
callbacksid UUID PK, call_log_id UUID FKphone_number, requested_time (DATETIME), status (PENDING/COMPLETED/CANCELLED), notes (TEXT), assigned_agent_id.
queue_contactsid UUID PKcontact_name, phone_line, dial_status (QUEUED/DIALING/COMPLETED/FAILED), retry_attempts (INT), outcome_tag, created_at.
transcriptsid UUID PK, call_log_id UUID FKspeaker_role (USER/AGENT), content_text (TEXT), turn_latency_ms (INT), sentiment_score (FLOAT), timestamp.

REST API Reference & WebSocket Protocol

REST endpoints for state operations; WebSockets for real-time audio streams.

Endpoint / RouteMethod / ProtocolOperational Function
/api/metricsGETFetches aggregated call center metrics.
/api/queue/contactsGET, POSTRetrieves or batch-inserts contact records.
/api/queue/startPOSTStarts outbound pacing dialer execution.
/api/scheduler/callbacksGET, PATCHLists pending callbacks and updates statuses.
/api/calls/historyGETRetrieves paginated call logs with recording links.
/api/reports/exportGETExports filtered call analytics as CSV download.
/ws/voice/streamWebSocketFull-duplex audio stream for real-time STT and voice playback.

Standard Operating Procedures (SOPs)

Step-by-step guidelines for administrators, campaign managers, and quality analysts.

Super Admin SOPs

SOP 1: System Health Verification

  1. Open the administration dashboard and verify API connectivity.
  2. Review container logs: docker-compose logs -f backend.
  3. Confirm Google Gemini API keys are active and within rate limits.
  4. Verify SIP gateways and WebRTC endpoints are registered.

SOP 2: Prompt Configuration & Updates

  1. Navigate to backend/Scripts/ to inspect active prompt files.
  2. Test modifications in the Live Simulator.
  3. Commit approved changes and trigger deployment pipelines.

Campaign Manager SOPs

SOP 1: Ingesting Lead Lists & Starting Campaigns

  1. Open the Queue view in the navigation menu.
  2. Drag and drop the campaign spreadsheet into the Excel upload zone.
  3. Review parsed entries to verify contact names and phone numbers.
  4. Click Start to begin automated dialing.
  5. Monitor queue statuses: Queued → Dialing → Completed.

SOP 2: Resolving Callbacks

  1. Open the Scheduler view to inspect pending callbacks.
  2. Review the prospect's requested callback window.
  3. Click Call Now or mark completed using Mark Done.

Quality Analyst SOPs

SOP 1: Auditing Turn-by-Turn Transcripts

  1. Open the Calls ledger and select a completed interaction.
  2. Open the Conversation Modal to review turn-by-turn dialogue.
  3. Verify that greeting, qualification, and closing procedures were followed.
  4. Check for hallucinated information or unhandled objections.

SOP 2: Reviewing Latency Telemetry

  1. Navigate to CallLogs to inspect technical latency metrics.
  2. Verify end-to-end response times remained within the 800ms target.
  3. Flag elevated latency calls for technical review.

Container Ingress, Nginx & Docker Architecture

Sky Pro AI Calling Agent runs as containerized microservices managed via Docker Compose and Nginx.

  • Port 80 / 443 (Nginx): Terminates SSL, serves React chunks, proxies API/WebSocket traffic.
  • Port 8000 (FastAPI): Manages REST endpoints and bidirectional WebSocket streaming.
  • Volume Mounts: Persistent storage for recordings, databases, and rotating logs.
Command SyntaxOperational Function
docker-compose -f deploy/docker-compose.yml up --build -dBuilds and launches containers in detached mode.
docker-compose -f deploy/docker-compose.yml psVerifies the operational status of all running containers.
docker-compose -f deploy/docker-compose.yml logs -f backendStreams real-time backend API and voice processing logs.

Disaster Recovery, Backups & Migration Runbook

Procedures for regular database backups, disaster recovery, and data migration.

Generate compressed database backups:

bash deploy/migrate-data.sh --backup

Disaster Recovery Runbook

  1. Stop active containers: docker-compose down.
  2. Restore the database volume from the most recent backup archive.
  3. Run migration verification: alembic upgrade head.
  4. Restart services and verify operational health in the admin console.

Troubleshooting & Latency Remediation Runbook

SymptomProbable CauseRemediation Procedure
Turn-taking latency exceeds 1500msSlow token generation or network packet delay.Switch to lower-latency Gemini tier; check regional network latency.
Agent cuts off callers prematurelyVAD silence threshold configured too short.Increase silence detection threshold in voice.py from 400ms to 700ms.
Spreadsheet fails to importInvalid or missing column headers in Excel file.Ensure headers: Name, Phone, and Company are present.
No audio playback in browserBrowser autoplay policy blocking WebAudio contexts.Click anywhere in the dashboard to unlock the WebAudio context.

Frequently Asked Questions (FAQ)

Common questions regarding Sky Pro AI Calling Agent architecture, capabilities, and configurations.

Q: Can callers interrupt the AI agent while it is speaking?

A: Yes. The platform includes active barge-in detection. When user speech is detected, the client immediately signals the backend, clearing outbound audio buffers so the user can speak naturally.

Q: How does the platform identify phone numbers for callbacks?

A: On inbound calls, the system reads caller ID from SIP headers. On outbound calls, the number is pulled from the active dialer queue record.

Q: What audio formats are supported over WebSockets?

A: The system natively streams 16-bit linear PCM audio sampled at 16kHz or 8kHz (standard telephony narrow-band).

Q: Can multiple campaigns run concurrently?

A: Yes. The dialer supports concurrent queue execution, subject to available SIP channels and configured API concurrency limits.

Operational Glossary & Telephony Terminology

TermDefinition in Sky Pro AI Calling Agent Context
Voice Activity Detection (VAD)Algorithms that analyze audio streams to distinguish human speech from silence and background noise.
Streaming Speech-to-TextReal-time transcription of audio streams into text as words are spoken.
Neural Text-to-Speech (TTS)Deep-learning speech synthesis converting generated text into natural audio waveforms.
Barge-InThe ability for a human caller to interrupt the AI voice agent, instantly stopping synthetic speech.
Call DispositionThe final status assigned to a completed call (e.g., Hot Lead, Warm Lead, Demo Booked).
Turn-Taking LatencyThe elapsed time from when a caller finishes speaking to when the agent begins its audio response.
SIP (Session Initiation Protocol)Standard signaling protocol used for initiating, maintaining, and terminating VoIP telephone calls.
WebRTCOpen-source framework enabling real-time audio communication directly within web browsers.
SheetJS ParserClient-side library parsing Excel spreadsheets into dialer queue records without server uploads.

Enterprise Property Developers

Sky Pro AI Calling Agent

```
InfiniteTech AI Footer
Scroll to Top