Skip to main content

Google Assistant, simpleness of interaction to call a webhook

The creation of an application using Google Assistant is very simple and represent a big impact to interact with users in diverse environments and particularly in home

Hey Google
...Where is my dog?

If we plan to connect a security camera system, the challenge of finding my pet in an automated way is more feasible, then I will give more details of how I intend to do it. Now we are going to prepare the functionality of the assistant’s requests.


To create an agent and interact with Google Assistant, we will use DialogFlow.


Let's see the main elements to create an agent, and using this agent call a webhook with some functionality. * Part of the objective will be to try to prepare the logic of interaction with a home security system

*Arlo System

From the DialogFlow console, we will create a new agent:
We can customize different support languages, for this case I will use English to facilitate the testing of the agent. [You can include Spanish and also go in depth using the sub-versions like es-419 - latin]


Now we will create an intent where we will represent the concept of action to be performed by the agent and the reactions that the agent will have.

Pay special attention to completing the phrases that the user should use to trigger actions on the agent.


This is the json representation of the intent:


I also share the phrases used to understand the user. ¨User Says¨:

Then we can add a name to the action, this is important to add logic to this action into the code implementation.

Finally, an important part of these operations is the interaction with webhooks. Here we can connect different services. For this example, the webhook will manipulate a system of security cameras following commands to make a user's utility simpler and more flexible.


ArloCamService is a sample project that provides support to a webhook for Google Assistant.

Our complete implementation architecture plan:

Actions of Google Assistant propose interesting utilities and simplicity of development, in addition it's provide a great option for developers to innovate into the topic/environment of interaction with the user using the simplicity of the dialogue interaction.

Creative Commons License
Google Assistant, simpleness of interaction to call a webhook by Nicolas Bortolotti is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Comments

Popular posts from this blog

Cloud Platform & Communities summer experiences in Switzerland & Italy

A couple of weeks ago with the European developers communities team we started activities with some new communities specialized in Machine Learning & Cloud Platform.  We also participated in some activities and as part of this initiative, we visited two communities with a practical program proposal  based on Cloud Technology. Cloud Study Jam . We shared a very nice activity with SOAI chapter in Zurich . Here we present the basic elements of the Cloud Study Jam proposal and we also explored a workshop with the introduction to Cloud ML engine. Cloud Study Jam Overview: *a core element of Cloud Study Jam format is the utilization of qwiklabs platform to provide tech tutorial & online labs. Cloud Study Jam, workshop "Cloud ML Engine: Qwik Start": In addition to that, we shared another very nice activity with Machine Learning Milan . Similar approach with Cloud Study Jam Overview and then we provided a workshop related to AutoML Vision. Cloud Stud...

Community centered care data analysis, times of Covid-19

For the past few weeks, the global health emergency caused by Covid-19 has put many questions in my thoughts, from general to more specific in many dimensions. We all know that we should prepare better in the future and this morning reviewing the concept of community centered care “ At the Epicenter of the Covid-19 Pandemic and Humanitarian Crises in Italy: Changing Perspectives on Preparation and Mitigation ,(2020), Nacoti, Ciocca, ... ” added by the hospital in Bergamo Italy, sparked my interest... how to be prepared, how potentially implement and be smart into the distribution, finally using data from Korea( KCDC  and DS4C ), I started analyzing looking for responses. From the data analysis perspective if we can understand the entities and important variables geographically distributed in a region, we can analyze the activity of this approach at least in theory dimension. Also with an analysis of infection-cases we can explore the more affected regions and maybe create a d...

#BuenosAires birthplace of great developers? Analysis according #stackexchange

In this article I would like share a very simple analysis about developers and their relevance in 6 of the most important capitals of #LatAm. Based on data proposed by [http://data.stackexchange.com/] we will study the behavior of developers [all disciplines] in [Buenos Aires, Sao Paulo, Santiago de Chile, Lima, Bogota and Mexico City] I used the #Users table, the complexity begins when the analysis of the #Location attribute shows a quite variable string. Anyway it's possible identify the data of cities without problems. For this sample/snapshot I identified over 5K developers. Bogotá, Colombia 650 Lima, Perú 515 Santiago, Chile 750 Sao Paulo, Brazil 1845 Mexico City, Mexico 582 Buenos Aires, Argentina 1395 Total 5737 I used a very simple model query like this: Select count(*), Sum(reputation),Location from Users Where Location LIKE 'key%' Group by Location Order by Sum(reputation) Then using some filters... if you want avoid this step you can us...