链接到我的动作的参数将被Dialogflow忽略 [英] Parameters in link to my action are ignored by Dialogflow

查看:76
本文介绍了链接到我的动作的参数将被Dialogflow忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我突然似乎无法再将参数值作为我链接到Google Action的一部分了。几个月前,这种方法就可以工作了,但我相信最后没有任何改变。

I suddenly can't seem to pass parameter values as part of my link to a Google Action anymore. This used to work a few months ago, and I don't believe anything changed at our end.

例如,我默认的欢迎使用参数中有一个参数叫做在源中,键入@ sys.any。
在Google控制台上的操作中,为 actions.intent.MAIN启用链接(我也可以在此处看到源参数)。

As an example, I have one parameter in my default Welcome intent called "source", type @sys.any. In the Actions On Google console, I enable the "Link" for actions.intent.MAIN (I can also see the source parameter listed there).

但是,当使用链接时, source参数值永远不会进入Dialogflow。我尝试了带有或不带有明确意图的链接(理论上,两者都应作为默认意图),但都不起作用:

But when using the link, the "source" parameter value never makes it to Dialogflow. I tried links with or without an explicit intent (in theory both should as it's the default intent), but neither work:

https://assistant.google.com/services/invoke/uid/ 000000c0463873a1?intent = actions.intent.MAIN& param.source = mariotest

https://assistant.google.com/services/invoke/uid/000000c0463873a1?param.source=mariotest

在两种情况下,如果我检查实现中的参数,则仅是{source:}}-如果我在Dialogflow中设置了source参数,则在Google上进行操作要求它,表明从未收到链接中的值。

In both cases, if I inspect "params" in my fulfilment, it's just { source: '' } - and if I make the source parameter required in Dialogflow, then Actions On Google asks for it, suggesting the value in the link is never received.

任何帮助或指针欢迎!

尝试链接是否带有明确意图,尝试使用必需参数或

Tried link with/without explicit intent, tried with the parameter required or optional, all with the same result.

我希望Dialogflow可以获取链接中传递的源值。

I'd expect the "source" value passed in the link to be picked up by Dialogflow.

推荐答案

我将重新发布答案以供将来参考:

I'll repost the answer just for future reference:

欢迎意图没有参数,因为通常不使用用户短语来调用它们。 (在某种程度上,它们是触发事件的,而不是由于训练短语引起的)

Welcome intents don't have parameters, since they're typically not invoked with a user phrase. (In a way they are, but the Event is triggered, not due to the training phrases)

在您的情况下,您可能希望使用后备意图获取原始内容文字查询,或创建单独的意图。

In your case you may want to use the Fallback intent to get the raw text query, or create a separate intent.

这篇关于链接到我的动作的参数将被Dialogflow忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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