Writing interactive messages
Updated: Oct 30, 2026
Copy for LLM
An interactive message tells your AI agent when and how to send a rich message to a
customer, such as a carousel or a flow.
This guide explains how to write interactive messages and the data each component type
needs. It is not the API reference — for the endpoints, request and response
shapes, and field-level details, see the
Interactive messages API reference.
Note: Dark mode is not supported on this page right now. Some code samples are hard to read in dark mode, so use light mode while you follow this guide.
Provide data elements
You do not provide the fields of a component as structured data (e.g. JSON). When
you create an interactive message you set a
component_type and then write a free-form
instruction string. The instruction is where you tell the agent, in natural
language, both when to send the message and what to put in each field.For example, a
cta_url interactive message takes a body text, a button label, and a URL. A
perfectly valid instruction is just:If a user asks for a link to learn more about the Meta Quest, send them a
button with the body text "Click the link below", the button label "Meta Quest",
and the URL https://meta.com/quest
Notice that the URL is written into the sentence. There are no fields to fill
in — not for text, not for URLs, not for IDs. Everything the agent needs is in
that one
instruction string, written the way you would explain the message to a
colleague.Each section below covers one
component_type. Read its table as a checklist of
what your instruction has to mention, not as a set of fields to populate.The
component_type values on this page apply to interactive messages only. If you
also connect an external agent with an agent-to-agent connector, that setup uses a
separate response_type enum with its own values for similar components. The two
are separate APIs, and their values are not interchangeable.Sends a message with a body of text and a single tappable button that opens a URL
in the customer’s browser. Use this whenever you want to point the customer to a
web page — a product page, a booking link, a help article, and so on.
An optional media header (image or video) can be shown above the body, and an
optional footer line can appear beneath it.
Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
body text | Yes | Main message body shown above the button (1–1024 characters). |
button label | Yes | Text on the button; keep it short and action-oriented, e.g. “Shop Now” (1–20 characters). |
button URL | Yes | The HTTPS URL the button opens. |
header media URL | No | HTTPS URL of an image or video to display above the body. |
footer text | No | A short line under the body, e.g. a disclaimer (1–60 characters). |
image — Image message
Sends a standalone image, optionally with a caption. Use this to show a product
photo, a receipt, a map snapshot, or any other visual.
Point at the image from inside your
instruction, either by a publicly
accessible URL or by the ID of an image you have already uploaded. Write the
address out in the sentence — there is no URL field to put it in:If a user asks what the Meta Quest looks like, send them the image at
https://example.com/images/meta-quest.png with the caption "Meta Quest 3S"
Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
image URL | Yes* | Publicly accessible URL of the image. |
image ID | Yes* | ID of a previously uploaded image. |
body text | No | Optional caption shown with the image. |
* Give either an image URL or an image ID, not both.
video — Video message
Sends a standalone video, optionally with a caption. Use this to share a product
demo, a how-to clip, or a short tutorial.
Point at the video from inside your
instruction, the same way as for an image:If a user asks how to set up the Meta Quest, send them the video at
https://example.com/videos/meta-quest-setup.mp4 with the caption "Setting up
your Meta Quest 3S"
The agent picks the video URL each time it sends the message, so one
video
interactive message can serve many videos — for example, a list of videos in
your instruction, or a URL returned by one of your agent’s tools.Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
video URL | Yes* | HTTPS URL of an MP4 or 3GPP file (H.264 video, AAC audio) that the customer’s device can reach, up to 16 MB. |
video ID | Yes* | Numeric ID of a video you uploaded to WhatsApp. Uploaded media expires 30 days after upload, so prefer a URL. |
caption | No | Text shown with the video (1–1024 characters). |
* Give either a video URL or a video ID, not both.
document — Document message
Sends a document file, such as a PDF, optionally with a filename and a caption.
Use this to share invoices, receipts, menus, or any other file the customer
needs. Point at the file from inside your
instruction by its publicly
accessible HTTPS URL — there is no URL field to put it in:If a user asks for their invoice, send them the document at
https://example.com/files/invoice.pdf with the caption "Your invoice for
October"
Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
document URL | Yes | Publicly accessible HTTPS URL of the file to send. |
filename | No | Filename shown to the customer, e.g. “invoice.pdf” (up to 240 characters). Omit it to let WhatsApp infer one from the URL. |
caption | No | Text shown alongside the document (1–1024 characters). |
interactive_list — Interactive list
Sends a message with a button that, when tapped, opens a list of selectable
options (rows). Use this when you want the customer to pick from a set of choices
— shipping options, appointment slots, product categories, etc. The list supports
between 1 and 10 rows.
Each row has a stable identifier (returned to you when the customer taps it), a
title, and an optional line of secondary text.
Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
body text | Yes | Main message body shown above the button that reveals the list (1–4096 characters). |
button text | Yes | Label on the button that opens the list, e.g. “View Options” (1–20 characters). |
rows | Yes | 1–10 selectable options. Each row has the fields below. |
Each row takes:
| Row data element | Required | Description |
|---|---|---|
id | Yes | Stable, semantic identifier returned when the customer taps the row, e.g. priority_express (1–188 characters). |
title | Yes | The row title shown to the customer. Keep titles distinct (1–24 characters). |
description | No | Optional secondary text shown under the title (1–72 characters). |
Sends a message with a body of text and up to three tappable buttons, each of
which sends a reply back to the agent when the customer taps it. Use this when
you want the customer to pick from a small set of choices and continue the
conversation — for example “Track order”, “Talk to an agent”, or “Something
else”.
Unlike
interactive_list, you do not supply an identifier for each button — the
button label is the reply, and the agent receives it when the customer taps.Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
body text | Yes | Main message body shown above the buttons (1–1024 characters). |
buttons | Yes | 1–3 reply buttons. Each button has the field below. |
Each button takes:
| Button data element | Required | Description |
|---|---|---|
title | Yes | Label on the button; keep it short and action-oriented, e.g. “Track order” (1–20 characters). Each button’s title must be unique. |
location — Location message
Sends a pin for a specific geographic location. Use this to share where a store,
event, or pickup point is. Coordinates should come from a verified source such as
a tool response — the agent is instructed never to fabricate them.
Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
latitude | Yes | Latitude of the location, between -90 and 90. |
longitude | Yes | Longitude of the location, between -180 and 180. |
name | No | Name of the location or business, e.g. a store name. |
address | No | Street address of the location. |
location_request — Location request
Sends a message that asks the customer to share their own location. Use this when
you need the customer’s whereabouts — for example to find the nearest store or to
arrange a delivery or pickup. It renders as a prompt with a button that lets the
customer send their location back to you.
Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
body text | Yes | The text shown alongside the request for the customer’s location (1–1024 characters). |
carousel_url — Carousel with URL buttons
Sends a horizontally scrollable set of cards, where each card has an image, a
caption, and a button that opens a URL. Use this to showcase several products or
links side by side. A carousel has between 2 and 10 cards, and every card in the
carousel is the same shape.
Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
body text | Yes | Overall message text shown with the carousel (1–1024 characters). |
cards | Yes | 2–10 cards. Each card has the fields below. |
Each card takes:
| Card data element | Required | Description |
|---|---|---|
image URL | Yes | Publicly accessible URL of the card’s image. A carousel card takes a URL only — an uploaded image ID is not supported here, unlike image. |
card text | Yes | Caption text shown on the card (1–160 characters). |
button URL | Yes | The URL the card’s button opens. |
button display text | Yes | Label shown on the card’s button (1–20 characters). |
The cards go in the
instruction text like everything else — there is no card
list to populate and no field to put each image URL in. Describe the set in the
sentence, and let the agent build one card per result:When a shopper asks to see our Quest range, send a carousel with one card per
model. For each card use the product image URL from the catalog, the model name
and price as the card text, "View" as the button label, and the product page
URL as the button URL.
carousel_quick_reply — Carousel with quick-reply buttons
Like
carousel_url, but each card’s button is a quick-reply button that sends a
reply back to the agent instead of opening a URL. Use this when you want the
customer to pick a card and continue the conversation rather than leave the chat.
A carousel has between 2 and 10 cards.Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
body text | Yes | Overall message text shown with the carousel (1–1024 characters). |
cards | Yes | 2–10 cards. Each card has the fields below. |
Each card takes:
| Card data element | Required | Description |
|---|---|---|
image URL | Yes | Publicly accessible URL of the card’s image. A carousel card takes a URL only — an uploaded image ID is not supported here, unlike image. |
card text | Yes | Caption text shown on the card (1–160 characters). |
button text | Yes | Label on the card’s quick-reply button (1–20 characters). |
As with
carousel_url, describe the cards in the instruction text rather than
looking for a card list to fill in, and write each image URL out in the sentence.carousel_multi_quick_reply — Carousel with up to two quick-reply buttons per card
Like
carousel_quick_reply, but each card offers one or two quick-reply buttons
that send a reply back to the agent instead of opening a URL. Use this when each
card needs more than one action — for example “Add to basket” and “Show similar”
on every product card. A carousel has between 2 and 10 cards, and every card in
the carousel must use the same button count.When the customer taps a button, the agent receives the button text, a colon,
and the card text (for example “Add to basket: Wide High Jeans”), so name what
each button should do in your
instruction and keep each card text unique per
card — for example the product title, colour, and price.Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
body text | Yes | Overall message text shown with the carousel (1–1024 characters). |
cards | Yes | 2–10 cards. Each card has the fields below. |
Each card takes:
| Card data element | Required | Description |
|---|---|---|
image URL | Yes | Publicly accessible URL of the card’s image. A carousel card takes a URL only — an uploaded image ID is not supported here, unlike image. |
card text | Yes | Caption text shown on the card (1–160 characters). |
buttons | Yes | 1–2 quick-reply buttons. Each button has the field below. |
Each button takes:
| Button data element | Required | Description |
|---|---|---|
button text | Yes | Label on the button (1–20 characters). |
As with
carousel_quick_reply, describe the cards in the instruction text
rather than looking for a card list to fill in, and write each image URL out in
the sentence.multi_product — Product list
Sends a list of products drawn from the Meta catalog connected to your
WhatsApp number. Use this to show best sellers or search results side by side.
This type requires a Meta catalog — without one connected to the WhatsApp
number, the message cannot be sent. The agent never supplies the catalog
itself; it only names the products, and the catalog is resolved at send time.
Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
header text | Yes | Short title shown above the product list, e.g. “Our best sellers” (1–60 characters). |
body text | Yes | Main message body shown above the button that opens the product list (1–1024 characters). |
product retailer IDs | Yes | 1–30 retailer IDs (SKUs) of the catalog products to show. Write them out in the sentence — there is no list to fill in. |
footer text | No | A short line under the body, e.g. a disclaimer (1–60 characters). |
catalog_message — Catalog
Sends a message that opens the Meta catalog connected to your WhatsApp
number, letting the customer browse the full catalog. This type requires a
Meta catalog — without one connected to the WhatsApp number, the message
cannot be sent. Unlike
multi_product, you do not pick products; the message
opens the catalog itself.Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
body text | Yes | Main message body shown with the catalog (1–1024 characters). |
footer text | No | A short line under the body (1–60 characters). |
thumbnail product retailer ID | No | Retailer ID (SKU) of the catalog product shown as the message thumbnail. |
flow — WhatsApp Flow
Sends a configured WhatsApp Flow — a multi-screen, interactive experience such as
an appointment booking, a lead form, or a survey. Unlike the other component
types, a
flow interactive message is tied to a Flow you have already configured, referenced
by its flow_id. This is the one data element that is supplied as a
structured field on the interactive message itself: set flow_id when creating a flow interactive message
(it is required for flow and not supported for any other type).Beyond the
flow_id, the agent populates a short call-to-action label, a body of
text introducing the flow, and the initial data used to pre-fill the flow’s first
screen. As with every other type, you describe these in your free-form
instruction — you do not supply them as JSON.Data elements to describe in your
instruction| Data element | Required | Description |
|---|---|---|
flow_id | Yes | The numeric ID of the WhatsApp Flow to send (supplied as a field on the interactive message, not in the instruction string). |
cta | Yes | Short, action-oriented button label for the flow message, e.g. “Book Now” (max 20 characters). |
body text | Yes | Message body shown above the button; briefly explain what the customer will do after tapping. |
data | No | Values used to pre-fill the first screen of the flow. The available keys are defined by the flow’s own configuration. |