简体   繁体   中英

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. While trying dialogflow, we can only able to call webhooks(http post call).

For eg, My app name is XYZ configured phrase - "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. So I can able to do my code flow with the value 2.

Well I know you asked this 2 years and 9 months ago, so maybe you already found a solution. If not, then you can try using IFTTT. IFTTT allows you to program a catch phrase for google assistant, grab a variable and do something with it.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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