Routine suggestions

Google Assistant Routines execute multiple Actions with a single command, perfect for those times when users wake up in the morning, head out of the house, get ready for bed or many of the other tasks they perform throughout the day. After someone engages with your Action, offer a Routine suggestion that lets users add your Action to their Routines.

Set up Routine suggestions

To configure one of your Action's intents for Routine suggestions, follow these instructions:

Prepare a triggering intent

Configure one of your Action's intents as a triggering intent. This intent is added to users' Routines when they follow your suggestion. When a user runs their Routine, the intent triggers and the Routine continues from there.

To define a triggering intent in Dialogflow, do the following:

  1. In the Dialogflow Console, click on Integrations.
  2. Under the Google Assistant section, click on Integration Settings.
  3. Under Discovery > Implicit invocation, click on Add intent and select your triggering intent if it's not already there.
  4. Turn on Auto-preview changes if it's not already enabled.
  5. Click Close.

In the Actions SDK, define your triggering intent in the Action package.

Enable updates

To turn on Routine suggestions for your triggering intent, do the following:

  1. In the Actions console, navigate to Develop > Actions.
  2. Select your triggering intent. If your intent doesn't appear in the list, make sure it's configured as a triggering intent and Dialogflow's Assistant integration is set to auto-preview changes.
  3. Scroll down to the User engagement section and turn on Would you like to offer routine suggestions to users.
  4. Enter a Content title.
  5. Click Save.

You've now configured your Action to suggest your intent for a Routine.

Test Routine suggestions

Test your Routine suggestions using a mobile device with the Google Assistant by following these steps:

  1. Make sure you're using the Google account that you used to build your Action.
  2. Invoke your Action.
  3. Interact with your Action, then end the conversation.
  4. Select the Routine suggestion chip. If you don't see this chip, try using your Action again but invoke different intents throughout the conversation.
  5. Follow the prompts to add the Action to a Routine.
  6. Start the Routine on your device, and make sure your Action is invoked.