Integration with Google Home automations

I’d like my home smart speakers could play music when I turn off an alarm. The easiest way was to do that through a Google Home routine.
I recently red that Google has finally realeased APIs to let developers integrate their apps. Is that true?

How to use Google Assistant for home automation?

Google Home, not Google Assistant. With the Google Home app you can control smart devices and set routines