Coder
Coder

Reputation: 3262

How to use Amazon lex bot from the external web UI

I have set up the amazon lex bot in AWS and I am able to test this successfully in the Test bot section. I started exploring accessing the amazon lex bot from the external web ui (my local application) and I found the tool called amazon aws lex web UI (https://github.com/aws-samples/aws-lex-web-ui) and It seems very complex to setup, I have few queries here

1) Is this (https://github.com/aws-samples/aws-lex-web-ui) the only way to use amazon lex bot from my local web application?
2) This section has the notes for running locally (https://github.com/aws-samples/aws-lex-web-ui#running-locally) How to generate the amazon Cognito pool Id for the amazon lex bot?

Thanks,
Harry

Upvotes: 0

Views: 2862

Answers (2)

Horatiu Jeflea
Horatiu Jeflea

Reputation: 7404

https://github.com/aws-samples/aws-lex-web-ui is an utility tool, which you may use, but in most cases you will end up implementing your own display logic. It most cases it is connecting it to sms, facebook, whatsapp... You have an API https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html in which you can interact with Lex, I suggest using that.

Upvotes: 0

Arun Balasubramaniam
Arun Balasubramaniam

Reputation: 520

1) No

Amazon Lex is ultimately a service, which means it can be called from any application that calls the API appropriately. The sample provided by AWS is just an example of how to call that API. So, this is not the only way to use Amazon Lex bots from your local web application.

You can create a fully custom Bot UI from scratch (like I did) that calls the Amazon Lex API to service your application. (More on this can be found at this question that another user has asked - note that the response for this question is done in C#)

2)

There is an example provided by AWS at the following link which has a section on how to set up Cognito for this purpose (again, this is what I used to set up my own Bot)

Hope this helps you!

Upvotes: 2

Related Questions