# Amazon lex Bot integration with livechat

**URL:** <https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682>\
**Category:** Development\
**Tags:** rocketchat-apps\
**Created:** [January 3, 2023, 1:30pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682 "2023-01-03T13:30:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahrukh](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shahrukh](https://forums.rocket.chat/u/shahrukh)\
**Post date:** [January 3, 2023, 1:30pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/1 "2023-01-03T13:30:50Z")

</div>

how to enable Rockectchat sdk to take livechat messages?  
i am ready with lex api , i know how to use them to get replies  
but problem is i am not able to find enough documentation about rockrtchat sdk

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [January 5, 2023, 2:40pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/2 "2023-01-05T14:40:20Z")

</div>

HI! Welcome to our community 🤗

You want/need is to create a Bot Connector App, pretty much like this app here, from our good friend @frank.dase 🙂

> **[GitHub - FrankDaze/botpress-connector: Rocket.Chat -\> Botpress Connector](https://github.com/FrankDaze/botpress-connector)**
>
> Rocket.Chat -\> Botpress Connector. Contribute to FrankDaze/botpress-connector development by creating an account on GitHub.

Let me know if you need any assistance while creating this App. A good reference is this Demo.App that I have been crafting: [GitHub - RocketChat/Rocket.Chat.Demo.App: The best Rocket.Chat Apps Engine Demo out there.](https://github.com/RocketChat/Rocket.Chat.Demo.App/)

Please, let me know if this helps!

Thanks!

---

<div class="post-metadata">

**Author:** ![shahrukh](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shahrukh](https://forums.rocket.chat/u/shahrukh)\
**Post date:** [January 9, 2023, 12:07pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/3 "2023-01-09T12:07:28Z")

</div>

thank you so much for replying  
can i go with this

> **[GitHub - RocketChat/rocketchat-botpress-lab-bot: A bot that integrates...](https://github.com/RocketChat/rocketchat-botpress-lab-bot/)**
>
> A bot that integrates RocketChat and Botpress. Contribute to RocketChat/rocketchat-botpress-lab-bot development by creating an account on GitHub.

this also does the same work , rigth? and this application developed by you…🙂 and as far as from my understanding your application not uses rocket.chat app engine… and therefore this one seems easy to understand  
shall i refer this repo or the one you shared

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [January 9, 2023, 12:20pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/4 "2023-01-09T12:20:40Z")

</div>

Hi!

This lab bot uses the botpress connector App from Luis Hlatki. This botpress connector will only answer for omnichannel chats.

So you will be able to use botpress, insted of Amazon Lex Bot. So this will not be enough to integrate Rocket.Chat with Amazon Lex.

🙂

---

<div class="post-metadata">

**Author:** ![shahrukh](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shahrukh](https://forums.rocket.chat/u/shahrukh)\
**Post date:** [January 9, 2023, 1:23pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/6 "2023-01-09T13:23:19Z")

</div>

okay so i have to use **rocket chat app engine** only for app developement to interact with livechat visitor via my bot or are there **apis** that i can use to communicate with livechat visistor as this **lab bot** uses by simple javascript **no rocketchat engine** involve

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [January 10, 2023, 11:58am UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/7 "2023-01-10T11:58:29Z")

</div>

that’s right.

You can always use the realtime api as the user you want to answer with Amazon Lex, consume Amazon LEX Apis and send it back.

But using Rocket.Chat App Engine will give you a simple way to deploy and use this feature, not depending on external code being run.

---

<div class="post-metadata">

**Author:** ![shahrukh](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shahrukh](https://forums.rocket.chat/u/shahrukh)\
**Post date:** [January 17, 2023, 5:15pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/8 "2023-01-17T17:15:52Z")

</div>

okay i achieved integration using realtime api…but now i want my bot to reply with buttons i mean to give choices for visitor via buttons  
can you suggest me way how can i do that

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [January 17, 2023, 6:03pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/9 "2023-01-17T18:03:20Z")

</div>

That’s when the Apps Engine comes into play 😉

If you want to keep your app to a minimum, you can register an API that will send the buttons to the desired room and use your integration with it.

But you will not be able to add buttons or any other rich UI element using only Realtime or REST APIs.

let me know if this helps 🙂

---

<div class="post-metadata">

**Author:** ![shahrukh](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shahrukh](https://forums.rocket.chat/u/shahrukh)\
**Post date:** [January 18, 2023, 12:31pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/10 "2023-01-18T12:31:39Z")

</div>

okay thanks for reply  
plz can you guide me in step by step way for how to create endpoint and then how to use add UI element like button to reply in the any room  
that will help a lot 🙂

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [January 18, 2023, 12:53pm UTC](https://forums.rocket.chat/t/amazon-lex-bot-integration-with-livechat/15682/11 "2023-01-18T12:53:44Z")

</div>

Sure!

There is a demo code here:

> **[Simple API Endpoint · RocketChat/Rocket.Chat.Demo.App Wiki](https://github.com/RocketChat/Rocket.Chat.Demo.App/wiki/Simple-API-Endpoint)**
>
> The best Rocket.Chat Apps Engine Demo out there. Contribute to RocketChat/Rocket.Chat.Demo.App development by creating an account on GitHub.

You will need to have an App that will register an endpoint and receive the payload from Amazon Lex.

Next, you will need to build up a message that has the buttons you get from the api, and send it with same user that you are configuring.

But this approach will land you with 2 moving parts  
1 - The external Amazon Lex connector  
2 - The App to generate the buttons

It’s optimal to run everything in one App.

We have a [channel here](https://open.rocket.chat/channel/Demo-App) for the Demo-App discussion, and we can help you if you want to craft the Rocket.Chat Amazon Lex Connector App

I am sure a lot of other users from our community can benefit from that.

Also, if you want to discuss it further, we do it at our [Open Call](https://open.rocket.chat/channel/Rocket-Chat-Open-Community) next week 😉
