How to communicate the web service to bot framework directly?

倖福魔咒の 提交于 2019-12-11 05:45:57

问题


I was working with bot framework from last week. implemented the node.js SDK for skype chat.

Sometimes I need synchronise call between bot and API. Is it possible for service to contact bot directly or is it just one way?

Please guide me if any one have suggestion.


回答1:


Yes, it's possible. You should look into DirectLine.

The Direct Line API is a simple REST API for connecting directly to a single bot. This API is intended for developers writing their own client applications, web chat controls, or mobile apps that will talk to their bot.

Here you will find more information about how to use it and here there is Node.js sample using DirectLine to talk with the bot.



来源:https://stackoverflow.com/questions/40904833/how-to-communicate-the-web-service-to-bot-framework-directly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!