Questions tagged [amazon-lex]

Amazon Lex is "a service for building conversational interfaces into any application using voice and text."

What questions should have this tag?
Questions related to Amazon-Lex, AWS-Lex should be asked here. Mostly AWS-Lambda is used as the backend for Lex bots, so those questions are also valid as they are both connected.

Some basic definitions
Chatbots: Chatbots are computer programs designed to simulate conversation with human users, especially over the Internet.
Amazon Lex: Amazon Lex is a service for building conversational interfaces using voice and text.
Amazon Lambda: AWS Lambda is a compute service that lets you run code without provisioning or managing servers. AWS Lambda executes your code only when needed and scales automatically, from a few requests per day to thousands per second.

Brief introduction to the subject
Amazon Lex is a service for building conversational interfaces using voice and text. Powered by the same conversational engine as Alexa, Amazon Lex provides high quality speech recognition and language understanding capabilities, enabling addition of sophisticated, natural language ‘chatbots’ to new and existing applications.
Amazon Lex leverages AWS Lambda for Intent fulfillment, Amazon Cognito for user authentication, and Amazon Polly for text to speech. In addition, AWS Amplify can be used to automatically provision bots from a template.

Important links for learning more
https://aws.amazon.com/lex/
http://docs.aws.amazon.com/lex/latest/dg/what-is.html
http://docs.aws.amazon.com/lambda/latest/dg/welcome.html

728 questions
3
votes
0 answers

lex: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method

I am trying send request to lex using postman through I enter the correct access keyId and Secret Key , I am getting response as below: The request signature we calculated does not match the signature you…
3
votes
1 answer

Using AWS lambda function to call lex chat bot

I am trying to use boto3 from within AWS lambda function in order to do post_text to a Lex chat bot. Python code: client = boto3.client('lex-runtime') data = "string input" response = client.post_text( botName='xxx', …
Avihai Aharon
  • 43
  • 1
  • 4
3
votes
1 answer

How to add Response Card in Lex using PutIntent method?

I am trying to add a Response Card in lex using putIntent(). In AWS the putIntent method accepts responseCard as a String but how to add title, subTitle, ImageUrl, button values, and button names at the time of creating an Intent using response card…
Nick
  • 31
  • 1
3
votes
1 answer

How to add multiple slots of the same type in one utterance with Amazon Lex?

I'm building a chatbot that allows users to pick one or more services. What I want is the user to add many slots of the same type in one utterance. My Service slot has services like: Counseling Therapy Healthcare Addiction treatment... I want the…
Harry
  • 1,021
  • 4
  • 21
  • 41
3
votes
1 answer

How to build aws lex bot via .NET SDK

I am searching for a solution to build and publish the AWS Lex bot via .NET SDK or via any other API. Any help will be appreciated.
3
votes
1 answer

AWS Lex Python Codehook references

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…
tony25225
  • 53
  • 6
3
votes
1 answer

Send Recorded Twilio Audio To Lex

Currently I am able to record user input, pass the recording URL to the needed function, and download the audio file locally. What I am trying to do with the audio file is either get a buffer of it to send to Lex or convert it to the format Lex…
rocketlobster
  • 690
  • 7
  • 18
3
votes
1 answer

AWS Lex + Lambda - Intercepting all of next user response regardless of context - without defining sample utterances?

Consider the following scenario (U=User, L=Lex): U1: Hello L1: Hello, please give me your name to get started. U2: Bob L2: Bob, consider the following question: What colour is the sky? U3: The sky is usually blue but sometimes the sky is red. The…
mostamazingname
  • 153
  • 1
  • 1
  • 12
3
votes
2 answers

Is it possible to return multiple matching intents in DialogFlow and Amazon Lex?

Suppose we have 50 intents, few of them are closely related together but their functionality is different. Is it possible to prompt the user with 4-5 matching intents and ask them which one they actually meant? It is possible in MS Bot Framework, I…
sid8491
  • 6,622
  • 6
  • 38
  • 64
3
votes
1 answer

Calling external Rest API from a Lambda function in java

I am trying to write a lambda function that takes information from lex input, and calls a rest api, passing that information as a parameter, returns a string, which i then want to send to lex as a response. It works as expected when run in eclipse,…
Kanika Agarwal
  • 191
  • 1
  • 4
  • 9
3
votes
2 answers

How to respond with Image in Amazon-Lex

I am getting Error while displaying image as a response. I am getting this error : An error has occurred: Invalid Lambda Response: Received invalid response from Lambda: Unrecognized field "responseCard" (class IntentResponse), not marked as…
Noob
  • 119
  • 1
  • 10
3
votes
1 answer

Making custom slots using Regex in amazon Lex

I want to make custom slots that accepts any and all entries as long as those entries follow a certain regex pattern, eg:any number of alphabets or numbers but without a space in between. Can anyone tell me if there is a way in amazon lex to achieve…
Kanika Agarwal
  • 191
  • 1
  • 4
  • 9
3
votes
1 answer

Amazon Lex Facebook integration using Node.js request module

I've got my Lex bot configured with a Lambda function and integrated with Facebook messenger. That is all working well. Now I'm trying to get the Facebook user information in order to create a personalized welcome response using the user's name. I…
3
votes
1 answer

Hyperlink in response card button in Amazon Lex

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…
3
votes
1 answer

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

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 /…
Jay A. Little
  • 3,239
  • 2
  • 11
  • 32