Dialogflow API V2的“会话结束”在webhook请求中标记 [英] Dialogflow API V2 "End of conversation" flag in webhook request

查看:50
本文介绍了Dialogflow API V2的“会话结束”在webhook请求中标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Dialogflow代理迁移到API V2,并且遇到与将此意图设置为对话结束选项相关的问题

I am migrating a Dialogflow agent to API V2, and I am having an issue related to the "Set this intent as end of conversation" option

我的实现网络挂钩依赖于 endConversation:true 属性V1 Webhook请求的元数据可以执行自定义平台逻辑。

My fulfillment webhook relies on the "endConversation": true property of the V1 webhook request's metadata to perform custom platform logic.

有什么方法可以在不使用自定义有效载荷的情况下在Dialogflow V2中公开相同属性吗?

Is there any way I can expose this same property in Dialogflow V2 without using a custom payload?

推荐答案

您可以查看Dialogflow v2 webhook请求表单中的 queryResult.diagnosticInfo.end_conversation 字段其中您可以在下面看到:

You can look at the queryResult.diagnosticInfo.end_conversation field in Dialogflow's v2 webhook requests the form of which you can see below:

{
  "queryResult": {
    "diagnosticInfo": {
      "end_conversation": true
    },
    ...
  },
  ...
}

这篇关于Dialogflow API V2的“会话结束”在webhook请求中标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆