Search code examples
pythongoogle-cloud-platformgoogle-assistant-sdk

Enable Google Assistant in Windows


I am trying to do some automations using Google Assistant. Is it possible to integrate the mobile google assistant app with python? For example if I say open edge in my PC in my mobile and I am able to fetch the same from a python app running on my PC, I can create custom actions based on that. Can anyone help me with how can that be possible?


Solution

  • At the highest level, Google Assistant is able to be programmed using "Actions on Google". Actions on Google takes your audio input and drives a service called "Dialog Flow". Dialog Flow parses your natural language looking for an "intent" (what you are asking for). When an intent is matched, a "Webhook" can be called to process the request.

    If you have an application running on your Windows PC that is listening for an incoming REST request and can process the payload content, then the Webhook specified in Dialog Flow can be used to invoke your Windows application (REST app) that can perform the work.

    Wiring all this up does take some skills. Some good reading to start with would be: