Ok Google support now available.

MacroDroidDev

Administrator
Staff member
I'm happy to say that MacroDroid now offers support for invoking commands via the Google assistant via one of the following commands:

Ok Google

run 'macroname' in MacroDroid
start 'macroname' in MacroDroid
run macro called 'macroname' in MacroDroid


This currently will only work if your device language and Google assistant language are set to the English language. Unfortunately custom actions are only currently supported by Google for English. I will add additional language support once Google allow it.

I will add this to the version update info in the next release to inform users who would otherwise not see this information, but this should be working with the latest production version available now (v5.10.2.)
 

webalchemist

New member
WOW!
I tried it out with setting an empty trigger and the command worked instantly!

I set up a macro named Turkey in macrodroid (planning to test if its case sensitive)
I added the action in my macro to have my phone speak "Gobble Gobble"

I opened google assistant on my phone and said:
run "turkey" in macrodroid
within 5 seconds google said: Opening Macrodroid - Device Automation
then macrodroid beautifully executed my macro named Turkey
and my phone said "Gobble Gobble" as a result of me passing a command to google assistant! Super cool.

I then went to Google Assistant Routine and created a routine called:
I want you to say Turkey
and I configured the google assistant routine action to:
run turkey in macrodroid

then 2 seconds later I opened google voice and said:
I want you to say Turkey ( instead of "run turkey in macrodroid )
within seconds google came on and announced automation and then kicked off the sequence.
My phone said, Gobble Gobble!

I think this is awesome!

and also i'm thinking I may still prefer to use my implemented work around:
Here's how i'm doing it to have seamless integration of my AI:

passing the google command via IFTTT and then having IFTTT send me a notification
my macrodroid notification engine is activated by the trigger and parses the notification to launch my macro .
I can set the notification to silent or even hidden and google assistant will launch my local macros without an abrupt system redirect message.

and THANK YOU so much for all the amazing work on Macrodroid! omg its phenomenal!!

See my discussion about AI development here on this forum
 
Last edited:

Sezgin

New member
WOW!
I tried it out with setting an empty trigger and the command worked instantly!

I set up a macro named Turkey in macrodroid (planning to test if its case sensitive)
I added the action in my macro to have my phone speak "Gobble Gobble"

I opened google assistant on my phone and said:
run "turkey" in macrodroid
within 5 seconds google said: Opening Macrodroid - Device Automation
then macrodroid beautifully executed my macro named Turkey
and my phone said "Gobble Gobble" as a result of me passing a command to google assistant! Super cool.

I then went to Google Assistant Routine and created a routine called:
I want you to say Turkey
and I configured the google assistant routine action to:
run turkey in macrodroid

then 2 seconds later I opened google voice and said:
I want you to say Turkey ( instead of "run turkey in macrodroid )
within seconds google came on and announced automation and then kicked off the sequence.
My phone said, Gobble Gobble!

I think this is awesome!

and also i'm thinking I may still prefer to use my implemented work around:
Here's how i'm doing it to have seamless integration of my AI:

passing the google command via IFTTT and then having IFTTT send me a notification
my macrodroid notification engine is activated by the trigger and parses the notification to launch my macro .
I can set the notification to silent or even hidden and google assistant will launch my local macros without an abrupt system redirect message.

and THANK YOU so much for all the amazing work on Macrodroid! omg its phenomenal!!

See my discussion about AI development here on this forum
Thank you "Google Assistant Routine" suggestion. I'll try it this night. Ill write a macro named Turkey and it says "fenk yu veri maç veb alkemist"
 
Top