Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RichResponse

Class for initializing and constructing Rich Responses with chainable interface.

Hierarchy

Implements

Constructors

constructor

Properties

Optional items

A list of UI elements which compose the response The items must meet the following requirements:

  1. The first item must be a SimpleResponse
  2. At most two SimpleResponse
  3. At most one card (e.g. BasicCard or StructuredResponse or MediaResponse
  4. Cards may not be used if an actions.intent.OPTION intent is used ie ListSelect or CarouselSelect

Optional linkOutSuggestion

An additional suggestion chip that can link out to the associated app or site.

Optional suggestions

A list of suggested replies. These will always appear at the end of the response. If used in a FinalResponse, they will be ignored.

Methods

add

  • Add a RichResponse item

    Parameters

    Returns this

addSuggestion

  • addSuggestion(...suggestions: (string | Suggestions)[]): this
  • Adds a single suggestion or list of suggestions to list of items.

    Parameters

    Returns this

Generated using TypeDoc