简体   繁体   English

如何将数据从 dialogflow(谷歌助手)传递到我手机上安装的 android 应用程序?

[英]How to pass data from dialogflow(google assistant) to our android app installed in my mobile?

I have an android app which requires data from google assistant.我有一个 android 应用程序,它需要来自谷歌助手的数据。 While trying dialogflow, we can only able to call webhooks(http post call).在尝试 dialogflow 时,我们只能调用 webhooks(http post call)。

For eg, My app name is XYZ configured phrase - "pass 2 to XYZ"例如,我的应用程序名称是 XYZ 配置的短语 - “pass 2 to XYZ”

So if I say "pass 2 to XYZ", I need google assistant to open my app intent with the value 2 as param.因此,如果我说“将 2 传递给 XYZ”,我需要谷歌助手以值 2 作为参数打开我的应用程序意图。 So I can able to do my code flow with the value 2.所以我可以用值 2 来完成我的代码流。

Well I know you asked this 2 years and 9 months ago, so maybe you already found a solution.好吧,我知道您在 2 年零 9 个月前问过这个问题,所以也许您已经找到了解决方案。 If not, then you can try using IFTTT.如果没有,那么您可以尝试使用 IFTTT。 IFTTT allows you to program a catch phrase for google assistant, grab a variable and do something with it. IFTTT 允许你为谷歌助手编写一个标语,获取一个变量并用它做一些事情。

For example, I use it to pass commands back to my phone by sending notifications from IFTTT to my phone and then using Macrodroid on my phone to take action from the notifications.例如,我使用它通过从 IFTTT 向我的手机发送通知,然后在我的手机上使用 Macrodroid 从通知中执行操作来将命令传递回我的手机。

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

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