Interface MessageReceivedInteractive

Tap metadata for an inbound interactive message (type: "interactive").

id is the id you set on the reply button or list row when sending; title is the label the customer saw. Route on id — title is human-facing and changes when you translate your button labels.

nfm_reply carries a WhatsApp Flow response, where id holds the raw response_json string rather than an id you chose. button is a tap on a legacy template quick-reply button.

product means the customer shared a single product from your catalog: id holds the product's retailer_id, title its name, and product the full details.

interface MessageReceivedInteractive {
    id: null | string;
    product?: MessageReceivedInteractiveProduct;
    title: null | string;
    type: "button" | "product" | "button_reply" | "list_reply" | "nfm_reply";
}

Properties

Properties

id: null | string

Present when type is "product".

title: null | string
type: "button" | "product" | "button_reply" | "list_reply" | "nfm_reply"