- 新しい順
- 投票が多い順
- コメントが多い順
If you're not being prompted for the slot value when you provide an utterance of 'Update Address', I suspect it's because you haven't marked the slot as 'Required for this intent' (under the slot configuration in the Lex UI). The 'Intent <intent-name> is fulfilled' message means that the bot has completed its processing for that intent.
To learn more about Lex v2 I'd suggest looking at the workshop at https://catalog.us-east-1.prod.workshops.aws/workshops/94f60d43-15b7-45f4-bbbc-17889ae64ea0/en-US
To verify if it is a v1 versus v2 issue at the Lambda level, just create a v1 bot and test it out. As mentioned, Lambda written for v1 (which is what this blog post did) does not work for Lex v2.
I suggest you start with this workshop https://catalog.us-east-1.prod.workshops.aws/workshops/638d00f5-2248-488f-b7ca-903e8b966bf8/en-US that uses Lex v2 as an example with Amazon Connect
Hi Luke, The slot is required but yeah the lambda is coded for a V1 bot so it doesn't know what to do. will keep digging
Ah, gotcha. The input & response formats are different between Lex v1 and v2, so the Lambda needs to be modified to handle the different formats.
Lex v1: https://docs.aws.amazon.com/lex/latest/dg/lambda-input-response-format.html Lex v2: https://docs.aws.amazon.com/lexv2/latest/dg/lambda.html#lambda-input-format
thanks for the workshop, I think Ive got the bot interacting with the lambda now but when it should be reading out the balance i get "Invalid Bot Configuration: Access denied while invoking lambda function arn:aws:lambda:ap-southeast-2:XXXXXXXXXXXX:function:SDP-Goldie-Bot from arn:aws:lex:ap-southeast-2:XXXXXXXXXXXX:bot-alias/F5912H9GI0/TSTALIASID. Please check the policy on this function." - ive tried recreating the lambda and repointing it, along with a few attempts at adding policies to no avail. any thoughts?