send under the interactive key — the SDK ships with builders so you rarely construct the raw InteractiveInput by hand.
Reply buttons
Up to three buttons, each with an ID you’ll receive back on tap:interactive event:
Lists
Lists support up to ten rows grouped into sections. The builder is immutable — chain.section() to add content:
list_reply:
Product and product list
Single product — opens the catalog page:order inbound content type — see Events.
Flows
Launch a WhatsApp Flow (a structured form experience) with theflow helper:
nfm_reply:
CTA URL button
Send a message with one button that opens a link, such as a sign-in or checkout page, with thectaUrl helper. It requires @photon-ai/whatsapp-business 0.4.0 or later.
displayText is the button label, and WhatsApp limits it to 20 characters. When the recipient taps the button, WhatsApp opens url in the device’s default browser. The SDK has no inbound event for that tap.
Like flow, the helper also takes an optional header, such as { type: "text", text: "Your account" }, and an optional footer.
If you build the object yourself, give it a body, type: "cta_url" and action: { name: "cta_url", parameters: { displayText, url } }. The SDK sends displayText and url only when action.name is "cta_url".