Skip to main content
About the Resource Center

Example call flow for the data actions integration

Note: This article applies to the AWS Lambda, Function, Genesys Cloud, Google, Microsoft Dynamics 365, Salesforce, web services, and Zendesk data actions integrations.

The following examples are inbound call flows that use static actions with the data actions integrations.

In this example call flow, the IVR plays an audio message that asks the caller to pick a number between 0 and 9. The call flow sends the number to an AWS Lambda function to determine if the caller picked the correct number. 

  1. In the task called Collect Input, the IVR asks the caller to pick a number between 0 and 9.
    1. If the caller picks a number, then Architect proceeds to the Call Data Action. (See step 2.)
    2. If the caller fails to pick a number between 0 and 9, then Architect plays an audio message and disconnects.
  2. In the task called Call Data Action, Architect sends the caller’s selection to an AWS Lambda function using the data action.
    1. If the AWS Lambda function executes and returns the number, Architect then proceeds to the decision tree. (See step 3.)
    2. If the AWS Lambda function does not returns the number, then Architect plays an audio message and disconnects.
  3. In the decision tree, Architect checks to see if the number that the caller selected is 5.  
    1. If the number is 5, then Architect plays audio indicating that the caller won.
    2. If the number is not 5, then Architect plays audio indicating that the caller did not win.

Click image to enlarge.

For more information about creating call flows, see Use data actions in Architect.

For more information about the integration, see About the AWS Lambda data actions integration.