Amazon Lex Integration

If you’re using Amazon Lex to create your application, follow the steps below to integrate Dashbot.

If you have any questions, please feel free to contact us.

Create a bot application on Dashbot

Create an account on Dashbot and create an application — make sure to select “Lex” as the platform.

Once you’ve created the application, you will be provided with an API key for the integration. You will use this API key in the next step.

Enabling Conversation logs on Amazon Lex

To send your bot interactions to Dashbot, enable conversation logs text on the Amazon Lex bot. Use Amazon CloudWatch logs for the specific Lex alias.

To set up text logs for a bot alias, complete the following steps (the exact names are for our example, of course):

  1. On the Amazon Lex console, choose the alias you wish to integrate with Dashbot.
  2. Choose Settings.
  3. Choose Conversation logs.
  4. Choose the Settings gear icon that corresponds to the Production alias you would like to log.
  5. Under Log type, choose Text logs.
  6. For Log group name, select the log group from the drop-down list.
  7. For IAM role, select the appropriate role from the drop-down list.
  8. Choose Save.

Integrating your Amazon Lex conversation logs with Dashbot


Now that you’re logging your conversations to CloudWatch logs, configure a subscription to send these messages to Dashbot. Complete the following steps:

  1. From the AWS CloudFormation console, create a new stack.
  2. For Template source, choose Amazon S3 URL.
  3. For S3 URL, enter https://dashbot-us-east-1-public-cloudformation.s3.amazonaws.com/lex-cloudwatch-import/8231d7e369435c68383681d23df4011a.yml
  4. Choose Next.
  5. Give your stack a name, for example dashbot-integration.
  6. For CloudWatchLogGroup, enter the appropriate Lex CloudWatch group name.
  7. For DashbotApiKey, enter the API key you created earlier.
  8. Leave Debug blank.
  9. Choose Next until you reach Capabilities and transforms.
  10. Select all the checkboxes required for the transforms.
  11. Choose Create stack.

Testing your Integration

After integrating Dashbot, test your integration by sending your application some messages. Make sure you send messages to the application that uses the same bot alias for which conversation logs are enabled. Messages sent to the Test Console in Lex do not work.

After you send messages to your application, you can see them in the Live Transcripts section of Dashbot. For example, the following screenshot shows a transcript that contains both the utterance and the intent to which it was mapped.