WhatsApp Input Node failure

Hi There,

I have WhatsApp input node to an AI agent and generated App through facebook developer. When I send test message from https://developers.facebook.com/apps test number it sends message to my WhatsApp number but when I reply message it should trigger my workflow WhatsApp Get message node (which is properly set with API key) but node doesn’t get message sent to same test number.
Can anyone guide me please

Hey @Farrukh_Hameed, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@Tanzeela_Tauseef, @edumats, @tridi - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

@Farrukh_Hameed

This issue is almost certainly because you have set up the outbound part (sending messages via API) but haven’t correctly configured the inbound part (receiving messages via Webhooks).

In the WhatsApp/Meta ecosystem, sending a message is an API call you make to them. However, when a user replies, Meta doesn’t “give” you the message when you ask; instead, they push a notification to a URL that you provide. This is called a Webhook.

If you are trying to “Get” messages using a node that polls, it often fails or is inefficient. The standard way is to use a Webhook Node.

  1. Add a Webhook Node: In your n8n workflow, add a Webhook node at the very beginning.
  2. Configure the Node:
    • HTTP Method: Set this to POST.
    • Path: Give it a unique name (e.g., whatsapp-webhook).
    • Respond to Webhook: Set this to Immediately (Meta requires a 200 OK response very quickly, or they will keep retrying and eventually disable your webhook).
  3. Get your URL:
    • You will see two URLs: Test URL and Production URL.
    • While building/testing: Copy the Test URL. You must click “Listen for event” in n8n before sending the message from your phone, otherwise, the URL is “inactive” and won’t catch anything.
    • When finished: Use the Production URL and ensure the workflow is Activated or Published.

Now you have to tell Meta where to send the incoming messages.

  1. Go to your Meta Developer Dashboard.
  2. Navigate to WhatsApp > Configuration.
  3. Find the Webhook section and click Edit.
  4. Callback URL: Paste your n8n Test URL here.
  5. Verify Token: This is a string of your choice (e.g., my_secret_token_123). You must also add this to your n8n Webhook node logic (usually via an If node or by checking the query parameters) to ensure only Meta can trigger your workflow.
    • Note: Meta sends a GET request with a hub.challenge parameter to verify the URL. For the initial setup, your n8n webhook might need to be temporarily configured to handle GET and return that challenge, or use a specific verification logic.
  6. Crucial Step (Subscription): Once the URL is verified, look for the Webhook Fields section below the configuration. You must click Manage and subscribe to the messages field. If you don’t subscribe to messages, Meta will never send you the text content of a reply.

@Farrukh_Hameed The “API key” detail is worth checking first. n8n uses API-key credentials for the WhatsApp Business Cloud action node, but OAuth2 credentials for the WhatsApp Trigger. Being able to send a message doesn’t confirm that the receiving trigger is configured.

If you’re using the built-in WhatsApp Trigger, I’d keep that rather than add a generic Webhook node and build the verification handshake yourself:

  1. Set the trigger event to Messages. Its credential should use the App ID as Client ID and App Secret as Client Secret, from the same Meta app you’re testing.
  2. Check which callback URL Meta currently has registered. n8n documents that WhatsApp allows one webhook per app: switching between test and production can overwrite that registration. The test URL needs an active listening session; the production URL needs a published workflow. If this app already serves a live workflow, use a separate test app rather than switch its callback.
  3. In that isolated test app, connect the trigger only to an Edit Fields node, with no AI agent or outgoing messages. Start a test listening session, then send one reply from your phone and inspect the trigger’s output in the editor. A saved execution is another option if saving manual executions is enabled. Confirm the output contains your reply before reconnecting the agent.

n8n’s credential guide⁠ and the trigger’s test/production warning⁠ cover those two differences.

What is the exact name of your first node, and does its credential ask for an Access Token or a Client ID and Client Secret? Just the field names are enough—don’t post their values.

Two Meta-side things that catch a lot of people:

  1. In your Meta app under WhatsApp → Configuration, check that the webhook is subscribed to the messages field.

  2. If you ever used ‘Listen for test event’, Meta may now point at the test URL, since it keeps one callback URL per app. Republish the workflow, then reply from your phone without touching the editor.

Also make sure your phone is added as a recipient on the test number, and reply within the 24h window.

Hi @Farrukh_Hameed,

As @kjooleng correctly pointed out, this is a classic case of outbound setup working perfectly while the inbound webhook subscription pipeline is broken or unverified.

However, when setting up custom webhooks for Meta apps on self-hosted instances, developers always hit a wall during the initial token verification handshake. Meta sends a GET request containing hub.challenge, hub.verify_token, and hub.mode to check if your server is active. Since standard webhook setups are configured only for POST payloads, n8n fails the initial Meta handshake.

Here is how to fix this exact Meta validation roadblock in n8n:

  1. The Handshake Hotfix (Switch to GET/POST Hybrid):
    • Change your Webhook Node configuration parameters temporarily: Set HTTP Method to GET (or use a dynamic conditional layout) just to satisfy Meta’s verification engine.

    • Add an n8n Code Node immediately after the webhook to return the challenge echo directly:

      const query = $json.query || {};
      if (query['hub.mode'] === 'subscribe' && query['hub.verify_token'] === 'YOUR_SECRET_TOKEN') {
        return [{ json: { responseBody: query['hub.challenge'], httpStatus: 200 } }];
      }
      
  2. The “Messages” Field Subscription Trap (Most Common Fail):
    • Once Meta verifies your URL and accepts your webhook token, you must look for the “Webhook Fields” grid directly below the App Configuration screen in the Meta Developer Dashboard.
    • Click Manage and explicitly hit “Subscribe” next to the messages field. If you miss this specific layer, Meta will successfully connect to your n8n URL but will never push the actual incoming message texts or payload events to your trigger.
  3. Handle Meta’s Rapid Acknowledgment Requirements (Fast ACK):
    • Once verified, switch your Webhook Node method back to POST and ensure Respond to Webhook is explicitly set to Immediately. If your downstream LLM agents or database integrations take more than 3 seconds to reply, Meta will drop the connection, mark your n8n endpoint dead, and trigger endless duplicate retry loops.

If you want to bypass manual routing setups, I have an open-source reference blueprint mapping this exact end-to-end WhatsApp architecture—complete with automated input validation contract guards, Redis atomic idempotency counters to block double-processing, and multi-channel database routing.

Feel free to check out the production configurations here on my repo:
:link: https://github.com

Let me know if the hub.challenge bypass helps you get verified!

Thanks you all. Problem is resolved by setting an http node

I’d suggest checking the WhatsApp credentials and webhook configuration first, as either could cause the input node to fail. Also, try testing the node separately and check the execution logs for the exact error message. That should help narrow down whether it’s an authentication issue or a problem with the incoming message data.