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
4
votes
3 answers

AWS Amplify MissingRequiredParameter userId error

I'm following the guide for starting with Interactions. When I call the send method on Interactions, I get the following error: (node:27796) UnhandledPromiseRejectionWarning: MissingRequiredParameter: Missing required key 'userId' in params It…
Jefftopia
  • 2,105
  • 1
  • 26
  • 45
4
votes
3 answers

How to ADD Multiple Responses in AWS Lex

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…
4
votes
2 answers

Lambda function to direct Lex to new intent

I'm trying to use a lambda function to send lex to a new intent based on the value of an incoming slot: Like this public override LexResponse Process(LexEvent lexEvent, ILambdaContext context) { var slots =…
Ben
  • 609
  • 6
  • 21
4
votes
2 answers

disable email link on Slack so that it stays as a string?

I'm working on a chatbot for Slack in AWS Lex, and I need it to collect an email address. While testing in Lex, it works fine because any email address remains as a string. But when it's hooked up to Slack, email address gets converted to…
LeftyT
  • 512
  • 6
  • 12
4
votes
2 answers

How to get audio from Amazon Lex response using boto3?

I have an Amazon Lex instance setup in AWS. I can communicate with it using the python library boto3 I can successfully get and send responses using the client.post_text() command as well as the client.post_content() I can see that there is a…
TestinginProd
  • 1,085
  • 1
  • 15
  • 35
4
votes
0 answers

Proactively initializing a conversation on Amazon LEX

my use case is very specific: I meed to send a push SMS reminder to the users with a follow up question that requires a boolean answer. I would like to continue the conversation with Amazon LEX. My problem is that I don't know if it is possible to…
felipeclopes
  • 4,010
  • 2
  • 25
  • 35
4
votes
1 answer

How to get intent score/confidence using amazon-lex?

Luis, watson, dialogflow - all they in json result returns score/confidence value(luis example): "intents": [ { "intent": "SearchSigil", "score": 0.9916578 }, Is there a way get score using amazon-lex?
comalex3
  • 2,497
  • 4
  • 26
  • 47
4
votes
2 answers

Hyperlink in content in Amazon Lex

I want to hyperlink a particular text in lambda function content. I tried doing this but didn't work. if (intentName == "greetings") { var message = { 'contentType': 'PlainText', 'content': '
Noob
  • 119
  • 1
  • 10
4
votes
4 answers

Can not construct instance of IntentResponse, The validated object is null

I have been following the youtube tutorial : https://www.youtube.com/watch?v=HkMi5xPyz1g&t=1533s public Object handleRequest(Map input, Context context) { LexRequest lexRequest= LexRequestFactory.createLexRequest(input); …
Kanika Agarwal
  • 191
  • 1
  • 4
  • 9
4
votes
1 answer

How to create open-ended slot in lex

I'd like to create a notes/feedback field in my Lex bot, but it appears difficult to do. It seems like AMAZON.LITERAL used to do this, and current suggestions are to create a custom slot and pump a bunch of random data into it…
tkelch
  • 321
  • 3
  • 9
4
votes
1 answer

Amazon Lex accepting ConfirmIntent on any response

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…
sid8491
  • 6,622
  • 6
  • 38
  • 64
4
votes
1 answer

Formatting string output in Amazon Lex

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…
4
votes
0 answers

java aws client exception. Unable to execute http request: timeout waiting for connection from pool?

I'm using the java aws sdk for polly and lex service. Once in a blue moon, I get this error message and my services stop working. This is from my brower console: {data: error: 'Internal Server Error', exception:…
jackjoesmith
  • 951
  • 4
  • 20
  • 33
4
votes
0 answers

Multiple slots in 1 sentence with amazon lex

I'm trying to create a bot for analytics purpose. Basically, this bot retrieve the name of the website, the metric name and the range date. It works fine, but with multiple questions ("what is the website ?" / "what is the metric ?" / "from when" /…
Johann
  • 153
  • 2
  • 8
4
votes
5 answers

IBM Watson vs Amazon Lex (chatbot)

Okay so i'm a newbie and i am interning for a software company. We need to build a chatbot using Watson or Lex. But I'm not sure which one to use. Also does Lex have an engine to support automated email conversations too?
Bhavyay Arora
  • 61
  • 1
  • 2
1
2
3
48 49