Automatically End Agentforce Voice Calls and Route by Disconnect Reason

Give your voice-enabled agent a clean way to end calls, and share the reason each call ended with your telephony vendor. Agentforce Voice agents end their side of a call when a caller stops responding or the call reaches its maximum duration. Enable Auto-Hangup per agent at the connection level so that the agent also ends the call when it determines that it has fully addressed the caller's request. For partner telephony, turn on Auto Disconnect in Agentforce Voice Setup so that control returns to your vendor, which can use the disconnect reason, such as Customer Intent Fulfilled, to decide how to handle each call.

Where: This change applies to Lightning Experience in Enterprise, Unlimited, and Developer Editions with Foundations or Agentforce 1 Editions, and Salesforce Voice add-ons.

When: This change is available on a rolling basis in Salesforce orgs upgraded to Winter ’27 starting in late October 2026. Go to trust.salesforce.com for exact dates.

How: Enable Auto-Hangup per agent with Agentforce Script. In Agentforce Studio, open the agent's Telephony connection, switch to script mode, and in the telephony code block set the auto_hangup parameter to True. It's False by default, so the agent doesn't end the call when it determines that the caller's request is fully addressed. Auto-Hangup is supported only for Telephony connections.

The auto_hangup parameter set to True in the telephony code block.

Whether you need any other configuration depends on your telephony:

  • If you use Agentforce Contact Center, turn on Auto-Hangup for the agent. No other setup is needed.
  • If you use partner telephony, turn on Auto-Hangup for the agent so that it ends calls when the caller's request is fully addressed. Then prepare your interactive voice response (IVR) flow to read the disconnect reason on the VoiceCall record. Finally, turn on Auto Disconnect in Agentforce Voice Setup so that control returns to your vendor for any call the agent ends. Auto Disconnect is off by default and applies org-wide to partner telephony. When it's off, the call stays connected until the caller hangs up.
The Auto Disconnect setting in Agentforce Voice Setup.