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

Importing Python files in Aws Lambda causes error

I'm currently in a school course where we have to do a software project for some client. Our project is a helper bot powered by Amazon Lex service and Amazon's Lambda function. Our issue is that for some reason the Lambda function does not have same…
3
votes
1 answer

How to call Intent B from intent A in AWS lex?

I am working on aws lex I have an intent-A. I named it welcomeMsg. I want to call another intent(B) from intent-A. In welcome msg(intent-A), it will say: > `"Hi, I am a xxx-BOT. i can help you with following:` A B C If I Say B,…
ajaysheoran2323
  • 109
  • 1
  • 10
3
votes
1 answer

Null response from dialogAction(Python)

I am getting null response while my code is successfully working. I am not able to get response from dialogAction, i am import json import requests def getdata(intent_name, fulfillment_state, message): response = { 'dialogAction': { …
Pulkit
  • 606
  • 1
  • 9
  • 19
3
votes
1 answer

Showing AWS Lex Responce cards on chatbot integrated to website

I have created a chatbot in AWS Lex and integrated it with my website. After that, I used AWS Lex Response Cards on my chatbot and those response cards are not working in my chatbot integrated into my website. I have integrated the same bot in…
Akhil Gudimetla
  • 342
  • 3
  • 11
3
votes
2 answers

Is there a way for a lambda function to execute it's custom error prompt for AWS Lex bot?

I want to handle error messages dynamically and not rely on what we declared in the Lex dashboard. However when I tried to type a wrong message it will immediately trigger the default error message. When I check the lambda logs using Serverless the…
jhnferraris
  • 1,361
  • 1
  • 12
  • 34
3
votes
1 answer

How to store chat-conversation of chatbot(in aws lex) in DynamoDB

I am building a chatbot for a website that has lots of traffic I decided to build chatbot in AWS lex I want to save all chat conversation an single attribute in Dynamo DB for that I had chosen list data type for that attribute and I am able to get…
Akhil Gudimetla
  • 342
  • 3
  • 11
3
votes
0 answers

react native plugin to integrate amazon polly or lex

I am trying to integrate amazon lex in react native app, text api worrks fine but i am not able to stream audio to lex streaming api. i tried react-native-audio-toolkit and react-native-fetch-blob plugins with no luck, any help or suggestions are…
3
votes
2 answers

Amazon Lex "slots" for alphanumeric values

I have simple ask, how do I create a Amazon Lex slot for Alphanumeric values. So far I have tried - AMAZON.Number: only takes decimal numbers AMAZON.PostalAdress: takes everything except numbers Custom Slot with no values: Only numbers Is…
3
votes
1 answer

Lex chatbot C# client with voice

I have the chatbot client running with text but would now like to change it to voice but I am unsure of how to get the stream from the mic for post. For recording audio I am using NAudio but when sending the memory stream I get an error stating…
3
votes
0 answers

Unable to return Account Linking button from Amazon Lex to FB Messenger

Im developing a FB chatbot using Lex. To integrate the user experience Im trying to match the user on my DB (UID of User) to the user chatting on Lex ( PSID ). I have been suggested to use AccountLinking API to achieve this.…
Sunil..
  • 81
  • 1
  • 7
3
votes
2 answers

How do I build an Amazon Lex Bot using the rest API?

According to http://docs.aws.amazon.com/lex/latest/dg/API_Operations_Amazon_Lex_Model_Building_Service.html you can create or update bots and intents/slots (Put{Bot|Intend|Slot}, Create{Bot|Intend|Slot}Version). So by using Put* I can configure a…
Horatiu Jeflea
  • 7,256
  • 6
  • 38
  • 67
3
votes
1 answer

Amazon Lex Multiple Messages

I have a bot that gets information from three apis. Right now I aggregate all this information in the message and send it all at once: { sessionAttributes, dialogAction: { type: 'Close', 'Fulfilled', message } Is there a way to send out…
Alex M.
  • 31
  • 2
3
votes
2 answers

How to publish Amazon Lex Chatbot as webservice

I am able to create Amazon lex chat bot. I am also able to publish the same in Facebook messenger. Also I found sdk's for iOS and Android. What I want is to publish lex bot as a webservice which can be called from any rest client, so that it can be…
lost Coder
  • 577
  • 2
  • 8
  • 34
3
votes
2 answers

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

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 { /// /// A simple function that takes a string and does a…
ManirajSS
  • 2,295
  • 5
  • 26
  • 50
2
votes
2 answers

Lambda function can't connect to Lex bot

I want to invoke my Lex bot from my lambda function, by passing an input (utterance) to my bot. Here is my Python code: import boto3 import json def lambda_handler(event, context): print(event) # Create a new Amazon Lex runtime client …