Deploy a Google Action

To deploy your scenario from BotTalk to Google Assistant you need to create an account on Dialogflow. Dialogflow is owned by Google and is essentially the counterpart of Amazon Alexa Console.

You can either register an account here or log in with your existing Google account:

62C83530-8819-408E-A850-D1CC936AF44F

After you create an account, your Dialogflow dashboard will look something like that:

DA393217-826B-4BD6-A97A-3C9F59C13949

Go ahead and Create Agent by clicking the link the top left of the menu. You will then need to provide AgentName that should not contain any whitespaces and choose the basic settings, like language and location. Please choose the same language you’ve chosen in BotTalk when you created your scenario, in our case it will be English:

A024D9CA-2A86-4607-861C-9C721C40DDAD

Click Create and wait for the Agent to be created. It could take couple of minutes:

11C7A9ED-04CC-4776-B6DE-C32F6D8FEA7A

After it’s done you’ll see the following screen:

67C7FFD0-2D3A-4EA6-9F81-2B686FC53936

Now head back to BotTalk, choose you scenario and click on the Deploy tab. From there click on the red button Download export file from the Google Assistant section:

33B992FD-6946-439D-8D39-180774064E7D

Save the zip file on your computer and go back to Dialogflow. There click the settings icon next to the Agent name (marked with the red arrow on the screenshot):

Screen-Shot-2018-07-11-at-5.43.32-PM

In the Settings go to the Export and Import tab and click on the Restore from Zip button:

C6DE8DFC-0349-4E44-8438-F0AB64D88DE9

In the popup window choose the file you’ve just downloaded from BotTalk:

AD56CBC9-CE60-4F43-A4E5-21309BC8E083

Type in RESTORE in the text field and click RESTORE button:

7A80FA0C-2709-40DF-8E9C-3A5B5589C58C

You’ll get a green notification in the bottom right corner of the screen:

6978EAA0-56CA-434F-B290-3D0D4D30EE56

You can now close the popup window. You’ve successfully deployed your scenario to Dialogflow!


Testing Google Action on Dialogflow

In order to test your freshly created Google Action head to the Integrations section of the menu:

40832675-85E6-45E7-A1E7-4A314CBE2789

Click on the Integration Settings link and the popup window will appear:

BE195098-B8D1-4586-A39D-E0A65EB2AD85

From there click on the TEST button at the bottom of the window. NOTE: If after the click a new browser tab is opened and instantly closed, you would need to close that popup window and click on the Integration Settings link once again. It’s a known Dialogflow bug =(

This is how the Simulator of Google Actions looks like:

0AFB1A47-6C08-48ED-8159-CB51741182D5

You can just go ahead and click enter in the input field. That will launch the test version of your Google Action.

Congratulations, you’ve just created your first Google Action!

Now that was easy, wasn’t it? Are you proud of yourself? Do you want to show it to your friend and colleagues? You will learn how to do that in the next section!