Real-time Call Monitoring and Coaching
Real-time Call Monitoring and Coaching
A supervisor silently monitors a live call between a customer and a human agent, with the ability to whisper coaching instructions that only the agent hears.
Overview
This use case demonstrates:
- 3-way conference with
connect() - Silent monitoring with
spy() - Private coaching with
whisper() - Real-time AI-powered conversation analysis
- Live sentiment and topic logging
State flow: PENDING -> ANSWERED -> CONNECTED (optionally followed by close() if the AI later leaves the conference)
Example
How It Works
- The AI answers the call with a brief greeting
- The call is connected to the original callee using
connect(), creating a 3-way conference - The AI switches to
spy()mode, silently listening to both sides - In real-time, the AI analyzes the conversation for sentiment, topics, and coaching opportunities
- When the AI has a coaching suggestion (e.g., “The customer seems frustrated, try offering a discount”), it:
- Switches to
whisper()mode - Speaks the coaching suggestion (only the human agent hears it, not the caller)
- Switches back to
spy()mode
- Switches to
- Throughout the call, analytics (sentiment scores, topics discussed) are logged to a database
Conference Audio Modes
Key Commands Used
answer()- Answer the incoming callconnect()- Create the 3-way conferencespy()- Silent monitoringwhisper()- Private coaching audiosend_audio()- Deliver coaching to the agent
Related
- AI Agent with Human Escalation - AI-to-human handoff pattern
- Call States - Understanding the CONNECTED state
