n8nWhatsApp· 5 min read

Send WhatsApp interactive buttons and lists from n8n


Send them with the HTTP Request node. The WhatsApp Business Cloud node has no interactive message type, so POST Meta’s interactive payload to /<PHONE_NUMBER_ID>/messages yourself, authenticated with the WhatsApp credential you already have. The tap comes back through the WhatsApp Trigger as messages[0].interactive.button_reply.id for buttons, or list_reply.id for lists.

What the WhatsApp node can send

n8n’s node page lists three message operations: Send, Send and Wait for Response, and Send Template. Media has Upload, Download and Delete (WhatsApp Business Cloud node, accessed 2026-11-04). The Send operation’s message types in the node source are Audio, Contacts, Document, Image, Location, Text and Video (n8n source, master branch, read 2026-11-04). interactive is not among them. A later release could add it, so check your version’s Message Type dropdown.

Send and Wait for Response looks like the exception, because its Approval type lets users “approve or disapprove from within the message.” The source builds that as a type: 'text' message, with each option written into the body as a bold label and a link. The user taps a URL, and no button_reply comes back through the trigger.

The same source pins older Graph API versions: a v13.0 base URL constant and v19.0 in the request helper. For anything the node doesn’t cover, n8n’s own page says “you can use the HTTP Request node to call the service’s API”.

Set up the HTTP Request node

The WhatsApp API credential holds an access token and a Business Account ID (WhatsApp credentials, accessed 2026-11-04). In the credential source, its authenticate block adds Authorization: Bearer <access token> to each request, so the HTTP Request node can reuse it. The phone number ID isn’t in the credential, so it goes in the URL.

  1. Add an HTTP Request node. Set Method to POST and URL to https://graph.facebook.com/v26.0/PHONE_NUMBER_ID/messages.
  2. In Authentication, select Predefined Credential Type. In Credential Type, select WhatsApp API, then pick your existing credential (custom API operations, accessed 2026-11-04).
  3. If WhatsApp API isn’t in that list, choose Generic Credential Type, then Header Auth. Set Name to Authorization and Value to Bearer ACCESS_TOKEN.
  4. Turn on Send Body, choose JSON, and paste one of the payloads below.

n8n “recommends using the Predefined Credential Type option when it’s available” (HTTP Request node, accessed 2026-11-04). Its docs don’t list WhatsApp API there by name, which is why step 3 exists.

By default the node “returns success only when the response returns with a 2xx code”. A Meta error therefore fails the node. Turn on Never Error if you want an IF node to route on the error code instead.

Reply buttons payload

This payload is based on Meta’s reply buttons example, with the version set to v26.0 in the URL above (Interactive reply buttons, accessed 2026-11-04). The header id is a media ID. Replace it with one you uploaded from your number, as in the media upload guide, and the to value with your test recipient.

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "+16505551234",
  "type": "interactive",
  "interactive": {
    "type": "button",
    "header": { "type": "image", "image": { "id": "2762702990552401" } },
    "body": { "text": "Hi Pablo! Your gardening workshop is scheduled for 9am tomorrow. Use the buttons if you need to reschedule. Thank you!" },
    "footer": { "text": "Lucky Shrub: Your gateway to succulents!™" },
    "action": {
      "buttons": [
        { "type": "reply", "reply": { "id": "change-button", "title": "Change" } },
        { "type": "reply", "reply": { "id": "cancel-button", "title": "Cancel" } }
      ]
    }
  }
}

A success returns messages[0].id, a wamid. Keep it. The reply’s context.id points back to it, and that’s how you match a tap to the message that carried the buttons.

To answer the person who started the workflow, switch the JSON field to Expression mode first. Then replace the to value with {{ $json.messages[0].from }}. The HTTP Request page doesn’t document expressions inside the JSON body, so run it once with a fixed number first.

List message payload

A list opens a menu of rows behind one button. This is Meta’s example body as published (Interactive list messages, accessed 2026-11-04).

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "+16505551234",
  "type": "interactive",
  "interactive": {
    "type": "list",
    "header": { "type": "text", "text": "Support Topic" },
    "body": { "text": "Pick the issue closest to yours." },
    "footer": { "text": "Acme Support" },
    "action": {
      "button": "Choose Topic",
      "sections": [
        {
          "title": "Billing",
          "rows": [
            { "id": "billing_invoice", "title": "Invoice question", "description": "Charges or receipts" },
            { "id": "billing_refund", "title": "Request refund", "description": "Refund status and timing" }
          ]
        },
        {
          "title": "Account",
          "rows": [
            { "id": "account_reset", "title": "Reset password", "description": "Recover your login" }
          ]
        }
      ]
    }
  }
}

Meta’s pages give these limits for the two types. When titles come from your own data, trim them in a Set node before the HTTP Request.

Limit Reply buttons List
Choices up to 3 buttons up to 10 sections, 10 rows in total
Choice title 20 characters 24 characters (row), 24 (section)
Choice ID 256 characters 200 characters
Row description n/a 72 characters
Menu button text n/a 20 characters
Header text, image, video or document text only, 60 characters
Body 1,024 characters 4,096 characters
Footer 60 characters 60 characters

Interactive buttons and list limits covers the other interactive types.

The 24-hour window still applies

Interactive messages are not templates. You can send them only while a customer service window is open, and that window starts when the user messages or calls you (Pricing, accessed 2026-11-04). Outside it, the send fails with 131047, “More than 24 hours have passed since the recipient last replied to the sender number” (Error codes, accessed 2026-11-04).

In practice the workflow starts at the WhatsApp Trigger with the user’s message, and the buttons go out as the reply. To start the conversation yourself, send a template with the WhatsApp Send Template node. Error 131047 explains the window.

Read the tap in the WhatsApp Trigger

Subscribe the trigger to the Messages event. A tap arrives as a message of type interactive. This is the messages part of Meta’s button reply example (Interactive webhook reference, accessed 2026-11-04).

{
  "messages": [
    {
      "context": {
        "from": "15550783881",
        "id": "wamid.HBgLMTY1MDM4Nzk0MzkVAgARGBI3MEM2RUJFNkI0RENGQTVDRjUA"
      },
      "from": "16505551234",
      "id": "wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQTZBQzg0MzQ4QjRCM0NGNkVGOAA=",
      "timestamp": "1750025136",
      "type": "interactive",
      "interactive": {
        "type": "button_reply",
        "button_reply": {
          "id": "cancel-button",
          "title": "Cancel"
        }
      }
    }
  ]
}

Meta’s snippet starts at "messages":. The outer braces were added here so it parses. The trigger’s source emits one item per webhook change, set to that change’s value plus its field (WhatsApp Trigger source, read 2026-11-04). n8n’s docs don’t describe that output shape, so these paths come from the source.

Expression Value
{{ $json.messages[0].interactive.type }} button_reply or list_reply
{{ $json.messages[0].interactive.button_reply.id }} The button ID you set, such as cancel-button
{{ $json.messages[0].interactive.list_reply.id }} The row ID, such as billing_refund
{{ $json.messages[0].context.id }} The wamid of the message that carried the buttons
{{ $json.messages[0].from || $json.messages[0].from_user_id }} The sender, phone number or BSUID

Status updates reach the same trigger with statuses and no messages. Put an IF node first that checks {{ Boolean($json.messages) }}. Then Switch on button_reply.id or list_reply.id, one route per ID.

The sender falls back to from_user_id because users with WhatsApp usernames may arrive without from. To reply to a BSUID, send with recipient in place of to, as described in WhatsApp usernames and BSUIDs.

If nothing arrives, check the trigger setup. WhatsApp allows “a single webhook per app”, so switching between the test and production URLs overwrites the registered one. Meta also sends webhooks only to apps subscribed to the WhatsApp Business Account (WhatsApp Trigger, accessed 2026-11-04). WhatsApp Trigger setup and webhook not receiving on the production URL cover both.

If that’s not it, and a retried delivery runs the same tap twice, dedupe on messages[0].id as in the n8n idempotency pattern.

Z-API Omni team