Perform actions from Google Assistant


#1

I’m trying to call certain functions in my app based on what the user says from google assistant, for example saying “Ok google, call function one” but I’m having trouble implementing the stuff here, I just cant get anything to work at all - https://developers.google.com/voice-actions/interaction/voice-interactions. I understand that this requires repurposing a system voice action (in this case the call intent) but thats ok. How would i go about achieving this?

Thank you!


#2

You would need a Cordova plugin that somehow implements the code needed here and then routes this to the web app running - your Ionic app in this case. The app would then have to somehow handle that.

I am not sure this exists (yet).