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
2
votes
1 answer

What's the fastest way to update the lambda function being hit by lex testing?

I have a lex bot and intent, and a lambda function handling the fulfillment and verification for the bot. I'm working on building an effective development workflow for development. What is the most effective way to make sure that the Lambda function…
Dan Monego
  • 9,637
  • 6
  • 37
  • 72
2
votes
1 answer

bifurcation with questions amazon lex

How can I do this flow in amazon lex with lambda validation? I have tried to do it but the question is cycled and does not advance Thanks!! This is the code that I currently have, from slot1 to slot2 if it happens, but when I try to go from slot2…
2
votes
2 answers

Amazon Lex authorization with Flutter

I want write Flutter app which work with Amazon Lex REST API.Amazon has specific way for authenticating I used SigV4 package to make required headers Sigv4Client client = Sigv4Client( keyId: kAccessKey, accessKey: kSecretKey, region:…
prime
  • 41
  • 4
2
votes
0 answers

How to enter new line character in message for Amazon Lex

I am creating a bot using Amazon Lex. Currently I am stuck in how to get new line character. My message should look like this: hello my name is X. #New-line How can I help you? But currently I am getting this: hello my name is X. How can I help…
Prashant
  • 43
  • 3
2
votes
1 answer

Amazon Lex - Barge In

I have a Lex bot that is called from Amazon Connect. I have figured out how to allow barge-in from the Connect Get Customer Input. However, that's where it ends. When my Lexbot prompts for my slots, it isn't allowing the caller to barge-in. I…
TimWagaman
  • 980
  • 1
  • 10
  • 31
2
votes
3 answers

Is there a way to export and import the Amazon Connect - contact flow

I checked there is a way to import and export the connect json in the Amazon Connect via UI. It is working as expected. Is there a API (AWS SDK) available for importing? We want to automate this process! Could someone tell the way for achieving…
Harry
  • 3,072
  • 6
  • 43
  • 100
2
votes
1 answer

How to handle lambda responses to Amazon Lex?

I want to store the inputs given in Amazon Lex Chatbot in Amazon DynamoDB via Lambda Integration. How to handle the Responses from Amazon Lambda. I am receiving the error as - ( An error has occurred: Invalid Lambda Response: Received invalid…
2
votes
1 answer

Amazon lex unknown utterance to the Amazon Lambda function

I would like to know how to call lambda function from missed utterances. I created a bot I want like whenever the user request a query which is not available in the provided utterances, it will go to the error handling, instead of that I would like…
2
votes
1 answer

Amazon lex is not giving a successful response for values other than the defined slot values

I have a custom slot type defined and I have put slot values like 32, 34, 36, 38, small, large. I have set the Slot Resolution to 'Expand Values'. I have an utterance 'Show me option 32'. I have assigned the slots to the utterances. I save the…
JaRavi
  • 71
  • 3
2
votes
1 answer

Is there a way to get the input Transcript from LEX into a lambda which then allows connect to grab that transcript and set it as a contact attribute?

I have this lambda below that gets items from DynamoDB and returns it to connect just fine... however, I cannot seem to get the inputTranscript over. Is there a way I could implement this in my current lambda so that Connect can access it? I am…
2
votes
1 answer

How do I use Amazon Lex to take speech input from a customer and pass that information to a correct path using amazon connect?

So I am trying to streamline a customer support service by removing the need to listen to a set of options, and instead let the customer explain their issue, or say what they need support for. The list of possible service offerings exceeds 400…
JustinMc
  • 41
  • 3
2
votes
0 answers

Amazon Lex Model Building Service: how to build and publish a bot by SDK?

I'm creating a Amazon Lex deployment script using Javascript. After creating multiple slots and intents, what is the correct way of creating a new bot, building it and publishing it using the SDK? I succeed to do so manually through the console, but…
Shay Ashkenazi
  • 467
  • 1
  • 4
  • 11
2
votes
0 answers

Amazon Lex not recognize voice

I am using aws-amplify (https://aws-amplify.github.io/docs/js/interactions#using-with-react) library with react-native to develop a voice chat bot,it's working fine with text chat but when I send a voice input to the bot it doesn't work.Every time I…
M.K
  • 61
  • 8
2
votes
2 answers

How do I use sessionAttributes in Lex?

I just started to create a chat bot using Amazon Lex. I would like to use some session attributes to keep the state of conversation. Basically, my bot first selects a file from a DB, for example file "abc123", and then keeps the state of that file…
Reza
  • 73
  • 1
  • 8
2
votes
1 answer

How to invoke lambda when lex does not process the intent automatically?

My Lex bot has four intents. Suppose a user asks a question at the very beginning of the conversation and this question is not allotted to any of the four intents. Hence no intent will be established. When this happens, I want to call lambda to run…
Sushanth
  • 2,224
  • 13
  • 29