Home Automation using Google Assistant + Dialogflow + Firebase + ESP8266/Wemos (Part 2)

Vishal Dubey
3 min readOct 28, 2017

--

In part 1 of the series, we have successfully created the app in Actions on Google console and linked it to a Dialogflow agent. Now, we will train our Dialogflow agent based on different ways, in which we will ask Google Assistant to switch on/off the bulb and add further information about our app in the Actions on Google console i.e the app’s description, invocation name, etc.. The YouTube video series can be found on my channel. Check it out here. Also, don’t forget to like, share and subscribe. :P

1. Setting up Google Assistant app in Actions on Google console (part 2):

  1. In the actions on google console, we now have actions linked with the dialogflow agent. Under App information click ADD.

2. There are few details that you have to fill in. Under Assistant app name give your app a suitable name and its pronunciation.

3. Under Details section, add the App introduction and choose a voice for your app from the available list of options. Give your app a short and a detailed description about its abilities and what all tasks it can perform.

4. Give your app some sample invocations. This tells the user how your app can be invoked by the Google Assistant. For eg. “Ok Google, talk to test app”. You can add upto 5 types of invocations.

5. Now we add some banner images and logos for the app under Images section. You can use the images I have added in the sample code.

6. Add developer name and email address under Contact Details.

7. Under Privacy and consent add some dummy links for Privacy policy and Terms of Service. For eg., www.example.com. You can update them later with proper links.

8. Fill in app category and other details under Additional information section and click on SAVE.

Your app is now completed with all the required details in actions on google console.

2. Setup agent in Dialogflow console (part 2):

  1. Open Dialogflow console and select your agent. To the right of the agent name, click on the Settings icon.

2. Click on Export and import. Select RESTORE FROM ZIP. Download the agent zip from here. Choose the downloaded file and write RESTORE in the textbox and click on RESTORE.

This will import all the needed data in the form of Intents and Entities required for our agent training and working.

The Dialogflow agent is now ready to accept your requests and respond to them. Next step is to write the webhook that takes care of the user request and pushes data to Firebase Realtime Database. See you in the next section!

--

--

Vishal Dubey

| Google Certified Developer |Intel Software Innovator | Full Stack Dev | React Native | IoT Enthusiast | Mentor | https://github.com/vishal-android-freak