Send query results to AWS Connect

You can send phone numbers and SMS message strings from Amperity to AWS Connect. First build a query that outputs customer profiles. Then use an orchestration to send that data from Amperity to AWS Connect.

Send customer profiles from Amperity to AWS Connect.

This topic describes the steps that are required to send customer profiles to AWS Connect from Amperity.

  1. Build a query

  2. Add orchestration

  3. Run orchestration

Note

AWS Connect must be enabled as a webhook destination before you can configure an orchestration to send query results.

Build query

Build a query that returns customer profiles and custom values. For example:

1SELECT
2  given_name AS "First Name"
3  surname AS "Last Name"
4  postal AS "Zip Code"
5  email AS "Email Address"
6  phone AS "Phone Number"
7FROM Merged_Customers

Note

A Lambda function running in AWS Lambda will phone numbers before sending data to AWS Connect.

Add orchestration

An orchestration defines the relationship between query results and a destination, including the destination and the frequency at which an orchestration runs.

To add an orchestration

  1. Open the Activations page, select the Orchestrations tab, and then click the Add orchestration button. This opens the Add orchestration dialog box.

  2. From the Object type dropdown, select Query.

  3. From the Object dropdown, select the query for which results will be sent to AWS Connect.

  4. From the Destination dropdown, select a destination that is configured for sending data to AWS Connect.

  5. Verify all settings.

  6. Set the workflow to Manual. (You can change this to automatic later, after verifying the end-to-end workflow.)

  7. Click Save.

Run orchestration

Run the orchestration manually to validate that it works.

To run the orchestration

  1. Open the Activations page, select the Orchestrations tab, and then open the    menu for the AWS Connect orchestration. Select Run.

  2. The Status column for the orchestration will update to say “Waiting to start…”, after which the notifications pane will update to include a notification that shows the current status.

  3. When the orchestration has run successfully, the status is updated to “Completed”.