Amazon Lex Integration

Create an API Key

Each chatbot or voice skill, needs its own API Key for tracking.

Add a Chatbot and select Lex as the Platform.

The Key will be used below as the value for DASHBOT_API_KEY in the instructions for sending logs to Dashbot.

Enable Conversation Logs on Amazon Lex

Step 1: Create a new Log Group in CloudWatch Logs.

For example “my-bot-text-logs”

Step 2: Create an IAM role and provide write permissions to the Log Group created above.

For example, “MyBotLogRole”

Step 3: Enable Logs in Amazon Lex

Integrate Amazon Lex Conversation Logs into Dashbot

Now that conversations are being logged to Cloudwatch, configure a subscription to send these to Dashbot.

Test Integration

To test the integration, send messages to your chatbot.

Open Dashbot reports, and from the Real Time section in the left nav, select Live Transcripts.

The messages should appear in the Live Transcripts.