简体   繁体   English

如何在Azure终结点上使用botframework在您自己的bot设计中工作?

[英]How to use botframework on Azure endpoint to work in your own bot design?

My question is simple. 我的问题很简单。 However, I am unable to find it anywhere on Internet. 但是,我无法在Internet上的任何地方找到它。

I have published my bot on azure. 我已经在天青上发布了我的机器人。 It gives my messaging endpoint as https://something.azurewebsites.net/api/messages (it is not exactly real). 它为我的消息传递终结点提供了https://something.azurewebsites.net/api/messages (并非完全真实)。

How can I use this to get and post json files that it should give? 我如何使用它来获取和发布应提供的json文件? The file I will receive, I will hold it on variable and then loop around to get particular messages or post messages. 我将收到的文件,将其保存在变量上,然后循环获取特定的消息或发布消息。 However, it is not work? 但是,这行不通吗? Do I need to give secret along with this on header? 我是否需要在标头上提供秘密? How will this endpoint work so I can give and receive messages through input field on my chatbot design on HTML? 此端点将如何工作,以便我可以通过HTML上的聊天机器人设计上的输入字段来发送和接收消息?

You won't ever need to get or post messages directly. 您将不需要直接获取或发布消息。 If you have a Bot Channels Registration resource or a Web App Bot resource then that takes care of all communication with your endpoint. 如果您拥有Bot Channels Registration资源或Web App Bot资源,那么它将负责与端点的所有通信。 Connect your resource to whatever channels you want (like Direct Line) and then use those channels' clients to communicate with the bot. 将您的资源连接到所需的任何渠道(如“直线”),然后使用这些渠道的客户端与漫游器进行通信。 Have a look at the documentation for more information: https://docs.microsoft.com/en-us/azure/bot-service/bot-service-overview-introduction?view=azure-bot-service-4.0 请查看文档以获取更多信息: https : //docs.microsoft.com/zh-cn/azure/bot-service/bot-service-overview-introduction?view=azure-bot-service-4.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM