Action API object

Implements

Constructors

Properties

Constructors

  • Builds a catalog component for an Interactive message

    Parameters

    • Optionalthumbnail: Product

      The thumbnail product to be shown in the catalog. If not provided, the first product will be used (or so says the docs, but it doesn't work).

    Returns ActionCatalog

    Seems like the API throws an error if you try to send a catalog message without a thumbnail, but the signature will keep the optional parameter in case WhatsApp decides to make their API work as expected :)

Properties

name: "catalog_message"

The name of the component

parameters?: {
    thumbnail_product_retailer_id?: string;
}

The thumbnail product to be shown in the catalog