在 android 中访问 azure 中的机器人

Accessing bot in azure in android

我已经在 Azure 中部署了一个机器人。 Bot 是使用 Microsoft bot 框架用 C# 编写的。 在提供 azure URL、App Id 和 App Secret 后,我​​可以使用 Microsoft Bot Framework Emulator 与它通信。 如何与来自 android 的机器人通信? 有没有URL像RESTApi一样与之通信的

如果您使用注册到 BotFramework 的机器人,您可以尝试配置网络聊天频道:

  • 登录Bot Framework
  • 前往 "your bots"
  • 点击您注册的机器人
  • 点击频道中“网络聊天”旁边的"Edit"
  • 生成您的 Web Chat Secrets(蓝色按钮)
  • 勾选"enable this bot on web chat"
  • 记下秘密并嵌入标签

然后,从 iframe 中取出 link,(你会得到这样的东西:https://webchat.botframework.com/embed/YourBotID?s=YOUR_SECRET_HERE) 将 YOUR_SECRET_HERE 替换为您之前获取的秘密

然后,从您的 phone / 任何地方浏览最终 link。

@SandeepMenon,GitHub 上有一个 blog which introduces how to integate Azure Logic Apps with a Bot Web App using Bot Framework API hosted on Azure and supply the sample project

我认为您可以尝试参考博客并使用 Azure Logic App as callable endpoint,然后与来自 android 的 bot 通信只是调用来自 android 的 http 端点的实现.