Check out the agents documentation for more information on how to build agents using WhatsApp.
Getting Started
To integrate WhatsApp Business with Novu, You will have to create a facebook developer app and obtain the necessary credentials.Create a Facebook developer app
Visit the Facebook Developer Portal and create a new app.Select “Other” for “What do you want your app to do?” and select “Business” for “Select an app type”.
Setup WhatsApp product
On the App Setup page, click on “Set Up” under the “WhatsApp” product. You will need to create or
add a Facebook Business Account to your app.
Send a sandbox message
Copy the following pieces and paste them in the Novu WhatsApp Business integration settings:
- Temporary access token - Access API token field
- Phone Number ID - Phone number identification field
Add a test phone number
You can add a test phone number to the sandbox by clicking on the “Add Phone Number” button.
This number can be used to test your integration with Novu before submitting for a review.
Send a test notification from Novu
You can now create a new workflow with a “chat” node, and add your content. Save your workflow, and click on “Trigger Notification” button.In the to field, specify the phone number you added in the sandbox, and click on “Send Notification”.and in the
overrides field, add the following:For test credentials you can only used the built in Whats App Template.
Going to production
Register a business phone number
To go live you will need to add a real business phone number and submit your app for review.
Follow the Facebook Instructions on how to proceed.
Generate a permanent access token
Follow the Facebook
Instructions
on how to generate a permanent access token. Depending on your use case.
Create a WhatsApp template
You will need to create a WhatsApp Template to send notifications to your customers. Create a template in the Business Manager and submit it for review.
After your template is approved, you can use the
template_name to send notifications to your customers.To send a notification with a template, you will need to add the following to the overrides field:Using WhatsApp with agents
WhatsApp is a supported agent provider. Connect your WhatsApp Business account to an agent so users can message your number and get replies in the same thread — without building Meta webhook handling yourself.Build agents on WhatsApp
Learn how Novu agents work, including managed and custom code agents.
What you get
When WhatsApp is connected to an agent:- Users message your WhatsApp number and your agent responds in the same chat
- Conversations appear in the dashboard under Agent Conversations
- Supported content includes text, markdown, and interactive buttons; inbound media is surfaced via attachments
Agent conversations vs. workflow notifications
| Use case | What happens |
|---|---|
| Agent conversation | The user messages your WhatsApp number and your agent replies in the same chat. |
| Workflow notification | You trigger a workflow with a Chat step and Novu sends a one-way template message to the subscriber. |
Related
Agents and providers
Connect WhatsApp and other providers to an agent.