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

Build with docker and --privileged

I'm using this guide to Build a Voice Kit with Amazon Lex and a Raspberry Pi, but I need to use Docker. The problem is that the script that the guide curls and runs requires access to /dev/tty. I can grant access to /dev/tty when running docker…
Alqio
  • 452
  • 1
  • 5
  • 15
15
votes
1 answer

How to test my published LEX bot on a REST CLIENT

I have created my lex bot and published it. I am now trying to test it out from a rest client. The idea is once working from rest client ,i can integrate this with my custom UI using rest calls. I am using this request body from posttext as per…
lost Coder
  • 577
  • 2
  • 8
  • 34
8
votes
1 answer

Calling from one intent to another intent in AWS LEX

I am a newbie in the AWS arena. Now I am working on AWS LEX. I want to call from one intent to another intent. I have found the following question but as I cannot comment I have created another one. How to call Intent B from intent A in AWS lex? My…
TAMIM HAIDER
  • 641
  • 1
  • 10
  • 19
6
votes
2 answers

How to access the raw input text and the entire conversation in AWS Lex

How can I access to raw text the lead to the intent in lex How can I extract the entire conversation including the user input and the Lex responses I thought of creating a lambda & API gateway to capture the input and record it before sending it…
Shachaf.Gortler
  • 5,655
  • 14
  • 43
  • 71
6
votes
1 answer

AWS Lex: How to display a welcome message when first opened?

Is it possible to to display a welcome message in a standalone bot (Node.js)? I would like to have the intent in the builder and invoke in my lambda function or from the front end node app. From the docs i can see that it can be done with…
Chris O
  • 712
  • 2
  • 9
  • 20
6
votes
3 answers

error: No usable messages given the current slot and sessionAttribute set

I made a chatbot in lex and for one particular intent, Lex is throwing the error, An error has occurred: Invalid Bot Configuration: No usable messages given the current slot and sessionAttribute set. This error comes regardless of the input in…
Kanika Agarwal
  • 191
  • 1
  • 4
  • 9
5
votes
1 answer

putBotAlias not working in AWS LexModelBuildingService node.js

I've been trying to replace the existing LexBot Alias(named LATEST) with a newly created bot version. Now, according to aws documentation When you want to update a bot alias, set the checksum field to the checksum of the most recent revision of the…
5
votes
4 answers

How to define a Lex slot type(custom /built in ) that will accept any given value?

I have slot name "remark". I need a slot type which takes any value given by user to this field.
5
votes
2 answers

How to get welcome messages in AWS Lex (lambda in Python)?

I am using Aws Lex for constructing chatbots. I had a scenario where I need to have welcome message initially without user input so that I can give a direction to the user in my chatbot.
Akhil Gudimetla
  • 342
  • 3
  • 11
5
votes
1 answer

AWS Connect and Lex - Cannot reference Contact Attribute

For reference, here is the flow in question: "Get Customer Input" (Lex) -> "Set Contact Attribute" -> "Play Prompt" After the call to Lex, I set a contact attribute using "Save Text As Attribute" option: DestinationKey …
5
votes
2 answers

How to call another intent without prompting to user in Lex?

Is it possible to trigger intent-B from the lambda function of intent-A without prompting to user? Suppose user typed something and an intent-A is fired, after some processing I want to trigger some other intent i.e intent-B. User can also directly…
sid8491
  • 6,622
  • 6
  • 38
  • 64
5
votes
1 answer

Amazon lex - Can the bot initiate a message?

I am new to amazon lex. I wanted to have the bot initiate a conversation instead of the user triggering the start flow by asking a question, is there a way to do that?
bgara
  • 143
  • 1
  • 12
5
votes
4 answers

Amazon Lex Error: An error occurred (BadRequestException) when calling the PutIntent operation: RelativeId does not match Lex ARN format

I'm trying to build a chatbot using Amazon's boto3 library. Right now, I am trying to create an intent using the put_intent function. My code is as follows: intent = lexClient.put_intent(name = 'test', …
dinod7
  • 51
  • 2
4
votes
0 answers

Microsoft Teams Channel / Amazon Lex integration

I have a working Amazon Lex bot that I am trying to integrate into an MS Teams channel, such that a user can converse with the bot from within the MS Teams channel. I have created a simple echo bot in Azure and ca access it in MS Teams chat, and am…
4
votes
0 answers

Google Speech-to-text on Amazon Kinesis stream: io.grpc.StatusRuntimeException: CANCELLED: The operation was cancelled

I want to use Google speech-to-text using Kinesis stream as part of voicebot service using Amazon Connect, Amazon Lex and Amazon SQS (I used code from…
1
2 3
48 49