Amazon Lex: Validate Slot data with Lambda

  Рет қаралды 16,196

Cumulus Cycles

Cumulus Cycles

Күн бұрын

Пікірлер: 37
@tonydataiga
@tonydataiga Жыл бұрын
This is the best video I've seen on this topic so far! Most of them omit the lambda part which is the most important, just use the sample examples already given by aws, and don't show how to integrate it into a website. This was clear and easy to understand.
@cumuluscycles
@cumuluscycles Жыл бұрын
Thanks for the kind words. I’m glad you found it helpful!
@cupcakesansfrontier
@cupcakesansfrontier Жыл бұрын
Thank you my guy. This was a good intro to Lexing it up!
@Shukla-gf8iv
@Shukla-gf8iv Жыл бұрын
Great explanation. I found it very useful in understanding how Lex and Lambda works together. Thanks...
@cumuluscycles
@cumuluscycles Жыл бұрын
Glad it was helpful!
@joedunder4439
@joedunder4439 Жыл бұрын
Oh man, this is fantastic. Thank you very much!
@cumuluscycles
@cumuluscycles Жыл бұрын
Glad you like it!
@bunleaps
@bunleaps Жыл бұрын
Hi Sir, I love your videos. Can you also make a video explaining about composite slots type and also how to use it in Lambda? I am currently trying to create a Car Recommendation Chat Bot so I want to link every custom slots type like Color, Make, Model .etc to one composite slots type Car and want to use it with Lambda but I couldn't figure it out.
@Casperp12345
@Casperp12345 Жыл бұрын
Can I use GUI settings instead of lambda function to over write the slot value when the user says no when the confirmation prompt confirms the user input with NO. For example - "You entered {lastfourdigits} as your last four digits of your credit card. Is this information correct?". After the user says no, I can't override the value of the GUI settings. Is it not possible?
@cumuluscycles
@cumuluscycles Жыл бұрын
I haven't had a chance to test this out yet, but check the following doc as it looks like it may provide some guidance: docs.aws.amazon.com/lexv2/latest/dg/paths-setting-values.html
@vdrajeshthoomu8984
@vdrajeshthoomu8984 Жыл бұрын
at 24:08 why did it prompt jalapeño in the first place ?? it should have shown the valid options that align with best burger seller right? does that mean the lambda logic is wrong?
@tombo615
@tombo615 Жыл бұрын
This is awesome, great work! I just completed the first video and I'm wrapping this one up now and it's great. Do you have any intent on releasing a video on how it can be potentially integrated into Slack as a communication channel?
@cumuluscycles
@cumuluscycles Жыл бұрын
Thanks for the kind words. I hadn’t thought of doing that, but it’s a cool idea, so I may do it after I finish my AWS/Terraform Playlist videos.
@cumuluscycles
@cumuluscycles Жыл бұрын
I hope this is what you were looking for: kzbin.info/www/bejne/nJLOXmVoaM17iqc
@tombo615
@tombo615 Жыл бұрын
@@cumuluscycles very much so, this was exactly what I had in mind. Awesome work and I was able to get mine working as well, thanks again!
@cumuluscycles
@cumuluscycles Жыл бұрын
@@tombo615 I'm glad to hear that!
@Kidsfun-s8k
@Kidsfun-s8k Жыл бұрын
When I try to send message in `messages` list along with dialogAction as elicitSlot it shows the message but the doesn't show the message of elicitSolt auto.
@julianpicon243
@julianpicon243 6 ай бұрын
Great video@ Thanks
@cumuluscycles
@cumuluscycles 3 ай бұрын
Glad it was helpful!
@jon31394
@jon31394 Жыл бұрын
Hi Rob. To gain an understanding of Lambda and Lex I am recreating your project word for word then will create my own version in the future. I have configured my lex bot and ensured all the settings are the same as yours. I copied the lambda function from your git and deployed it. All spellings of the slots match perfectly. When I build and test the bot, I get this response: "I'd like to order a burger." "Intent OrderBurger is fulfilled". I am unsure why this is happening. Any suggestions?
@cumuluscycles
@cumuluscycles Жыл бұрын
Sorry, but I’m not really sure. These issues are difficult for me to help troubleshoot, because I can’t see the code (and you indicated you’re using my code, and I didn’t experience that issue). If I get a chance, I’ll try and see if I can recreate the issue. If you figure it out before then, please post a reply here in the event anyone else runs into the same problem.
@manojdighe2326
@manojdighe2326 Жыл бұрын
Great video! I have one question. I do not want to use Lambda function by default for initialization and validation for all slots. I want to use it only for selected slots and more so to execute my business logic. Does Lex support this? Or is it either or. Either use Lambda function for all initialization, validation, fulfillment etc or use Lex for doing so? Thanks in advance,
@manojnagabandi9779
@manojnagabandi9779 Жыл бұрын
Can you once share the picture of visual builder which you discussed in video as it could clarify my doubts of message flow. Thanks in advance.
@cumuluscycles
@cumuluscycles Жыл бұрын
Hi! I no longer have this project provisioned. However, if you can tell me the time in the video you are referring to, I can check my unedited recording and see if I can get you the screenshot.
@manojnagabandi9779
@manojnagabandi9779 Жыл бұрын
@@cumuluscycles I got the problem resolved thanks for the video and reply
@joanestradaramos1541
@joanestradaramos1541 Жыл бұрын
WOOOOOOOOOOOOW
@prasannaselva4525
@prasannaselva4525 Жыл бұрын
Can you please post exact node js code in git?
@VDCSIT
@VDCSIT Жыл бұрын
Hi
@VDCSIT
@VDCSIT Жыл бұрын
The latest V2 we can't connect the lambda function, how did you pull it off in the GUI?
@pikolomuzik
@pikolomuzik Жыл бұрын
great playlist sir, thanks for all the hard work. i got an issue with the lambda code though. wasn't able to have mine work. here is the log error i got: [ERROR] KeyError: 'bot' Traceback (most recent call last): File "/var/task/lambda_function.py", line 94, in lambda_handler bot = event['bot']['name']
@pikolomuzik
@pikolomuzik Жыл бұрын
i copied the code exactly from the repo link you provided and wasn't able to get it work.
@pikolomuzik
@pikolomuzik Жыл бұрын
after adding the lambda function to lex bot, here is what the bot says whenever i type 'I'd like to order a burger' ''Invalid Bot Configuration: No usable messages given the current slot, sessionAttribute, and requestAttribute set.''
@cumuluscycles
@cumuluscycles Жыл бұрын
I’m really not sure what’s causing that error. It may not be the actual code, but your configuration in Lex. You may want to double-check the steps in Lex. Sorry I don’t have better guidance. If you do figure it out, could you please post here in the event others have this issue?
@pikolomuzik
@pikolomuzik Жыл бұрын
@@cumuluscycles i actually did double-check the Lex configuration with your tutorial as guidance ad it seemed okay but imma do that again now and if i figure it out, imma post the troubleshoot right here too. thanks for your respond sir, i really do appreciate.
@pikolomuzik
@pikolomuzik Жыл бұрын
@@cumuluscycles Hi there, i got the code perfectly now. actually the issue was because i tried beautifying the bot configuration during building and i figured it out that the lambda might have not work because my slots didn't have exact names as those written in the python code. so i modified all the names identically to those in the code and the function did recognize them. so the take is, what ever modifications you made in your bot, make sure to modify the names in the lambda code too.
Amazon Lex: Integrate ChatBot into a Web Page
12:30
Cumulus Cycles
Рет қаралды 6 М.
Amazon Lex: Build a ChatBot
23:39
Cumulus Cycles
Рет қаралды 12 М.
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 26 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,8 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 5 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 16 МЛН
Amazon Lex: Add Response Cards
9:36
Cumulus Cycles
Рет қаралды 2,7 М.
AWS LEX Custom Chatbot and Integrate to Website| Bot Visual Editor
32:08
Free AWS Project: Build a Chatbot with Amazon Lex in 1 hour!
1:02:10
AWS Chatbot +AWS Lex + AWS Lambda
16:42
Cloud Guru
Рет қаралды 718
AWS Hands-On: Integrate AWS Batch with EventBridge
26:12
Cumulus Cycles
Рет қаралды 2,9 М.
How to Pull Data from an API, Using AWS Lambda
22:24
StartDataEngineering
Рет қаралды 19 М.
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 26 МЛН