Dialogflow and Actions on Google

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:

  1. Click on Integrations in the left menu. If you don't see the menu, click the menu menu button in the upper left corner.

  2. Click on the Google Assistant integration to open the settings.

  3. 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.

  4. Click Test. Actions on Google automatically updates with any changes you made to your Dialogflow agent.

  5. 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

Dialogflow also works with the Assistant's rich responses, like basic cards, lists, and more.

To use a basic card in your response, do the following:

  1. In the Dialogflow console, click the plus add next to Intents in the left menu.

  2. Name the intent (ex. BasicCard).

  3. Add the following Training Phrase:

    • show me a basic card
  4. In the Responses section, switch to the Google Assistant tab and click Add Responses.

  5. From the list, choose Simple Response. Actions on Google requires a simple response (text and/or voice only) for each response.

  6. In the simple response add the following:

    • This is a basic card:

  7. Click Add Responses again and select Basic Card.

  8. Add the following information to the fields:

    Image URL https://blog.dialogflow.com/images/logo.svg
    Image accessibility text Dialogflow logo
    Title Dialogflow
    Subtitle Build natural and rich conversational experiences
    Text This is a basic card!
    Weblink title Dialogflow website
    Weblink https://dialogflow.com
  9. Click the Save button.

  10. Go back to the Actions simulator and enter "Show me a basic card".

Next steps

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: