Actions on Google intents

Smart displays and speakers introduce two new types of intent:

  1. No input: when the user doesn't respond within a certain period of time.
  2. Cancelled input: when the user wants to end the interaction early.

Handling these intents allows you to provide a custom prompt to re-engage the user, and to gracefully end the conversation, respectively.

You can enable handling of these intents from the Actions on Google integrations settings page.

954

No input

When users don't respond to a prompt, the bot will receive this intent.

states:
    no_input_1:
        component: meya.input_pattern
        properties:
            text: "What's your favorite color?"
            pattern: "^(?!actions.intent.NO_INPUT).*$"
            output: color
            scope: user
            error_message: "Sorry, I couldn't hear you. Try again."
            # alternatively, you can set require_match: false
            # and handle no_match for more advanced use-cases
            require_match: true
    no_input_2:
        component: meya.text
        properties:
            text: "{{user.color}} is a nice color."

actions.intent.CANCEL

When users say a global cancel command such as quit, the bot will receive this intent, so you can respond with a final message.

triggers:
  - type: meya.keyword
    properties:
        ignorecase: true
        keyword: actions.intent.CANCEL
states:
    first:
        component: meya.text
        properties:
            text: "Sad to see you go."