Overview
This node allows you to send WhatsApp messages to specified phone numbers directly from your n8n workflows. It is useful for automating notifications, alerts, or any communication that needs to be sent via WhatsApp. Common scenarios include sending order confirmations, appointment reminders, or real-time alerts to users.
Practical examples:
- Automatically notify customers when their order status changes.
- Send appointment reminders to clients a day before their scheduled time.
- Alert administrators about system events or errors.
Properties
| Name | Type | Meaning |
|---|---|---|
| Recipient | String | Phone number to message |
| Message | String | Message to send |
Output
The node outputs an array of objects with the following structure in the json field:
{
"message": <response_from_sendMessageToPhoneNumber>
}
- The exact content of
messagedepends on the response from the WhatsApp client library, but it typically contains information about the sent message (such as message ID, status, etc.).
Dependencies
- WhatsApp API credentials: You must configure and provide valid WhatsApp API credentials in n8n for this node to function.
- External Service: This node relies on an external WhatsApp messaging service/library.
- n8n Configuration: Credentials must be set up under the name "whatsApp" in your n8n instance.
Troubleshooting
Missing Credentials:
Error:credential is missing!
Solution: Ensure that WhatsApp credentials are correctly configured in n8n under the appropriate credential type.Invalid Phone Number or Message:
If the recipient's phone number or message is invalid or empty, the WhatsApp API may reject the request. Double-check input values.API Errors:
Any issues with the WhatsApp API (e.g., rate limits, network problems) will result in errors being returned in the output. Review the error details in the output for troubleshooting.