Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Modify Calls In Progress


Learn to modify live phone calls and change active call execution with Twilio Programmable Voice by using the Twilio SDKs to send a POST request to update an active Call resource. You can use this guide to send automated notifications, create self-service automation, build inbound and outbound call centers, implement AI or ML transcription, and manage active call sessions.

See Related reference documentation to learn more about the Call resource and state management parameters used in this guide.

(information)

Info

Choose a language to get started:

  • C# / .NET
  • Java
  • Node.js
  • PHP
  • Python
  • Ruby

Use cases for modifying live calls with Twilio Programmable Voice

use-cases-for-modifying-live-calls-with-twilio-programmable-voice page anchor

This guide teaches the basics required for the following use cases:

Notifications with Twilio Programmable Voice

notifications-with-twilio-programmable-voice page anchor

You can use this guide to dynamically manage automated broadcast or alert calls while they are in progress. For example, you can programmatically redirect a notification call to a live agent queue if a customer requests immediate assistance, or terminate a call early once an urgent message has been acknowledged. To learn more advanced features that you can use with notifications, see Voice notifications.

Create self-service automation with Twilio Programmable Voice

create-self-service-automation-with-twilio-programmable-voice page anchor

Together with your IVR workflows, you can use this guide to interrupt automated self-service paths based on real-time events. Seamlessly break a caller out of an automated data-gathering script if they request a human agent, or modify the call's direction dynamically when a backend database updates during the session. To learn more advanced features that you can use with self-service automation, see Voice self-service automation.

Build inbound call centers with Twilio Programmable Voice

build-inbound-call-centers-with-twilio-programmable-voice page anchor

You can use this guide to implement essential call center features like warm transfers, supervisor barge-ins, and call holds. Modify active calls to pull customers out of queues as agents become available, bridge multiple parties together, or redirect callers to different departments based on live agent availability. To learn more advanced features that you can use with inbound call centers, see Voice inbound call centers.

Implement AI or ML transcription with Twilio Programmable Voice

implement-ai-or-ml-transcription-with-twilio-programmable-voice page anchor

Together with Twilio live audio streaming, you can use this guide to control transcription services dynamically during a conversation. Programmatically start or stop transcription streams to protect user privacy when sensitive information is being spoken, or inject new routing rules into a call based on live keywords detected by your transcription engine. To learn more advanced features that you can use with AI or ML transcription, see Voice AI and ML transcription.

Build AI agents with Twilio Programmable Voice

build-ai-agents-with-twilio-programmable-voice page anchor

You can use this guide to manage interactions between human callers and autonomous voice bots in real time. Create human-in-the-loop takeover mechanisms that instantly intercept an active call and redirect it to a human supervisor if the AI agent detects frustration or encounters a complex request. To learn more advanced features that you can use with AI agents, see Voice AI agents.

Build outbound call centers with Twilio Programmable Voice

build-outbound-call-centers-with-twilio-programmable-voice page anchor

You can use this guide to optimize live outbound interactions and agent utilization. Instantly modify the path of an outbound call to play a prerecorded message the moment an answering machine is detected, or dynamically shift active outbound legs between agent tiers based on shifting campaign priorities. To learn more advanced features that you can use with outbound call centers, see Voice outbound call centers.

Build sales dialers with Twilio Programmable Voice

build-sales-dialers-with-twilio-programmable-voice page anchor

You can use this guide to power advanced click-to-talk workflows and lead response systems. Initiate a call to a sales representative first, and then dynamically modify that call in progress to dial and bridge the prospect the exact moment the agent goes off-hook and is ready to talk. To learn more advanced features that you can use with sales dialers, see Voice sales dialers.

Build call tracking with Twilio Programmable Voice

build-call-tracking-with-twilio-programmable-voice page anchor

You can use this guide to control proxy routing and number masking on active lines. Modify live call parameters to dynamically mask phone numbers for privacy, track campaign attribution data mid-flight, or update routing metrics as a call moves through various marketing touchpoints. To learn more advanced features that you can use with call tracking, see Voice call tracking.


After following this guide, you can programmatically modify live phone calls using Twilio Programmable Voice and the Twilio SDKs. You will have built code that can dynamically update call directions or explicitly update the call status to complete active sessions on your account.


Explore the following guides to build on what you've learned in this guide: