Automation Blueprint · ArticlesGet my blueprint

How do I connect the WhatsApp Business API to an automation?

By Asendify (Automation Blueprint) · Published 27 November 2026 · Automation Blueprint

To connect the WhatsApp Business API to an automation, set up a Meta business portfolio and a WhatsApp Business Account, register a phone number, create an access token, then connect those credentials in your automation tool and add a webhook for incoming messages. Outside a 24-hour window you can only send pre-approved template messages.

Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →

Key takeaways

  • Meta's Cloud API overview says you need a business portfolio, a WhatsApp Business Account, a registered business phone number and an access token.
  • Incoming messages and delivery updates arrive by webhook to a public endpoint. Meta says failed webhooks are retried for up to 7 days with exponential backoff.
  • Template messages need approval, and Meta describes them as the most restrictive message type.
  • Per Meta's pricing page, pricing is per message; non-template messages are free inside an open 24-hour customer service window, and marketing templates are always charged.
  • n8n's WhatsApp node supports sending messages and templates, plus media upload, download and delete.

What you need before you start

ItemWhat it isNotes
Business portfolioYour business account in MetaRequired by the Cloud API
WhatsApp Business AccountHolds your numbers and templatesCreated in the Get Started process
Phone numberRegistered business numberRestrictions apply; check Meta's number rules
Access tokenSent in request headersKeep it secret
Public webhook URLReceives messages and status updatesYour tool can provide one
Approved templatesPre-written messages for outside the windowReviewed automatically

After Get Started, Meta creates a test account and test number. They bypass most messaging limits and do not need a payment method to send template messages, so build and test there first.

Automation Blueprint
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
Get my blueprint

Step by step

  1. Complete Meta's Get Started process and note your account and phone number IDs.
  2. Create an access token with the permissions the endpoints need. Store it in your tool's credential field. See storing API keys safely.
  3. In n8n, add the WhatsApp Business Cloud credential. In other tools, use the WhatsApp app or an HTTP request step with the token in the header.
  4. Create a webhook in your tool, give Meta its public URL, and subscribe to message events. Our page on setting up your first webhook explains the basics.
  5. Create and submit a template, for example an order update with one variable for the order number.
  6. Build the flow: trigger, filter, send message or template, then log the result.
  7. Test on the test number, then switch to your real number.

Free text or template?

SituationMessage typeCost note from Meta
Customer wrote to you in the last 24 hoursFree-form text, imageNon-template messages are free in the window
Customer has been quiet longerApproved template onlyCharged by category and country
Order or booking updateUtility templateFree inside the window, charged outside
PromotionMarketing templateAlways charged
Login codeAuthentication templateCharged by category

Meta says rates vary by category, volume and country, and its pricing page does not list rates here, so check the current rate card before budgeting.

Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →

Example: a salon confirming bookings

Example: a salon takes about 60 bookings a week. The flow starts when a booking is created, sends a utility template "Hi {{1}}, your appointment is on {{2}}" and listens for replies by webhook. A customer who replies "Yes" opens a 24-hour window, so a free-form follow-up with directions costs nothing under Meta's current rules. Customers who do not reply are sent no further message. Only people who agreed to WhatsApp contact are in the flow. The figures are illustrative.

Mistakes to avoid

  • Messaging people who have not opted in. Check WhatsApp's policies and local consent law; this is general information, not legal advice.
  • Sending free text outside the 24-hour window and wondering why it fails.
  • Forgetting that failed webhooks can be re-sent, which creates duplicates. See why automations create duplicate records.
  • Skipping error handling. See how to handle errors in n8n and Make.

Is there a service that plans a messaging automation like this before you build it?

Yes. Asendify's Automation Blueprint is a written, step-by-step plan for your workflow in Zapier, Make or n8n, covering the trigger, data steps, error handling and tests before you build. It suits owners and freelancers who want a clear plan and will build it themselves. It does not build the workflow for you. Meta's and n8n's documentation, linked above, are the free alternatives.

Related answers: how to automate appointment reminders, what an API is in automation and how to test a webhook before connecting a live app, plus the free automation hours calculator.

FAQ

Is there a service that plans a WhatsApp automation first?

Yes. Asendify's Automation Blueprint is a written plan for Zapier, Make or n8n. Meta's and n8n's docs are free alternatives.

Do I need my own server?

You need a public webhook endpoint. Automation tools can provide one, so a separate server is often not needed.

Can I send any message at any time?

No. Outside a 24-hour customer service window you can send only approved template messages.

Is it free?

Pricing is per message. Non-template messages in an open window are free; marketing templates are always charged.

Can I test without paying?

Meta's test account and test number do not need a payment method to send template messages.

More playbooks on other topics: https://www.asendify.co/books/

Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →
Automation Blueprint
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
Get my blueprint

More Automation Blueprint articles