Skip to main content
Interactive messages let the recipient tap a button, pick from a list, launch a WhatsApp Flow, or open a link instead of typing a reply. Pass the result to 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:
When the user taps, you’ll receive an interactive event:

Lists

Lists support up to ten rows grouped into sections. The builder is immutable — chain .section() to add content:
List taps arrive as list_reply:

Product and product list

Single product — opens the catalog page:
Multi-product, grouped by category:
Orders placed through a product message arrive as an order inbound content type — see Events.

Flows

Launch a WhatsApp Flow (a structured form experience) with the flow helper:
Flow submissions arrive as nfm_reply:

CTA URL button

Send a message with one button that opens a link, such as a sign-in or checkout page, with the ctaUrl 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".

Building raw interactive messages

If you need a shape the builders don’t cover, pass a plain InteractiveInput:
The builders are thin wrappers — they exist to catch typos and make common shapes ergonomic, not to restrict what you can send.