简体   繁体   English

通过其他设备在Google Home上开始对话

[英]Start conversation on google home from other device

We have a Google Home device, for example, the Google Home mini. 我们有一个Google Home设备,例如Google Home mini。 After that we have created a dialogflow conversation. 之后,我们创建了一个dialogflow对话。 So the basic conversation looks as followed: 因此基本对话如下所示:

User: Hey Google, talk to water log.
Google Home: Hello, did you know that you have to drink 3 litres of water each day.
User: Hey Google, talk to water log that I have drunk 500ml water today.
Google Home: You have drunk a total of 500ml water today. 

That works fine. 很好 We are trying to achieve that the Google Home/Assistant starts the conversation, or that we can remotely send a command to the Google Assistant to start a conversation on the Google Home (from another device than the Google Home) and continue the conversation. 我们正在尝试实现Google Home / Assistant开始对话,或者我们可以远程向Google Assistant发送命令以在Google Home上(从Google Home以外的其他设备)发起对话并继续对话。 So for example: 因此,例如:

Google Home: Hey [user], Did you drink some water today? 
User: Yes, I have drunk 300ml today.
Google Home: You have drunk a total of 300ml water today.

That's where we get stuck. 那就是我们陷入困境的地方。 We have tried to do the following, broadcast a message with the grpc/google assistant SDK. 我们尝试执行以下操作,并使用grpc / google assistant SDK广播一条消息。 The first part is broadcasted, but when you say something back it doesn't know the context of the intent. 广播了第一部分,但是当您说回一些内容时,它并不知道意图的上下文。

How can we start a conversation and that the user can talk back to the google home? 我们如何开始对话,并且用户可以与Google Home对话?

Having the Assistant initiate a conversation on its own is not possible, presumably because that would quickly be abused by developers. 不能让助手自行发起对话,大概是因为这样会很快被开发人员滥用。 There are however several ways to keep users engaged via reminders, notifications etc., check out the User engagement section of the docs for that. 但是,有几种方法可以通过提醒,通知等保持用户参与 ,为此,请查看文档的“ 用户参与度”部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM