I have developed a Chat bot on Azure using Microsoft Bot Framework
and Bot Builder SDK for node.js.
I have enabled the Directline API v3.0
for the Bot.
I have an Express
Web Application which calls the Directline API
when the web page loads and generates the Conversation ID
for the Bot. (I mean to say that the web app is accessing the Directline
REST API in the backend instead of calling the Directline
API Script in the HTML itself.)
Now i am using AJAX
calls to send and receive the Activity/Activities from the BOT. The response is posted as an HTML in the web page.
After explaining my scenario here, i have some questions and need some suggestions on them:
- I have gone through the webchat master github but seems like it only helps you in customizing the existing
web-chat
control and not process theGET
andPOST
Activity
from the Interface.(Please correct if there is a way it provides the implementation.) - Does Microsoft provides any support to build a custom chat user interface apart from web-chat above, which can recognize the bot activity response?
- Are there any resources available where people have built great open source Custom Chat bot user interface or Chat client which can leverage the Directline API using
HTML
,CSS
,Javascript
? - Also i am using AJAX calls to GET and POST data to and from BOT. Is it OK from the Architectural perspective? What can be some drawbacks in this solution?