Actions on Google won't respond to explicit invocations

会有一股神秘感。 提交于 2019-12-25 00:22:14

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/54974522/actions-on-google-wont-respond-to-explicit-invocations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!