Ensure Correct Delivery of Voicemails
applies to these telephony models |
---|
Service Cloud Voice with Amazon Connect |
Service Cloud Voice with Partner Telephony from Amazon Connect |
Before using the InvokeSalesforceRestApiFunction Lambda function, you must have OAuth authentication set up. To set up or modify authentication, see Service Cloud Voice Authentication When Using InvokeSalesforceRestApiFunction.
To ensure voicemails are delivered to reps, add the InvokeSalesforceRestApiFunction Lambda function to the Voicemail subflow, and configure the Lambda function to include the callOrigin destination key. Once configured, every time the Voicemail subflow is triggered, it invokes the Lambda function, which updates the callOrigin field to Voicemail in the VoiceCall record.
To configure the Voicemail subflow to ensure voicemails are delivered to reps:
- Set up or modify OAuth.
-
In the sample SCV Voicemail Subflow, add the Invoke AWS Lambda function block to invoke the
SF REST API. Add the Lambda block between the Play prompt and Set contact attributes blocks in
your contact flow.
- Configure the InvokeSalesforceRestApiFunction Lambda Function to update the value of the callOrigin destination key as Voicemail. Add a Set contact attributes flow block to the flow, making sure it appears before the Invoke AWS Lambda function block.
- Add the following attributes to the Set contact attributes flow block:
- Click Save.
This makes sure that every time the voicemail subflow is triggered, it invokes the Lambda function to update the callOrigin field to Voicemail in the VoiceCall record.
An example flow is available in the Github.