Newer Version Available

This content describes an older version of this product. View Latest

Query AWS Lambda Functions to Analyze a Voice Call

Query AWS Lambda function logs and Amazon Connect flows, and use the query results to analyze and troubleshoot the events that happen throughout the stages of a single voice call.

A single voice call journey invokes several different AWS Lambda functions and Amazon Connect flows. Perform a query through Amazon CloudWatch Log Insights to find all voice call events across all Lambda functions for a specific voice call.

This feature is installed with Service Cloud Voice contact center version 13.0 or later. See the Update Your Contact Center Knowledge Article for more details. No additional configuration is necessary.

To analyze a voice call through an AWS Lambda function query:
  1. Log in to Salesforce and find the name of the vendor call key (for example, 12faf34a-f1d5-6b07-89fc-6e3bce61d65f) and the date range of the voice call record you want to analyze.
  2. Log in to Amazon AWS.
  3. Open the CloudWatch console.
  4. In the navigation pane, select Logs > Logs Insights.
  5. In the Select log group(s) picklist, select the log groups that include the name of the contact center you want to query. The following example is a list of log groups for a contact center named ContactCenter1. The list includes AWS Lambda and Amazon Connect Flow log groups.
  6. In the query editor, type the following query, where VENDOR_CALL_KEY is the unique ID of the voice call (VoiceCall) record within the telephony system. The query is case sensitive.

    For example,

    To learn more about the query syntax, see the Amazon CloudWatch Logs Insights Query Syntax documentation.

  7. Specify the date range of the voice call record you want to query, click Custom, select the Absolute tab, and then select and apply the date range of the voice call.
  8. Click Run query. Amazon CloudWatch finds all logs across all Amazon Lambda functions and Amazon Connect flows that are related to the specified voice call record and displays the results in the Logs tab.

    The first event is created when the voice call record begins. Expand each event to view its details, including the name of the Amazon Connect flow or AWS Lambda output, and any error messages.