Recommended Call Flow for Handling Calls

The recommended call flow minimizes the number of voice call records and connects related records. When possible, use this flow for handling the different legs of the call.

The recommended call flow for handling calls.

This diagram illustrates these steps in a call flow.

  1. First, the telephony system receives an incoming call.
  2. If configured, the telephony system creates the Initial voice call record (VC1).
    Tip
    Tip To create a voice call record in Salesforce, use the VoiceCalls Telephony Integration API.
  3. If configured, the telephony system transfers the call to an agent using the specified communication protocol.
    • If the transfer happens with PSTN:
      • Salesforce creates the Agent voice call record (VC2).

      • If the Connect Related Calls option is enabled for Agentforce Voice, then Salesforce automatically connects the VC1 and VC2 records. If the option is disabled, the voice call records aren’t connected.

    • If the transfer happens with SIP:

      • Salesforce creates the Agent voice call record (VC2).

      • If the ID of the VC1 voice call record is passed into the callid parameter in the UUI header, then Salesforce automatically connects the VC1 and VC2 records. If the parameter isn’t provided, the voice call records aren’t connected.

    • If the transfer happens with Real-time Streaming:
      • Salesforce creates the Agent voice call record (VC2).
      • Amazon passes the Amazon contact ID to the transactionId variable in the Omni-Channel IVR flow. Depending on your configuration, Salesforce can use it to connect the VC1 and VC2 records. For example, Salesforce can look up VC1 by Vendor Call Key and update VC2’s custom field with VC1's ID. If the Amazon contact ID isn’t provided, the voice call records aren’t connected.
  4. If the customer hangs up, the VC1 and VC2 calls end.

  5. If the call is escalated from the agent to a human service rep, the VC2 call ends and the call controls are returned to the telephony provider, which uses the VC1 call. When the call finishes, the VC1 call ends.