问题
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