[英]Can I trigger a proactive message in Bot Framework Emulator only by notify endpoint?
I am trying to build a simple Microsoft Bot Framework v4 bot with Python that will send me a proactive message using the Bot Framework Emulator.我正在尝试使用 Python 构建一个简单的 Microsoft Bot Framework v4 机器人,它将使用 Bot Framework Emulator 向我发送主动消息。 For example, when a deadline for submitting a work is less than a day.
例如,当提交作品的截止日期少于一天时。 I had a look in the documentation and found the following sentence: "The application logic for initiating a proactive message is outside the scope of the SDK. For this sample, a notify endpoint, in addition to a standard messages endpoint, is used to trigger the proactive turn.".
我查看了文档并发现了以下句子:“用于启动主动消息的应用程序逻辑在 SDK 的 scope 之外。对于此示例,除了标准消息端点之外,还使用通知端点来触发主动转向”。 Does this mean I need to define a method that triggers the notify endpoint to send a proactive message or how else could I trigger a proactive message?
这是否意味着我需要定义一种方法来触发通知端点以发送主动消息,或者我还能如何触发主动消息?
Yes, In addition to the standard api/messages/ endpoint, you will need api/notify endpoint and trigger the proactive turn.是的,除了标准的api/messages/端点之外,您还需要api/notify端点并触发主动转向。
Here is a sample bot with a messages endpoint, and an additional notify endpoint that is used to send proactive messages to the user.这是一个带有消息端点的示例机器人,以及一个用于向用户发送主动消息的附加通知端点。
Here is a C# .NET Core proactive message sample project这是一个 C# .NET 核心主动消息示例项目
Check out BotBuilder-Samples repo for more samples.查看BotBuilder-Samples 存储库以获取更多示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.