Google上的操作不会响应显式调用 [英] Actions on Google won't respond to explicit invocations

查看:109
本文介绍了Google上的操作不会响应显式调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个动作,我们称之为 foo。这是一个杂货店清单,因此用户应该可以像这样显式调用它:




  • 问foo加牛奶(失败)

  • 问foo add milk(有效,但语法上很糟糕)

  • tell foo add milk(失败,即使它与

  • 与foo交谈 ...加牛奶(有效,但很尴尬)



我在Dialogflow中定义了添加{item}到我的foo列表和添加{item}(以及许多其他)作为训练短语。因此,似乎一切都应该正确配置。



显式调用与foo对话(等待)添加牛奶和询问foo添加牛奶可以正常工作,但我无法让其他任何人在Actions模拟器或实际设备上工作。在所有情况下,它都返回对不起,此操作在模拟中不可用。当我在Dialogflow中测试时,它可以正常工作。



它看起来像助手正在尝试匹配其他一些无关的技能(我假设这就是调试错误的意思)。但是,当我显式调用问foo来添加牛奶时为什么会失败?



另外,我的动作名称已经很独特了,即使我将其更改为某些名称真的独特(水牛香蕉,画家奥斯卡,等等)仍然与我的动作不符。导致我以为我不了解某件事,或者说Actions真的坏了。



有人可以帮我调试吗?



编辑:我花了数周的时间与Actions支持团队进行了交谈,他们认为这是我的帐户存在问题,但不知道如何解决。不幸的是,那时他们只是向我求助于GSuite,他当然对Actions一无所知,也无济于事。在这一点上,我真是运气不好。

解决方案


I'm developing an Action, let's call it "foo". It's a grocery list, so users should be able to explicitly invoke it like so:

  • "ask foo to add milk" (fails)
  • "ask foo add milk" (works, but grammatically awful)
  • "tell foo add milk" (fails, even though it's basically identical to the above?)
  • "talk to foo" ... "add milk" (works, but awkward)

I've defined "add {item} to my foo list" and "add {item}" (as well as many others) as training phrases in Dialogflow. So it seems like everything should be configured correctly.

The explicit invocations "talk to foo" (wait) "add milk" and "ask foo add milk" work fine, but I cannot get any others to work in the Actions simulator or on an actual device. In all cases it returns "Sorry, this action is not available in simulation". When I test in Dialogflow, it works fine.

It seems like the Assistant is trying to match some other unrelated skill (I'm assuming that's what that debug error means). But why would it fail when I explicitly invoke "ask foo to add milk"?

Additionally, my action name is already pretty unique, but even if I change it to something really unique ("buffalo bananas", "painter oscar", whatever) it still doesn't match my action. Which leads me to think that I'm not understanding something, or Actions is just really broken.

Can anyone help me debug this?

Edit: I spent weeks in conversation with the Actions support team, and they determined it was a "problem with my account", but didn't know how to fix it. Unfortunately, at that point they simply punted me to GSuite support, who of course know nothing about Actions and also couldn't help. I'm all out of luck and ideas at this point.

解决方案

Implicit invocation is not based directly on what training phrases you have. Google will try to match users to the best action for a given query, but it might not.

To get explicit invocation with an invocation phrase, you may need to go back to the Dialogflow integrations section and configure each intent you want to serve as an implicit intent.

这篇关于Google上的操作不会响应显式调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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