amazon-lex

error: No usable messages given the current slot and sessionAttribute set

点点圈 提交于 2019-12-13 15:00:32
问题 I made a chatbot in lex and for one particular intent, Lex is throwing the error, An error has occurred: Invalid Bot Configuration: No usable messages given the current slot and sessionAttribute set. This error comes regardless of the input in case of that intent. I am not using any lambda functions at this point for this intent. Can someone guide me what this means? I am new to lex and I did not find references to what this error is about. 回答1: Recently I got the same error with the test of

upload failed: { Error: unable to verify the first certificate

微笑、不失礼 提交于 2019-12-13 02:53:18
问题 I wrote a small code in AWS-Lambda(Node.js) to send the file to some API. I am able to run the code but i am getting the upload error. Error: Function Logs: START RequestId: 08ad7fab-3658-11e8-8483-a7fbad976cb7 Version: $LATEST 2018-04-02T09:27:17.787Z 08ad7fab-3658-11e8-8483-a7fbad976cb7 upload failed: { Error: unable to verify the first certificate at Error (native) at TLSSocket.<anonymous> (_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket

Having trouble to do if statement for Amazon Lex using AWS Lambda (python)

半腔热情 提交于 2019-12-13 02:49:58
问题 I am trying to do an if statement for amazon lex where if a user answers 'A' for question 1, user's next question will be question 2 but when user answers 'B', the user is brought to question 3 instead. For example, Example 1: Lex: "Do you like ice cream?" User: "Yes" Lex: "What flavour"? Example 2: Lex: "Do you like ice cream?" User: "No" Lex: "Do you like cake?" I know I have to do the validation in aws lambda (python) but I am not really sure what the code is for this to happen. 回答1: First

How to ADD Multiple Responses in AWS Lex

只愿长相守 提交于 2019-12-12 18:33:55
问题 I was trying to add Multiple Responses for AWS Lex using AWS Lambda Functions but I am facing this error. I was trying for But I am stuck at the message An error has occurred: Invalid Lambda Response: Received invalid response from Lambda: Can not construct instance of Message, problem: contentType must not be null at [Source: {"dialogAction": {"type": "ConfirmIntent", "message": {"messages": [{"contentType": "PlainText", "group": 1, "content": "Hello"}, {"contentType": "PlainText", "group":

Amazon Lex accepting ConfirmIntent on any response

左心房为你撑大大i 提交于 2019-12-12 15:18:20
问题 I have an intent-A which is triggered by some user input. When the response is given to user I have used ConfirmIntent instead of Close so that I can switch/chain another intent (lets say intent-B ). Ideally if user type "yes" then intent should be triggered and if user type "no" then it should not. Problem is that intent-B is being triggered no matter what I type. I have read about ConfirmIntent from here, here and here. Calling Code: session_attributes = {"confirmationContext":

Can amazon lex chatbot accept image as input ?

巧了我就是萌 提交于 2019-12-12 09:28:13
问题 I want to build a deep learning chatbot application which accepts image as input. I have built a lambda function integrating AWS rekognition that accepts image.Now, i want to extend this lambda function, and connect it to Amazon Lex bot , where user can upload the image for analysis. 回答1: AWS Lex Chatbot can't accept image but Its possible by Integrate your Amazon Lex Bot with Amazon API Gateway . Your application API call to the HTTPS endpoint hosted by AWS API Gateway. API Gateway deal With

Amazon-lex returning clarification prompt for all inputs

丶灬走出姿态 提交于 2019-12-11 07:39:20
问题 I am trying to create a chatbot in amazon lex but no matter what input I type it returns the clarification prompt to me. I have currently configured the bot with 2 slots mnemonic and company and with 2 sample utterances in a single intent requestParameterInfo what is the {mnemonic}​ value for {company}​ what is the {mnemonic}​ value for {company}​ for the year {date} any suggestions why this might be happening ? 回答1: Couple things to check: Make sure your Slots have a number of good example

Amazon Lex's session attributes do not allow nested object?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 07:39:09
问题 I am trying to persist a nested object in sessionAttributes . However, it seems Amazon Lex does not recognize if I send a structure like this in response: { "sessionAttributes": { "previousIntent": "TCAIntent", "prevSlots": { "test": 1 } }, "dialogAction": { "type": "Delegate", "slots": { "firstName": null, "lastName": null, "rate": null, "rentMortgage": null, "downPayment": null, "purchasePrice": null, "email": null } } } When I replace {"test": 1} with a value, it works fine. Is there a way

Can I use Amazon LEX with Google assistant?

青春壹個敷衍的年華 提交于 2019-12-11 06:32:35
问题 I have made a Chat-Bot using Amazon's LEX. Is there any way I can use that application using Google's Voice Assistant in my phone? If not why? 回答1: Yes it is possible to use Google's voice assistant application with Amazon Lex as NLP engine. Go to https://developers.google.com/actions/ and log in Go to Actions Console using button on top left corner Create an Amaaon Lex agent In your actions's SDK use Lex's runtime library to postContent or postText function to call Lex and get intent name

Lex chat bot error: Reached second execution of fulfillment lambda on the same utterance

随声附和 提交于 2019-12-11 04:37:25
问题 I've read the Lex Docs on Responses. I've searched and found: - An unanswered question on same error. - An unanswered similar question but in Python. - An unanswered similar question in Amazon Dev Forum. So my question remains. What is causing / How to fix this error in Lex chat bot: An error has occurred: Invalid Lambda Response: Reached second execution of fulfillment lambda on the same utterance The error is only occurring when attempting to respond with Delegate. Here is my AWS lambda