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.
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.
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.
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.