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):
- On the Amazon Lex console, choose the alias you wish to integrate with Dashbot.
- Choose Settings.
- Choose Conversation logs.
- Choose the Settings gear icon that corresponds to the Production alias you would like to log.
- Under Log type, choose Text logs.
- For Log group name, select the log group from the drop-down list.
- For IAM role, select the appropriate role from the drop-down list.
- 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:
- From the AWS CloudFormation console, create a new stack.
- For Template source, choose Amazon S3 URL.
- For S3 URL, enter
- Choose Next.
- Give your stack a name, for example dashbot-integration.
- For CloudWatchLogGroup, enter the appropriate Lex CloudWatch group name.
- For DashbotApiKey, enter the API key you created earlier.
- Leave Debug blank.
- Choose Next until you reach Capabilities and transforms.
- Select all the checkboxes required for the transforms.
- 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.