I have a small bot on amazon lex, I am unable to figure out a way to define a default intent or a fallback intent.
How to create a fallback intent in Amazon Lex or call a Lamda when error is triggered?
1.3k Views Asked by Sri Krishna At
1
There are 1 best solutions below
Related Questions in AMAZON-LEX
- How can I limit AWS Lex slot prompt retries?
- Amazon LexBot slot elicition error while I am switching to intent instead of Elicition
- Amazon LEX throwing error while communicating with Lambda
- Connect and Lex to get DTMF input and store as contact attribute
- How to create slots in amazon lexv2 using terraform
- How to use amazon LEX?
- Verification Token or Signing Secret for AWS Lex to Slack connector?
- AWS Lex(v2) and Lambda
- How To: Lex V2 Fulfillment Updates in Twilio WhatsApp?
- How can I setup a session idle event in Amazon LexV2?
- Integrating AWS Lex Bot with Amazon Connect and with Support of two languages
- Lex responsive card buttons not working in Facebook Messenger
- How can I integrate My bot from AWS Lex in my Laravel App or test it using Postman?
- How can I make Amazon Lex V2 to initiate the conversation?
- Can't get Amazon Lex Extended Slot to work with Regex pattern
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As of now, Amazon Lex does not support any fallback intent or default intent. However I have found a workaround. Here's what I did.
Setup an API Gateway and Lambda function in between your chat-client and the Lex.
Your chat-client will send request to API Gateway, API Gateway will forward this to Lambda function and Lambda function will forward the request to Lex (Lex will have one more lambda function). While returning the response from Lex, you can check in the Lambda function if it's an error message and trigger some action.
In the Lambda function we can use something like this:
Hope it helps.