WhatsApp Trigger Node

Start a workflow whenever a WhatsApp message arrives — text, image, audio, video, location, button reply, order, and more. The foundation for building WhatsApp order bots, support automation, and OTP flows.

Prerequisites

  • A Meta Business account with a WhatsApp Business API phone number
  • A Meta App with the WhatsApp Business product added
  • A permanent System User access token (not a temporary token)
  • Meta App Review approval if you plan to message non-test users
For testing, you can use the sandbox numbers provided by Meta in the WhatsApp Business API setup wizard without going through App Review.

Setup

  1. Add a WhatsApp Trigger node to your workflow canvas
  2. Configure the Phone Number ID filter (leave blank to receive from all numbers)
  3. Select Message Types to listen to
  4. Toggle Ignore Own Messages to avoid loops
  5. Click Save — Nodebase generates a webhook URL and verify token
  6. Go to Meta Developer Portal → Your App → WhatsApp → Configuration → Webhooks
  7. Paste the webhook URL and the auto-generated verify token
  8. Subscribe to the messages field
  9. Click Verify and Save
The verify token is a UUID auto-generated by Nodebase. You can find it in the trigger node's configuration panel — copy it exactly as shown.

Configuration

FieldDescription
Phone Number IDFilter events to a specific phone number ID. Leave blank to receive from all.
Message TypesWhich message types trigger the workflow: text, image, audio, video, document, location, contacts, sticker, reaction, interactive, button, order, system.
Ignore Own MessagesSkip messages sent from your own phone number ID. Prevents trigger loops.

Supported Message Types

TypeKey Variables Available
text{{whatsappTrigger.text}}
image / audio / video / document{{whatsappTrigger.mediaId}}, {{whatsappTrigger.caption}}, {{whatsappTrigger.filename}}
location{{whatsappTrigger.latitude}}, {{whatsappTrigger.longitude}}, {{whatsappTrigger.locationName}}, {{whatsappTrigger.address}}
interactive (button_reply){{whatsappTrigger.buttonId}}, {{whatsappTrigger.buttonTitle}}
interactive (list_reply){{whatsappTrigger.listId}}, {{whatsappTrigger.listTitle}}
reaction{{whatsappTrigger.emoji}}, {{whatsappTrigger.reactedToMsgId}}
order{{whatsappTrigger.raw}} (full order object)
status event{{whatsappTrigger.status}} — "sent" / "delivered" / "read" / "failed"

Output Variables

VariableTypeDescriptionExample
{{whatsappTrigger.from}}stringSender phone number with country code"919876543210"
{{whatsappTrigger.senderName}}stringSender display name"Rahul Sharma"
{{whatsappTrigger.type}}stringMessage type"text"
{{whatsappTrigger.text}}stringMessage body (text messages only)"Track my order"
{{whatsappTrigger.mediaId}}stringMedia ID for image/audio/video/doc"1234567890"
{{whatsappTrigger.caption}}stringMedia caption"Product photo"
{{whatsappTrigger.filename}}stringDocument filename"invoice.pdf"
{{whatsappTrigger.latitude}}stringLocation latitude"19.0760"
{{whatsappTrigger.longitude}}stringLocation longitude"72.8777"
{{whatsappTrigger.locationName}}stringPlace name"Bandra Station"
{{whatsappTrigger.address}}stringLocation address"Bandra West, Mumbai"
{{whatsappTrigger.buttonId}}stringButton reply ID"track_order"
{{whatsappTrigger.buttonTitle}}stringButton label clicked"Track Order"
{{whatsappTrigger.listId}}stringList reply row ID"size_m"
{{whatsappTrigger.listTitle}}stringList reply row title"Medium"
{{whatsappTrigger.emoji}}stringReaction emoji"❤️"
{{whatsappTrigger.reactedToMsgId}}stringID of message that was reacted to"wamid.abcd1234"
{{whatsappTrigger.messageId}}stringUnique WhatsApp message ID"wamid.HBgNOTE..."
{{whatsappTrigger.timestamp}}stringUnix timestamp of message"1712051400"
{{whatsappTrigger.phoneNumberId}}stringYour phone number ID"107900725821067"
{{whatsappTrigger.eventType}}string"message" or "message_status""message"
{{whatsappTrigger.status}}stringDelivery status (status events only)"delivered"
{{whatsappTrigger.raw}}objectFull raw webhook payload{ ... }

Complete Workflow Examples

WhatsApp Order Tracking Bot

Use case: Customer types an order ID on WhatsApp and receives live tracking status.

textWorkflow
WhatsApp Trigger (messageTypes: text)
→ Shiprocket — Track Shipment
    awbCode: {{whatsappTrigger.text}}
→ WhatsApp — Send Message
    to:      {{whatsappTrigger.from}}
    message: "Order status: {{shiprocket.current_status}}
              Last update: {{shiprocket.tracking_data.etd}}"

Customer Support — Image Complaint

Use case: When a customer sends a product image (e.g. damaged item), log it and notify the support team.

textWorkflow
WhatsApp Trigger (messageTypes: image)
→ Google Sheets — Append Row
    spreadsheetId: {{env.COMPLAINTS_SHEET_ID}}
    values:
      - from:    {{whatsappTrigger.from}}
      - name:    {{whatsappTrigger.senderName}}
      - mediaId: {{whatsappTrigger.mediaId}}
      - caption: {{whatsappTrigger.caption}}
      - time:    {{whatsappTrigger.timestamp}}
→ Slack — Send Message
    channel: #support
    text:    "New complaint from {{whatsappTrigger.senderName}} ({{whatsappTrigger.from}}):
              {{whatsappTrigger.caption}}"
→ WhatsApp — Send Message
    to:      {{whatsappTrigger.from}}
    message: "Hi {{whatsappTrigger.senderName}}, we've received your complaint
              and will respond within 24 hours."

Common Issues & Solutions

IssueCauseSolution
Webhook verification failsWrong verify token entered in Meta portalCopy the verify token exactly from the Nodebase node panel — no extra spaces
No events receivedmessages field not subscribed in Meta portalGo to App → WhatsApp → Configuration → Webhooks and subscribe to messages
{{whatsappTrigger.text}} is emptyMessage is not a text typeCheck {{whatsappTrigger.type}} first with If/Else before reading .text
Trigger fires for own sent messagesIgnore Own Messages is offEnable Ignore Own Messages in the node configuration
  • WhatsApp — send replies, templates, and media back to the user
  • If / Else — branch on message type or content
  • Shiprocket — look up order tracking from the message text
  • MSG91 — send OTP or SMS in addition to WhatsApp
  • AI Nodes — build intelligent chatbot responses using the message text