amazon-lex

Amazon Lex Timing out in 30 seconds on Lambda Fullfilment

孤者浪人 提交于 2020-01-06 06:46:49
问题 I have a lambda function which is tied to some external automation via a webservice. It takes about 45 seconds for the task to be completed. I have already updated the time limitation for the lambda call to 2 mins and when I am testing it works fine. However, when I am using the text bot in Amazon Lex I get the following message: An error has occurred: Invalid Bot Configuration: Lambda request did not complete within permissible time (30 seconds). Anyone know how to increase the Lex Bot

Error on Lex Bot console - Reached second execution of fulfillment lambda on the same utterance

孤人 提交于 2020-01-05 05:45:10
问题 I created a bot in Lex and then created two intents within same bot - intent1 and intent2 with utterance get me a taxi now and I wan a taxi to {Location} on {TravelDate} at {TaxiTime} respectively(first one in intent1 and second one in intent2 ). Both the intents call different lambda function and inside lambda functions I access RDS to add the booking info for taxi. When I test from Lex console by saying either of the two utterances the lambda function executes completely as I can see

Trouble with Amazon Lex chatbot slots

前提是你 提交于 2019-12-24 20:17:26
问题 I am trying to create a chatbot. Chatbot will prompt the question "What is your nationality? (A, B, C)" and if the user says C, I want to straight away end the chat by saying something like "I am sorry, C is not applicable to apply. Only A and B can apply." I know I have to uncheck the "required" checkbox after the said question but I'm not sure what to input in aws lambda for it to happen. 回答1: After unchecking the required checkbox, in the lambda code do below: # inside dialogcodehook slots

Amazon Lex Bot - Replying to Hello

≡放荡痞女 提交于 2019-12-24 00:26:36
问题 I have started learning Amazon lex, gone through their Documentation and Example Bots. Problem i am facing is that all the bots are Q&A types, if i have to make the bot reply to Hello, what should be the correct way or how to do it? According to my understanding : I am thinking of creating an intent for Hello and when it gets fulfilled i can make the bot reply How can i help you? with Lambda Function, this is the way it is supposed to be done? There can be many other direct question that user

DialogFlow vs Lex for streaming intent detection

拟墨画扇 提交于 2019-12-23 05:36:14
问题 For my current project, I am looking for a bot building platform with the following features. Should support the creation/updating of new/existing bot via API. Support for intent detection from streaming audio. Enable the hosting of multiple bot agents in a single project. APIs to modify an existing bot/agent and save it as a new one. So I have thoroughly researched and also developed a simple working prototype using DialogFlow. DialogFlow supports intent detection from streaming audio. But

Custom Slot Type with AWS Lambda hook for Amazon Lex

允我心安 提交于 2019-12-22 01:32:18
问题 The Amazon Lex chatbot framework offers to use custom slot types. However, the mechanism is to provide an array of values that will be validated. But I want a custom validator that e.g. checks if the input is in a database. Ideally, I want to develop an AWS lambda hook that receives the input parameter and then executes some program that returns the either well-formated slot type or gives an error if the input was not valid. Anyone an idea? 回答1: AWS exposes an API to dynamically create slot

Is it possible to use AMAZON LEX to build a chatbot which connects with database and Web service stored on client side?

一个人想着一个人 提交于 2019-12-20 05:46:44
问题 Our organization wants to develop a "LOST & FOUND System Application" using chatbot integrated in a website. Whenever the user starts the conversation with the chatbot, the chatbot should ask the details of lost item or item found and it should store the details in database. How can we do it ? And can we use our own web-service because organization doesn't want to keep the database in Amazon's Server. 回答1: As someone who just implemented this very same situation (with a lot of help from

Formatting string output in Amazon Lex

爱⌒轻易说出口 提交于 2019-12-20 03:19:40
问题 I'm trying to print a series of objects in a List using the C# version of AWS Lambda. Its linked to my AWS RDS and my Lex bot. Currently, when I test the bot using the LEX test console, the output that is printed isn't formatted with line breaks even though I'm using the \n line break for C#. Example Code: var result = string.Empty; result = $"Events for {User}:"; foreach (var evt in events) { result += $"\n\n{evt.ID} - {evt.FeedbackType} - {evt.Status} - {evt.OpenedDate.ToString()}"; }

How to troubleshoot this AWS lambda error - An error has occurred: Received error response from Lambda: Unhandled?

南笙酒味 提交于 2019-12-17 20:55:37
问题 I'm new to AWS. I'm build chatbot using aws lex and aws lambda c#. I'm using sample aws lambda C# program namespace AWSLambda4 { public class Function { /// <summary> /// A simple function that takes a string and does a ToUpper /// </summary> /// <param name="input"></param> /// <param name="context"></param> /// <returns></returns> public string FunctionHandler(string input, ILambdaContext context) { try { return input?.ToUpper(); } catch (Exception e) { return "sorry i could not process

Creating carousel card in AWS Lex

蹲街弑〆低调 提交于 2019-12-17 16:52:38
问题 I am trying to build a ecommerce chatbot using lex. Is there any solution to use a carousel card or multi response cards in Lex? For example: Thanks.. 回答1: You can display multiple response cards in the response and it will display like carousel. Follow this example to generate response card through console (you can also do it dynamically in code). Console method: In the below image, in Prompt response cards section, see in the rightmost part, there is little + button, click on that and you