Dialogflow API V2的“会话结束”在webhook请求中标记 [英] Dialogflow API V2 "End of conversation" flag in webhook request
问题描述
我正在将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屋!