amazon-lex

AWS Lex Python Codehook references

巧了我就是萌 提交于 2020-08-07 07:57:30
问题 I am still pretty new to Python (and coding) but I am trying to build my own Lex bot with a Lambda function. I have been following the tutorials and I can understand how it all works. Problem is when I am trying to write my own Lambda functions for Lex, I cannot find any references to help me write my code for example looking at the code below. def get_slots(intent_request): return intent_request['currentIntent']['slots'] What is "(intent_request)" and where would I find reference to this?

Invalid Lambda Response: Received error response from Lambda: Unhandled

坚强是说给别人听的谎言 提交于 2020-07-22 07:21:10
问题 i am working on Amazon lex. when i give input to amazon lex its gives me following error Invalid Lambda Response: Received error response from Lambda: Unhandled i add lambda function in Fulfillment and from lambda i am getting customer information from MySQL Database here is my lambda function const mysql = require('mysql'); var pool = mysql.createPool({ // a connection pool is a cache of database connections maintained so that the connections can be reused when future requests to the

Response cards not displaying in website-lex

萝らか妹 提交于 2020-07-22 05:51:08
问题 I have created Lex Chatbot and developed a website and integrated this Chatbot. Its working fine.But response cards in the form of buttons are not showing up.I got to know that I have to invoke it from lambda function.So I included the response card code .It works ,but after displaying the buttons it goes back and asks the first slot value again.I dont know where I am wrong Here is the expected conversation. User:Hi Lex:Please provide me your eid User:e123456 Lex:Choose one of the impact

Response cards not showing -Amazon lex

ぐ巨炮叔叔 提交于 2020-07-22 05:17:41
问题 I have created a lex chatbot and integrated it into website .Its working fine.I got to know that I have to invoke response cards from lambda .I did that too.Also,I enabled repsonse card checkbox in lex console.After all this,I am not able too see the buttons in the website.Is there any other way to display the buttons other than response cards? Below is the code:Here,after the fulfillment,I have given the response card which means that after the message "Hey your ticket has been raised",the

Scoring / Confidence of Intents using Amazon-Lex

♀尐吖头ヾ 提交于 2020-01-30 06:45:49
问题 I try to get a scoring-value or a value for confidence of an intent using amazon-lex (PostText) but there is no response-element in json-file at all. (https://docs.aws.amazon.com/de_de/lex/latest/dg/API_runtime_PostText.html) Is there any level or threshold for a correct identification of an intent which is used by amazon-lex? Thanks for your help. 回答1: As of now, this feature is not available in Amazon Lex, we only get the matched intent as the response for post_text api. You can have

Scoring / Confidence of Intents using Amazon-Lex

老子叫甜甜 提交于 2020-01-30 06:45:09
问题 I try to get a scoring-value or a value for confidence of an intent using amazon-lex (PostText) but there is no response-element in json-file at all. (https://docs.aws.amazon.com/de_de/lex/latest/dg/API_runtime_PostText.html) Is there any level or threshold for a correct identification of an intent which is used by amazon-lex? Thanks for your help. 回答1: As of now, this feature is not available in Amazon Lex, we only get the matched intent as the response for post_text api. You can have

Hyperlink in response card button in Amazon Lex

这一生的挚爱 提交于 2020-01-24 10:14:31
问题 I am trying to make a response card in amazon lex to give out a response card that has a button that leads to another website. Below is the code that I have used in aws lambda python. I have published the chatbot on facebook messenger. But whenever I select the button in fb messenger, the link in the button does not seem to bring me to the website. Is there any way to make the response card button turn into hyperlink button? def location(intent_request): session_attributes = intent_request[

Getting response from AWS Lambda function to AWS Lex bot is giving error?

旧城冷巷雨未停 提交于 2020-01-15 12:37:12
问题 I have created one AWS Lex bot and I am invoking one lambda function from that bot. When testing the lambda function I am getting proper response but at bot I am getting below error: An error has occurred: Received invalid response from Lambda: Can not construct instance of IntentResponse: no String-argument constructor/factory method to deserialize from String value ('2017-06-22 10:23:55.0') at [Source: "2017-06-22 10:23:55.0"; line: 1, column: 1] Not sure, what is wrong and where I am

Reached second execution of fulfillment lambda on the same utterance

╄→гoц情女王★ 提交于 2020-01-15 11:46:10
问题 Using AWS Lex and Lambda, I am trying to build a lambda function which, first validates the invoked intent and, then moves forward with the questions (to assign values to slots). Towards the end of fulfimentCodeHook, an error occurs, "Reached second execution of fulfillment lambda on the same utterance" 来源: https://stackoverflow.com/questions/44424680/reached-second-execution-of-fulfillment-lambda-on-the-same-utterance

Using Amazon Lex's inputTranscript to allow for an wide open slot

☆樱花仙子☆ 提交于 2020-01-06 12:36:22
问题 Can anyone provide any insight on exactly how to use the inputTranscript lex event to feed that input back to a slot as its value, to allow for an open slot type? I can capture the user input no problem, its just sending it back as the slot value where I'm encountering issues. From what I can see from researching, this is the best way to accomplish the ability to accept any value into a slot. I just cant seem to be able to actually get it to work. I've read a few posts stating to create the