[英]How do we send custom payload with a Dialogflow bot in the Slack way?
I wanted to try a very simple custom payload to slack:我想尝试一个非常简单的自定义有效载荷来松弛:
{
"text": "in custom payload"
}
However, when I send the related catchphrase Dialogflow returns Not available
:但是,当我发送相关的标语 Dialogflow 时返回
Not available
:
So how do we send custom payload with a Dialogflow bot in the Slack way?那么我们如何以 Slack 方式使用 Dialogflow 机器人发送自定义有效负载?
You can send a simple text message using the following custom payload.您可以使用以下自定义有效负载发送简单的文本消息。
{
"slack": {
"text": "Testing custom payloads",
"attachments": []
}
}
Because you are using a custom payload Dialogflow will not be able to display the response.因为您使用的是自定义有效负载,所以 Dialogflow 将无法显示响应。
If you want to test the response you should connect it as a slack integration to your bot.
如果您想测试响应,您应该将其作为松弛集成连接到您的机器人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.