SuggestionResponse

  • Suggestion responses are generated when a user interacts with a suggested reply or action.

  • The JSON representation of a suggestion response includes postbackData, text, and type.

  • postbackData holds agent-specified data, text is the visible text the user tapped, and type indicates the suggestion's category.

The response generated when a user taps a suggested reply or action.

JSON representation
{
  "postbackData": string,
  "text": string,
  "type": enum (SuggestionResponse.SuggestionType)
}
Fields
postbackData

string

The postback data specified by the agent when the agent sent the suggestion to the user.

text

string

The user-visible text of the suggestion that the user tapped.

type

enum (SuggestionResponse.SuggestionType)

The type of suggestion which was responded to.