Is it possible to add a direct command to Google Assistant API?

时间:2019-03-17 22:55:19

标签: google-assistant-sdk google-assist-api

I am working on an Arduino project and I was curious if it is possible to add a "direct command" to Google assistant on android. I've searched a bit and all I could find is having the Assistant do things like "Hey Google, let's talk to Application Name" but I think that's a little annoying to use, I wanted to know is if it's possible to add like "Hey Google do this" and it would like open a specific website. Is is possible or I'm out of luck?

Thank you!

1 个答案:

答案 0 :(得分:1)

您可以使用explicit invocation触发Google助手操作。

用户可以在调用结束时添加一个调用短语,使他们直接进入他们所请求的功能,例如:

Explicit invocation on Google Assistant

“嘿Google做到这一点”将是当前仅对合作伙伴可用的调用示例。例如,由于Spotify与Google有关系,因此用户可以说“嘿Google,在Spotify上播放Despacito”。如果您想使用Parnter解决方案来创建操作,则需要contact support来请求访问权限并成为合作伙伴。

作为第三方开发人员,最能模仿您所请求功能的是"Hey Google, talk to My App Name about visiting www.example.com",这可能会触发一个意图,该意图将以browsing carousel的链接指向www。 example.com和您要建议的其他任何网站。