- Newest
- Most votes
- Most comments
For storing responses from your Amazon Lex V2 bot, you can use conversation logs, which provide two storage options:
-
Text Logs: You can store text transcripts of conversations in Amazon CloudWatch Logs. This includes the text of user inputs and bot responses. The CloudWatch log group must be in the same region as your Lex V2 bot.
-
Audio Logs: If you need to store audio from conversations, you can use an Amazon S3 bucket. The S3 bucket must be in the same region as your Lex V2 bot.
To enable conversation logs, you'll need to:
- Create an IAM role with appropriate permissions for Lex V2 to write to CloudWatch Logs and/or S3.
- Configure conversation logs for your bot alias using either the Amazon Lex V2 console or the CreateBotAlias/UpdateBotAlias operations.
When using the console to manage conversation logs, it automatically updates your service role to have the necessary permissions. If you're not using the console, you must provide an IAM role with policies that enable Amazon Lex V2 to write to the configured log group or bucket.
Note that conversation logs are enabled per bot alias, and logging starts only for new bot sessions. Changes to log settings won't affect active sessions. Also, conversation logs cannot be used with bots subject to COPPA (Children's Online Privacy Protection Act).
Sources
Configuring conversation logs for your Lex V2 bot - Amazon Lex
Logging conversations with conversation logs in Lex V2 - Amazon Lex
IAM Policies for Conversation Logs - Amazon Lex
answered a year ago
Relevant content
asked 2 years ago
asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
