Skip to main content
AI / Telephonycompleted

AI-Powered Telephony & Order Automation Engine with PBX Live Calling

Autonomous voice telephony agent integrated with Asterisk PBX for automated live outbound order verification calls, customer intent classification, and real-time order state progression.

Role: Principal Telephony & AI Systems Engineer

System Context & Overview

Architected and deployed an end-to-end autonomous voice AI system directly integrated with enterprise Asterisk PBX infrastructure. The system automatically dials customers upon order placement, conducts low-latency conversational audio calls to confirm delivery addresses and items, extracts intent in real time, and auto-progresses eCommerce order statuses.

Operational Complexity & Constraints

eCommerce and direct-to-consumer businesses face high cancellation rates, delivery failures, and fraudulent cash-on-delivery orders. Manual call centers cannot scale affordably to verify orders within minutes of checkout, leading to delayed fulfillment and inventory holding costs.

Key Requirements & Invariants

  • Direct bidirectional audio bridging with Asterisk PBX via WebSockets / AudioServer.
  • Real-time speech-to-text (STT) with sub-300ms transcription latency using Whisper.
  • Deterministic conversational state machine preventing hallucinations and securing order confirmations.
  • Real-time sentiment scoring and instant seamless transfer to human call center queues on frustration signals.
  • Automatic eCommerce database status updates (Confirmed, Rescheduled, Canceled) via REST webhooks.
Architectural Solution

Engineered a high-performance audio bridge between Asterisk PJSIP channels and a Python voice pipeline using WebSockets. Leveraged streaming STT, structured LLM function calling, fast neural TTS, and Redis state machines to achieve sub-600ms conversational turnarounds.

Key Engineering Decisions

State-Machine-Constrained LLM Prompts with Structured Function Calling

Ensured the AI never agreed to invalid delivery conditions or invented non-existent inventory options while remaining completely natural in spoken dialogue.

UX & Workflow Thinking

Implemented natural pauses, localized accent phonetic tuning, and graceful human escalation options to maximize customer trust during verification calls.

Technical Challenges & Resolutions

Deliverables & Production Outcome

Achieved an 88% automated order confirmation completion rate without human intervention, reducing order cancellation rates by 34% and cutting call center operational costs by 65%.

Technologies & Architecture Tooling

Asterisk PBXWhisper STTFastAPIPythonWebSocketsWebRTCLaravelRedisTTS Engine

Related Systems & Case Studies