dialogflow-cx-messenger-ts

    Class RichContentElement

    Represents a single element of rich content that can be sent in a response.

    Implements

    Index

    Constructors

    • Parameters

      • Optionaltype: string

        The type of the rich content element.

      • Optionaltitle: string

        The title of the rich content element.

      • Optionalsubtitle: string

        The subtitle of the rich content element.

      • Optionalimage: Image

        The image of the rich content element.

      • Optionalanchor: Anchor

        The anchor of the rich content element.

      • Optionaltext: Text

        The text of the rich content element.

      • OptionalrawUrl: string

        The raw URL of the rich content element.

      • OptionalaccessibilityText: string

        The accessibility text of the rich content element.

      • Optionalicon: Icon

        The icon of the rich content element.

      • Optionalmode: string

        The mode of the rich content element.

      • Optionalevent: Event

        The event of the rich content element.

      • Optionaloptions: Option[]

        The options of the rich content element.

      • Optionalcitations: Citation[]

        The citations of the rich content element.

      • Optionalhtml: string

        The HTML of the rich content element.

      Returns RichContentElement

    Properties

    accessibilityText?: string

    The accessibility text of the rich content element.

    anchor?: Anchor

    The anchor of the rich content element.

    citations?: Citation[]

    The citations of the rich content element.

    event?: Event

    The event of the rich content element.

    html?: string

    The HTML of the rich content element.

    icon?: Icon

    The icon of the rich content element.

    image?: Image

    The image of the rich content element.

    mode?: string

    The mode of the rich content element.

    options?: Option[]

    The options of the rich content element.

    rawUrl?: string

    The raw URL of the rich content element.

    subtitle?: string

    The subtitle of the rich content element.

    text?: Text

    The text of the rich content element.

    title?: string

    The title of the rich content element.

    type?: string

    The type of the rich content element.

    Methods

    • Converts this RichContentElement to JSON.

      Returns { [k: string]: unknown }

      JSON object

    MMNEPVFCICPMFPCPTTAAATR