for the branching, I had to remove the "if" at the beginning of the statement. I think the one already provided in the field (although it looks like it's ghosted out) prevents the need to manually type in the "if".
Please check: 1. Debug as shown in 38:54 to see if slot value is being captured. 2. Are you accessing the slot value correctly in Lambda function? See the Lambda Code example mentioned in the video description.
@@ArchitectureBytes Thanks for your response. Q1: Using logs I can see that the slot is captured and saved in the session attributes. Q2: I have printed the whole Lex event in the log; that's how I confirmed that lambda received the empty slot object in the lambda. I can observe that the issue occurs only if we use the slot before the condition block. If the condition block is removed, then the code hook works as expected.
Hello, when programming fallback I found that no matter what I typed it assumed that was an order number and wanted to know if I wanted to cancel order thkddhhftb I changed this slot to be only a number and that helped BUT if I simply type in multiple numbers it trys to cancel
Without looking at your setup - I guess the CancelOrderIntent is getting invoked because you either chose that option(button) Or typed an utterance about canceling the order - so after that the ChatBot is looking for OrderNo to cancel.
1st Question - How to use the Version 1 for later purpose? 2nd Question - And after I built the bot again, and I wrote "Hey/Hello" etc.. it throws and error as "Cannot call FulfillmentCodeHook for Intent CreateOrderIntent. BotAlias/LocaleId TestBotAlias/en_US doesn't have an associated Lambda Function." Is this expected ? When I selected the settings button and manually added the source again on the chat screen , it started working. But no cloud watch log is generated after that also.
1 You can migrate from V1 to V2. There is documentation available regarding that. 2 If you are testing Chatbot Draft version - you must configure lambda function in the Settings 34:07 If you are creating a Version & Alias 36:19 - then you must configure lambda function 37:43
Amazon Lex V2 uses one Lambda function per bot alias per language (instead of one Lambda function for each intent). So, you can use the Lambda function that's configured for your bot's alias - to invoke other Lambda functions, based on the current intent's name.
Hello I am getting the Reached Maximum number of allowed steps in single user input.Please update the bot definition to avoid any potential loops error if I use conditional loops
@@ArchitectureBytes no we have just given a single slot and for a particular value of slot we have given the display message in the branching condition. We are developing a simple question and answer type bot for that we are using the branch what might be the issue?
Under (Advanced Options >) More Response Options > Add > Custom Payload - here you could return a custom payload for eg. your link Your chat client (custom/facebook messenger/slack) has to interpret the response and display hyperlink.
You may also be interested in:
AI ChatBot / AI Assistant (Voice/Text) using Amazon Connect and Lex:
ua-cam.com/video/3AZ1n2oHtEI/v-deo.html
Hey man, this is the best tutorial seen so far, good job!
for the branching, I had to remove the "if" at the beginning of the statement. I think the one already provided in the field (although it looks like it's ghosted out) prevents the need to manually type in the "if".
Good job, it was really helpful
Very good demo of Lex Bot.. very informative showing all the steps .. thank you ...
Brilliant.. Thank you very much
Good efforts 🔥🔥🔥
Hello, When I try to call lambda using code hook invoked slot parameter in the Lex event is null.
Please check:
1. Debug as shown in 38:54 to see if slot value is being captured.
2. Are you accessing the slot value correctly in Lambda function?
See the Lambda Code example mentioned in the video description.
@@ArchitectureBytes
Thanks for your response.
Q1: Using logs I can see that the slot is captured and saved in the session attributes.
Q2: I have printed the whole Lex event in the log; that's how I confirmed that lambda received the empty slot object in the lambda.
I can observe that the issue occurs only if we use the slot before the condition block. If the condition block is removed, then the code hook works as expected.
Hello, when programming fallback I found that no matter what I typed it assumed that was an order number and wanted to know if I wanted to cancel order thkddhhftb I changed this slot to be only a number and that helped BUT if I simply type in multiple numbers it trys to cancel
Without looking at your setup - I guess the CancelOrderIntent is getting invoked because you either chose that option(button) Or typed an utterance about canceling the order - so after that the ChatBot is looking for OrderNo to cancel.
I would enjoy showing you at anytime. My set up was just like yours.
I like your videos
1st Question - How to use the Version 1 for later purpose?
2nd Question - And after I built the bot again, and I wrote "Hey/Hello" etc.. it throws and error as "Cannot call FulfillmentCodeHook for Intent CreateOrderIntent. BotAlias/LocaleId TestBotAlias/en_US doesn't have an associated Lambda Function."
Is this expected ?
When I selected the settings button and manually added the source again on the chat screen , it started working. But no cloud watch log is generated after that also.
1 You can migrate from V1 to V2. There is documentation available regarding that.
2 If you are testing Chatbot Draft version - you must configure lambda function in the Settings 34:07
If you are creating a Version & Alias 36:19 - then you must configure lambda function 37:43
what if one lex bot need to invoke multiple lambda? the alias page seems only allow us to select one?
Amazon Lex V2 uses one Lambda function per bot alias per language (instead of one Lambda function for each intent). So, you can use the Lambda function that's configured for your bot's alias - to invoke other Lambda functions, based on the current intent's name.
@@ArchitectureBytes got it. Much thanks. You got me unstucked from a skill builder lab
@@ArchitectureBytes what’s your LinkedIn btw? I will follow you there.
Hi , after configuring lambda function I am not able to place an order. Getting something went wrong error.Please help here.
Have you checked the error message in CloudWatch Logs?
@@ArchitectureBytes No not checked yet
@@eshadas4857 pls check the cloud watch log after you get some idea
@@dhinuvideos still not able to get idea can you please help
really helpful
Thanks a lot.
Very informative video sir. Can you please share some videos related visual builder as well
Hello I am getting the Reached Maximum number of allowed steps in single user input.Please update the bot definition to avoid any potential loops error if I use conditional loops
What to do and why it is coming?
Please check your conditional branching logic - the 'Next Step in Conversation' part.
Perhaps it is resulting in a 'loop' behavior.
@@ArchitectureBytes no we have just given a single slot and for a particular value of slot we have given the display message in the branching condition.
We are developing a simple question and answer type bot for that we are using the branch what might be the issue?
Pls verify/change 'Next Step in Conversation' part for Condition/Slots etc.
@@ArchitectureBytes thank you so much sir we got it right
Hi how to publish the boat for end user usage ?
You can write a custom web page with javascript to invoke Amazon Lex APIs.
Pls see video description for a link to an example.
Can we connect it directly to any website from where the BOT can automatically fetch the data?
Not sure if I understand the question. Using a Lambda function alongside the chatbot as shown in the demo, you can fetch data from wherever you want.
How can we provide user with a clickable link as response please help
Try returning the response (with hyperlink) via a Lambda function.
However, whether the link is displayed correctly or not depends on the chat client.
@@ArchitectureBytes can't we do this without using lambda?
Under (Advanced Options >) More Response Options > Add > Custom Payload - here you could return a custom payload for eg. your link
Your chat client (custom/facebook messenger/slack) has to interpret the response and display hyperlink.
@@ArchitectureBytes can't we check that in lex interface for now because I tried it but it displays as a normal text message only
@@ArchitectureBytes and one more thing using u r method i.e from lambda also do we need to check with client?
Let me know if u want to team up on some RFP
Too many ads