Monitoring with conversation logs - Amazon Lex

Monitoring with conversation logs

You enable conversation logs to store bot interactions. You can use these logs to review the performance of your bot and to troubleshoot issues with conversations. You can log text for the RecognizeText operation. You can log both text and audio for the RecognizeUtterance operation. By enabling conversation logs you get a detailed view of conversations that users have with your bot.

For example, a session with your bot has a session ID. You can use this ID to get the transcript of the conversation including user utterances and the corresponding bot responses. You also get metadata such as intent name and slot values for an utterance.

Note

You can't use conversation logs with a bot subject to the Children's Online Privacy Protection Act (COPPA).

Conversation logs are configured for an alias. Each alias can have different settings for their text and audio logs. You can enable text logs, audio logs, or both for each alias. Text logs store text input, transcripts of audio input, and associated metadata in CloudWatch Logs. Audio logs store audio input in Amazon S3. You can enable encryption of text and audio logs using AWS KMS customer managed CMKs.

To configure logging, use the console or the CreateBotAlias or UpdateBotAlias operation. After enabling conversation logs for an alias, RecognizeText or RecognizeUtterance operation for that alias logs the text or audio utterances in the configured CloudWatch Logs log group or S3 bucket.