简体   繁体   English

我可以仅通过通知端点在 Bot Framework Emulator 中触发主动消息吗?

[英]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.

相关问题 使用 microsoft bot 框架创建 python 主动消息传递 - Create python proactive messaging with microsoft bot framework 如何使用python中的Microsoft bot框架向用户发送主动通知? - how to Send proactive notifications to users with Microsoft bot framework in python? 我该如何解决机器人发送垃圾邮件的问题? - How I can fix that the bot spams the message? 我可以在不使用 Bot Framework 的情况下创建 Teams 机器人吗? - Can I create a Teams bot without using Bot Framework? Django rest 框架 - 如何限制对 API 端点的请求? - Django rest framework - how can i limit requests to an API endpoint? 如何仅使用Notify和python清除一条通知消息? - How do I only clear one notification message using Notify and python? 如何在 on_message 事件 discord.py 后触发我的机器人向用户发送 DM - How do I trigger my bot to DM a user after an on_message event discord.py 我无法使用机器人固定电报群聊消息 - I can't pin a telegram group chat message using bot 我无法向电报机器人用户发送消息,但我自己 - I can not send message to telegram bot users but my self 如何使用带有 python selenium 的电报机器人发送消息 - How I can send message using telegram bot with python selenium
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM