# \[PAID\] Integrate Amazon Lex Into Discourse Composer

**URL:** https://meta.discourse.org/t/paid-integrate-amazon-lex-into-discourse-composer/119955
**Category:** Marketplace
**Created:** [6월 10, 2019, 8:50오후 UTC](https://meta.discourse.org/t/paid-integrate-amazon-lex-into-discourse-composer/119955 "2019-06-10T20:50:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![michaelmccrae](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaelmccrae/32/139510_2.png) [@michaelmccrae](https://meta.discourse.org/u/michaelmccrae)
#### Post date: [6월 10, 2019, 8:50오후 UTC](https://meta.discourse.org/t/paid-integrate-amazon-lex-into-discourse-composer/119955/1 "2019-06-10T20:50:48Z")

</div>

I am looking for help integrating an Amazon Lex chatbot into Discourse composer dialogue box.

Amazon Lex can be deployed through an iframe. I can provide the code.

I have a few different chat bots. I would like to give users the option of dropping the one they would like into their post through some type of navigation option in composer. See mock up below.

I already have a Discourse site up-and-running.

I’d like completed by late-June.

Price is negotiable.

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/9/e93674a2612451704c0ba3679a78b9d2b9c83c0c.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [6월 11, 2019, 12:36오후 UTC](https://meta.discourse.org/t/paid-integrate-amazon-lex-into-discourse-composer/119955/2 "2019-06-11T12:36:00Z")

</div>

Why wouldn’t you build this with Amazon Lex as a full user that would post in a topic like any other?

Then you would not change the Composer, but come up with a way to drop a chat bot into a Topic.

That way, the Composer remains the same, but the chatbot is provided with the ability to respond to the users posts.

Conversations then occur in the native way without fighting the current interface so much and making the integration much ‘cleaner’.

This would certainly be a very interesting project. Refining the requirement could also optimise the final experience, make things easier to build, manage, maintain and more cost effective.

Very happy to discuss this offline.

@angus

---

<div class="post-metadata">

### Author: ![Michael\_McCrae](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michael_mccrae/32/143362_2.png) [@Michael\_McCrae](https://meta.discourse.org/u/Michael_McCrae)
#### Post date: [6월 11, 2019, 3:00오후 UTC](https://meta.discourse.org/t/paid-integrate-amazon-lex-into-discourse-composer/119955/5 "2019-06-11T15:00:23Z")

</div>

I’d love to discuss offline. (I hope this doesn’t break Marketplace rules. We are spit-balling the project.)

Yes, I was first looking at hosting Lex separately from Discourse. I could then drop the Lex chat into a Discourse post but the number of API calls looked daunting. The APIs had to login, create a post and then send the contents of a Lex Chat to a Discourse post all outside of Discourse.

It seemed better to just integrate the user in a Discourse instance off the bat who then uses Lex within Composer, but I assume you have a different take on this.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [6월 11, 2019, 3:05오후 UTC](https://meta.discourse.org/t/paid-integrate-amazon-lex-into-discourse-composer/119955/6 "2019-06-11T15:05:07Z")

</div>

There’s already a Hubot adapter, and it’s demoed here. This is the type of interaction I had in mind:

> [@Set up a smart chatbot on discourse robot](https://meta.discourse.org/t/setting-up-a-smart-chatbot-on-discourse-robot/82632):
>
> Hello, After weeks of tinkering, I finally managed to set up an AI bot, similar to discobot but one that learns and is more responsive. Here is how I did it for anyone interested in setting it up. There is quite a few steps, but once you get it all set up, the result is amazing. Install the hubot plugin for discourse [Hubot Adapter for Discourse](https://meta.discourse.org/t/hubot-adapter-for-discourse/63419), to install hubot on your discourse, the hubot variables like HUBOT\_DISCOURSE\_USERNAME are entered into (yourhubotfolder)/bin/hubot file, just nano…

The plugin lives here:

> [@Hubot Adapter for Discourse](https://meta.discourse.org/t/hubot-adapter-for-discourse/63419):
>
> I built a [Hubot](https://hubot.github.com/) adapter for Discourse. [https://github.com/featheredtoast/hubot-discourse-adapter](https://github.com/featheredtoast/hubot-discourse-adapter) This should work moderately well for communities that desire bot integrations. There are a few gotchas (see the readme) but for the most part it has been pretty incredible to tinker with so far. Something my community desired was a dice roller, which I knew existed as a hubot plugin. While there have been other attempts at [integrating dice rollers into discourse](https://meta.discourse.org/t/simple-dice-roller-plugin/9958/15), if I was going to run a bot agains…

If this approach was acceptable it might form the basis of support for a Amazon Lex version, building on that work.

Then again, Hubot might cut it for your use case, in which case, just use that?

---

<div class="post-metadata">

### Author: ![michaelmccrae](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaelmccrae/32/139510_2.png) [@michaelmccrae](https://meta.discourse.org/u/michaelmccrae)
#### Post date: [6월 15, 2019, 12:02오전 UTC](https://meta.discourse.org/t/paid-integrate-amazon-lex-into-discourse-composer/119955/7 "2019-06-15T00:02:53Z")

</div>

Thanks for the tip. I am working through the tutorials now. That looks like a better solution. I am not married to Lex and may opt for DialogFlow, per the example.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [7월 15, 2019, 12:02오전 UTC](https://meta.discourse.org/t/paid-integrate-amazon-lex-into-discourse-composer/119955/8 "2019-07-15T00:02:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
