Dialogflow Slack 集成 app_mention 不工作

Dialogflow Slack integration app_mention not working

我成功地将 Dialogflow 聊天机器人作为应用程序集成到 Slack 中,并且可以使用应用程序选项卡进行聊天。

但是,它通过提及 @bot hello 来响应频道中的消息 我意识到我必须将 app_mention 事件添加到 订阅机器人事件 表单中。

根据文档,这应该可以工作,但在本例中却没有。所以我开始怀疑 event 是否与 Dialogflow 不兼容,或者文档中是否缺少某些内容。

请指教。谢谢!

Dialogflow 不支持 app_mention 事件。

在遇到与您相同的问题后,我联系了 Slack 和 Dialogflow 的客户服务。

Slack 在他们这边进行了检查,甚至查看了我的机器人用户的日志,发现一切似乎都很好地发送到了 Dialogflow。

另一方面,Dialogflow 回答了这个问题:

At this time, the Slack integration of Dialogflow is ideal only for direct message. Bot will respond to any messages with or without a mention.

Unfortunately, we can’t disclose details about our releases until they’re live. We announce all new features in our Change Log: https://dialogflow.com/support/change-log. Stay tuned!

我只希望他们能尽快添加对此的支持。没有那个功能很烦人,因为现在机器人用户要么干扰频道中的一切,要么只支持直接消息。 这可能有助于更多人花时间联系 Dialogflow 支持 https://console.dialogflow.com/api-client/#/support

dialogflow 现在支持

app_mention。您需要做的就是在 Slack 中订阅以下机器人事件 - app_mentionmessage.group。在 dialogflow 中,在松弛集成下,取消选中 Process all messages 复选框。