What are n8n and the WhatsApp Cloud API?
n8n is a free tool, which you can run on your own server, that links apps together. You build a workflow, which is a chain of steps. Each step is a box called a node. Ask Hostvento support whether n8n is supported on your plan.
WhatsApp does not let programs use a normal personal account. Companies use the WhatsApp Business Cloud API from Meta. An API is a way for programs to talk to each other. You use it through a Meta developer account.
Meta controls the rules, limits and prices for this service. Read their pages for current details.
What you need
- A Facebook account.
- A Meta developer account.
- A phone number for testing or for your business.
- A working n8n that can be reached over https.
Part 1: Set up Meta
- Go to the Meta for Developers site and sign in.
- Click My Apps, then Create App.
- Choose a type that offers business messaging, and follow the screens.
- Add the WhatsApp product to the app.
- Open the WhatsApp API Setup page. It shows a test phone number, a Phone Number ID and a WhatsApp Business Account ID.
- Add the phone number that will receive test messages, and confirm it with the code sent.
Part 2: Get an access token
- The API Setup page shows a temporary token. It lasts only a short time.
- For long-term use, create a System User in Meta Business settings and make a permanent token with WhatsApp permissions.
- Copy the token and keep it private.
Part 3: Add it to n8n
- In n8n, open Credentials and click Create Credential.
- Search for WhatsApp Business Cloud. There is one for sending and one for receiving.
- Paste the access token and the Business Account ID, as the form asks.
- Click Save.
Part 4: Send a test message
- Create a workflow and add a WhatsApp Business Cloud node.
- Choose Send as the operation.
- Enter the Phone Number ID.
- Enter the receiver's number with the country code.
- Type the text and click Execute step.
WhatsApp has strict rules. To start a chat with a person, you usually need an approved message template. Free-form text is allowed only inside a short window after the person writes to you.
Menus at Meta change often. Look for the closest name if a button looks different.
Quick recap
- Use the WhatsApp Business Cloud API from Meta.
- Get the Phone Number ID and an access token.
- Save them as a credential in n8n.
- Test with a WhatsApp node.
- Follow Meta's template rules.