InvokeVFSIntegrationApiFunction Lambda Function

The InvokeVFSIntegrationAPI function calls Voice integration APIs directly from an Amazon Connect contact flow. It receives request parameters from the flow, invokes the appropriate voice API endpoint, and returns the structured response back to the contact flow for further logic processing.

Configuration: This Lambda function is automatically installed and configured in contact center versions 21 and later.

Applies to this telephony model:

  • Salesforce Voice with Amazon Connect

If you’ve created the contact center using an import.xml file, you must deploy the Lambda function manually or by using a Cloudformation template.

Note

Description: Use this Lambda function to sync telephony-specific data between Amazon Connect and Salesforce, such as rep outbound settings and voicemail metadata. This Lambda is invoked to perform the following actions:

  • Retrieve a pre-recorded voicemail message. This action occurs when a rep drops a pre-recorded message into a customer's voicemail box instead of manually recording a message.
  • Retrieve the rep’s default outbound phone number. This action occurs when a rep has selected a specific phone number to display on a customer's caller ID, ensuring the correct number appears when placing a call.
  • Retrieve the voicemail personal greeting associated with a phone number. This action occurs when the system plays the specific voicemail greeting for the number that a customer is calling.

Usage: Invoke this lambda function using the Invoke AWS Lambda function block in an Amazon Connect contact flow. Use the attribute keys and values to configure the request parameters.

Table 1. Input Attributes
Action Attribute Key Attribute Value
Get Default Number agentARN Agent ARN
Get Default Number methodName getDefaultOutboundPhoneNumber
Get Voicemail Drop methodName getVoicemailDrop
Get Voicemail Greeting methodName getVoicemailGreeting