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.)
 
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"
 

Xavier

New member
Hello I m trying to use this feature.

It seems so cool

Sadly it seems not working for french user.

How can i invoke a macro with google asddistant in french ? Is this possible?

Thx you
 

Sezgin

New member
Let me know how it goes! I'm curious how you're using it and what you're able to achieve.
It worked perfectly. I made a random radio player macro named * random radios. I created a routine called radio and configured action to "Run * random radios in macrodroid"
It worked and played random radios when I say radio to Google assistant.
Thank you :)
 

Sezgin

New member
Hello I m trying to use this feature.

It seems so cool

Sadly it seems not working for french user.

How can i invoke a macro with google asddistant in french ? Is this possible?

Thx you
It's easy.
Click on the Languages tab in Settings. In this tab, choose English (US) or English (UK) as the primary language and assign your language (French etc) as the other language.

Don't worry about your own language. Google Assistant will be able to define routines and it will still work in your language without any problems, and it will respond in English when you speak English.
 

Sezgin

New member
As we know, the Google assistant can also respond when the screen is off and when it is locked.

I want to run a macro and open the lock screen with a message to the Google Assistant.
But the Google assistant is waiting for the screen unlock to run macrodroid macros.

Is there any way to run a macro via google assistant while on lock screen?
 
Top