This page describes how to use Dialogflow's Actions on Google integration to test your Dialogflow agent in the Actions on Google simulator.
Enable the Actions on Google integration
To enable the Actions on Google integration:
Click on Integrations in the left menu. If you don't see the menu, click the menu menu button in the upper left corner.
Click on the Google Assistant integration to open the settings.
Specify the intent to trigger when the Google Assistant invokes your app by name. The Default Welcome Intent is configured automatically; however, you can specify another intent by entering a different one in the Explicit invocation field.
Click Test. Actions on Google automatically updates with any changes you made to your Dialogflow agent.
Click Continue to see how your Dialogflow agent works with the Google Assistant in the Actions on Google simulator.
Use the Actions simulator
The Actions console is where you manage all of the information, deployment, and configuration of your actions. In this case, we are building an app for the Google Assistant that consists of multiple actions and is powered by Dialogflow.
The left panel has information on your actions, like analytics, an overview of information, and how to deploy. The center is where you can talk to and test your app for Google Assistant. The right panel has debugging information on the current conversation and tools to test different situations. You can read more on how to use the Actions console on the Actions on Google developer site.
To test your Assistant app, click the text box that says "Talk to my test app" and press enter. The Google Assistant hands off the conversation to your app by saying "Okay. Let's get the test version of my test app." Then, your Dialogflow agent's Default Welcome intent will be matched, and the resulting response is sent to the Assistant.
After the welcome intent is matched, the user's next query is matched against your agent's intents, just like in the Dialogflow simulator. For instance, if you have an intent that captures when a user asks for your agent's name, when asked "What's your name?", the Actions on Google simulator would look like this:
Work with Actions on Google rich responses
To use a basic card in your response, do the following:
In the Dialogflow console, click the plus add next to Intents in the left menu.
Name the intent (ex. BasicCard).
Add the following Training Phrase:
show me a basic card
In the Responses section, switch to the Google Assistant tab and click Add Responses.
From the list, choose Simple Response. Actions on Google requires a simple response (text and/or voice only) for each response.
In the simple response add the following:
This is a basic card:
Click Add Responses again and select Basic Card.
Add the following information to the fields:
Image accessibility text
Build natural and rich conversational experiences
This is a basic card!
Click the Save button.
Go back to the Actions simulator and enter "Show me a basic card".
If you have any questions or thoughts, let us know on the Dialogflow Google Plus Community. We'd love to hear from you!
You might also want to check out: