Before You Start
- Prepare an n8n workflow where you can safely test Webhook and HTTP Request nodes.
- Create and approve a WhatsApp template in WAPI if the workflow will send a template.
- Open Integration Marketplace > n8n.
Test n8n to WAPI
- Open n8n > Accounts in WAPI and click Add Account.
- Save a label. Endpoint URL can stay empty for the first n8n-to-WAPI test.
- Copy the WAPI Incoming URL from the saved account row.
- In n8n, create a workflow with Manual Trigger and HTTP Request.
- Set the HTTP Request method to POST.
- Paste the WAPI Incoming URL.
- Set Content-Type to application/json.
- Send JSON with event send_template, phone, template_name, language, and variables that match an approved WAPI template.
- Execute the n8n workflow.
- Confirm WAPI Recent Activity and Job History show the processed event.
- Confirm the WhatsApp message arrives.
Test WAPI to n8n
- In n8n, create a workflow with a Webhook Trigger.
- Activate the workflow and copy the Production URL.
- Do not use Listen for test event when testing the Production URL.
- In WAPI, open n8n > Accounts and save the n8n Production URL as the account Endpoint URL.
- Open n8n > Mappings/Rules & Jobs and use the manual Send Test to n8n action.
- Confirm n8n receives the webhook payload.
- Confirm WAPI Job History records the manual test result.
Test Inbound WhatsApp Forwarding to n8n
- In n8n, keep an active workflow with a Production Webhook URL ready.
- In WAPI, open n8n > Mappings/Rules & Jobs.
- Click Add Rule.
- Choose WhatsApp Inbound Message as the n8n event.
- Choose Forward inbound message to n8n as the action.
- Use the account Endpoint URL or enter a rule-specific Endpoint URL. The rule endpoint overrides the account endpoint when both exist.
- Choose message type filters such as Text, Image, Document, Video, Audio, Interactive/Button, Template Reply, or System.
- Choose optional filters such as phone/contact, contact category, conversation tag, assignment state, human activity state, keyword, starts with, or regular expression.
- Keep payload fields checked for the first test so n8n receives the full sample payload.
- Save the enabled rule.
- Send an inbound WhatsApp message that matches the filter.
- Confirm n8n receives the payload.
- Confirm WAPI Job History and Recent Activity show the forwarded inbound message.
What to Check if It Fails
- Use n8n Test URL only while n8n is actively listening for a test event.
- Use n8n Production URL only after the workflow is active.
- Confirm the rule endpoint URL or account Endpoint URL is correct.
- Confirm your filters actually match the inbound message.
- Confirm selected payload fields include the values your n8n workflow expects.
- Confirm shared-secret headers match when a secret is saved in WAPI.