Run an Omni-Channel flow using the Service Cloud Voice Telephony Integration REST
API.
To learn more, see Execute OmniFlow in the Service Cloud Voice Implementation
Guide.
Executing an Omni-Channel Flow for incoming calls
(by calling /telephony/v1/voiceCalls/{CALL_ID}/omniFlow) creates a PendingServiceRouting (PSR) record in
Salesforce which stays in the queue until the voice call is routed to the rep
and the rep accepts the AgentWork. If the voice call is never routed to the
rep or the rep declines the AgentWork, the PSR record stays in Salesforce.
In order to clean up a PSR record associated with an abandoned or declined voice
call, call the Clear Routing API (/telephony/v1/voiceCalls/{CALL_ID}/clearRouting) to clean it
up.