如何将Web服务直接传递给bot框架? [英] How to communicate the web service to bot framework directly?

查看:99
本文介绍了如何将Web服务直接传递给bot框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从上周开始,我就在使用bot框架.实现了用于Skype聊天的node.js SDK.

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

有时我需要在bot和API之间同步调用.服务是否可以直接联系bot或只是一种方式?

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.

推荐答案

是的,有可能.您应该查看 DirectLine .

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

Direct Line API是一个简单的REST API,用于直接连接到 单人机器人.该API供开发人员编写自己的API 客户端应用程序,网络聊天控件或将要交谈的移动应用程序 他们的机器人.

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.

此处您将找到有关如何使用它的更多信息,这里有使用DirectLine与机器人对话的Node.js示例.

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.

这篇关于如何将Web服务直接传递给bot框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆