n8n

How to Automate WhatsApp Chat Replies?

Give customers a fast reply on WhatsApp while also confirming your webhook setup. The flow returns the Meta verification code and sends an instant echo message back to the sender. It fits support teams and small businesses that want quick first responses and a simple test harness.

Two webhook nodes share the same URL. A GET request hits Verify and the Respond to Webhook node sends back the hub challenge text. A POST request hits Respond and carries message updates from Meta. An If node checks if the payload includes a user message. When true, the WhatsApp node sends a custom text that repeats what the user wrote. Status updates are ignored so only real messages trigger replies.

Set the WhatsApp credential with your access token and phone number ID, then point both webhooks to the same path with the right methods. Expect replies in seconds and fewer missed chats, plus a clear way to validate parsing before you build more logic. Use it for after hours auto replies, internal QA, or a safe staging bot.

What are the key features?

  • GET webhook for verification that returns the hub challenge text using a Respond to Webhook node
  • POST webhook on the same URL to receive WhatsApp message and status events from Meta
  • If check filters payloads and only continues when a real user message exists
  • WhatsApp send action echoes the incoming text back to the original sender
  • Shared URL path for GET and POST keeps configuration simple and reliable
  • Loose type validation in the condition helps handle varying JSON shapes from Meta

What are the benefits?

  • Reduce first reply time from minutes to under 10 seconds
  • Automate 100 percent of initial WhatsApp acknowledgments
  • Handle up to 10 times more incoming chats without extra staff
  • Cut setup friction by verifying the webhook in one step
  • Improve reply consistency so every new message gets a response

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with WhatsApp Business Platform and Meta Webhooks. See the Tools Required section above for links to create accounts with these services.
  3. In n8n, open the Verify webhook node. Confirm the HTTP Method is GET and note the path. This path will be reused for the POST webhook.
  4. Open the Respond webhook node. Set the HTTP Method to POST and set the exact same path used by the Verify node.
  5. Open the Respond to Webhook node and keep the response text set to the hub challenge value. This is what Meta expects during webhook validation.
  6. Double click the WhatsApp send node. In the Credential to connect with field, click Create new credential and follow the on screen instructions to connect your WhatsApp account using your access token and phone number ID. Give the credential a clear name.
  7. In your Meta for Developers app, add a WhatsApp product and enable webhooks. Set the Callback URL to your n8n webhook URL using the shared path. Complete the verification and confirm Meta receives the challenge response.
  8. In the Meta webhooks settings, subscribe to message related fields for WhatsApp. Save changes and ensure the app is in the correct mode for your testing.
  9. Send a WhatsApp message to the connected number. In n8n, open Executions and confirm the flow runs. You should receive an echo message in a few seconds.
  10. If verification fails, check that both webhooks use the same path and the correct methods. If no echo arrives, review the If node condition and confirm your message is not just a status update. Validate your access token, phone number ID, and app permissions.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Meta Webhooks

Sign up

Free: $0 — Meta Webhooks themselves are free; WhatsApp service (non‑template) messages are free since Nov 1, 2024, and utility template messages are free within the 24‑hour customer service window since Apr 1, 2025; other messages billed per current rate cards/per‑message pricing.

WhatsApp Business Platform

Sign up

Service conversations: $0 (unlimited; effective Nov 1, 2024)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.