Build Apps for Google Home using Dialogflow
Dialogflow formerly knows as api.ai is an amazing tool for building conversational experiences. Google Home is a smart device that uses Google Assistant to get stuff done using voice commands or conversations.
In this tutorial, we will be creating a simple app on Dialogflow and try to interact with is using a Google Assistant-enabled device. As this our first tutorial on Dialogflow, we will build a very basic application that won’t be able to do much except answer a few questions.
The main goal of this article is to introduce you to building conversational apps for google assistant.
Setup Dialogflow Account
Go to dialogflow.com and sign in with your Google account. Once you are done, navigate to the console. Which looks something like below.
Create a New Agent
Now, intents in Dialogflow are something that will make your application understand what the end-user is requesting. What is the user’s intent or what does the user want to know about?
An intent comprises of Contexts, Events, Training Phrases, Actions, Responses, and Fulfillment. Right now for the sake of simplicity, we will only be using Training Phrases and Responses.
So we will add training phrases like…
Make sure you click the save button.
Test our app on the Simulator
We can test our application using the simulator provided. To do so, click on Integrations, next click on Google Assistant. Keep the options to default and click Test.
By default the name of your app is The Test App. We can invoke our App by asking google assistantOk Google, Talk to the test App.
Test our app on a Google Assistant powered device
We can also try out our app on a Google Assistant powered device like an Android Phone or Google Home. The only thing we need to take care of is that the Google Assistant on your device should be signed in using the same Google Account that you have used for integration.
Watch the video below to see me try it out!
This was just the basics of what we can do with Dialogflow combined with Google Assistant. In our further tutorials, we will cover more advanced concepts like Actions, Entities and talking to a back-end service. You can Subscribe to our newsletter to get notified.
Leave a Comment