Overview

The Google Business Messages (GBM) quick reply message consist of up to 13 Buttons that are attached to a regular text message.

Example Of GBM Quick Reply Message:

GBM Quick Reply Example

Quick Reply Container

The quick reply container holds all buttons that should be displayed with the message.

Properties

Property Name Description Type Required
type Must be "quickReplies". Identifies the element as an object of type quickreplies. Enum Y
itemsPerRow A value required by the system. Is not used in the GBM connector, but needs to be set. Can have a value of 1 to 8 Integer Y
replies Array of quick replies sent to the consumer.
Maximum number of buttons is 13.
Array(Button) Y

JSON Representation Card

{
  "type": "quickReplies",
  "itemsPerRow": 1,
  "replies": [Button, Button, ...Button]
}

Button

A reply button that will be display beneath the message.

Properties

Property Name Description Type Required
type Must be "button". Identifies the element as an object of type button. Enum Y
title The text of the button.
The text can not be longer than 25 characters.
String Y
click The click operations that should be executed when the customer clicks the button.
These click operations must contain at least one action which can be any action of the following types:
  • publishText
  • navigate
  • link

  • If an action of type navigate or link is added, a publishText action can additionaly be included in the click operation.
    ClickOperations Y

    JSON Representation

    {
      "type": "button",
      "title": "View Online",
      "click": ClickOperations
    }
    

    Full Template

    {
      "type": "quickReplies",
      "itemsPerRow": 1,
      "replies": [
        {
          "type": "button",
          "title": "View Here",
          "click": {
            "actions": [
              {
                "type": "publishText",
                "text": "view-here"
              }
            ]
          }
        },
        {
          "type": "button",
          "title": "View Online",
          "click": {
            "actions": [
              {
                "type": "publishText",
                "text": "viewed-online"
              },
              {
                "type": "link",
                "uri": "https://www.liveperson.com/resources/reports/great-ai-divide/"
              }
            ]
          }
        },
        {
          "type": "button",
          "title": "Not interested",
          "click": {
            "actions": [
              {
                "type": "publishText",
                "text": "stop-showing"
              }
            ]
          }
        },
        {
          "type": "button",
          "title": "View More Reports",
          "click": {
            "actions": [
              {
                "type": "link",
                "uri": "https://www.liveperson.com/resources/#all"
              }
            ]
          }
        }
      ]
    }