- Newest
- Most votes
- Most comments
Thank you for your question, David. I understand your frustration with the documentation and examples. Let me clarify a few points about integrating Lambda functions with Amazon Lex V2 bots.
In Lex V2, the approach to integrating Lambda functions has changed compared to V1. Instead of associating a Lambda function with each intent, Lex V2 uses one Lambda function per bot alias per language. This means you don't set the Lambda function at the intent level, but rather at the bot alias level.
The code you've provided is attempting to set the Lambda function at the intent level, which is not the correct approach for Lex V2. Instead, you should:
- Create your intent without specifying the Lambda function.
- Create a bot alias.
- Associate the Lambda function with the bot alias.
To associate a Lambda function with your bot alias, you would use the CreateBotAlias or UpdateBotAlias API calls, specifying the Lambda ARN in the botAliasLocaleSettings parameter.
As for the console, you should be able to associate a Lambda function with your bot alias in the "Aliases" section of your bot configuration. If you're not seeing this option, make sure you're using the Lex V2 console and not the V1 console.
Lex V2 is a fully supported and production-ready service, but the transition from V1 to V2 introduced significant changes in how certain features are implemented. Your difficulty is likely due to these changes rather than Lex V2 being a work in progress.
I hope this helps clarify the situation. If you're still having trouble, you might want to review the Lex V2 documentation on integrating Lambda functions or reach out to AWS support for more detailed assistance.
Sources
Amazon Lex V1 to V2 migration guide - Amazon Lex
Integrating an AWS Lambda function into your bot - Amazon Lex
Fulfillment - Amazon Lex
answered 2 years ago
Have a look at this video https://www.youtube.com/watch?v=57ZqpzHtQX4
And this blog post that covers how to do it with CloudFormation. https://aws.amazon.com/blogs/machine-learning/manage-your-amazon-lex-bot-via-aws-cloudformation-templates/
answered 2 years ago
Relevant content
asked 3 years ago
asked 4 years ago
- AWS OFFICIALUpdated 4 years ago
