Actions3
- Administração Actions
- Mensagem Actions
Overview
This node integrates with the UAZAPI service to send WhatsApp messages via WhatsApp Business API. Specifically, for the Mensagem resource and Enviar Texto operation, it sends a text message to a specified phone number using an authenticated instance token.
Common scenarios include:
- Automating customer notifications or alerts via WhatsApp.
- Sending personalized messages in bulk workflows.
- Integrating WhatsApp messaging into CRM or support systems.
Example: Sending a confirmation message to a client after an order is placed by providing their phone number, the message text, and selecting the appropriate WhatsApp instance token.
Properties
| Name | Meaning |
|---|---|
| Número Do Telefone | Phone number including country code (e.g., 5511999999999) to which the text message is sent. |
| Mensagem | The text content of the message to be sent. |
| Token Da Instância Name or ID | Select or specify the authentication token of the WhatsApp instance used to send the message. |
Output
The node outputs JSON data representing the response from the UAZAPI after attempting to send the message. The structure typically includes:
message: A string message confirming success or describing the result.raw: Raw response string from the API.- Or other fields depending on the API response.
If an error occurs and "Continue On Fail" is enabled, the output JSON will contain an error field with the error message.
No binary data output is produced by this operation.
Dependencies
- Requires an administrative API credential configured with UAZAPI, including a subdomain and admin token.
- The node uses this credential to fetch the base URL and authenticate requests.
- The user must have at least one active WhatsApp instance token available to send messages.
- Network connectivity to the UAZAPI endpoints is required.
Troubleshooting
- Missing Credentials Error: If the node throws an error about missing credentials, ensure that the UAZAPI admin API credential is properly set up with valid subdomain and admin token.
- Instance Token Issues: If no instances appear in the token dropdown, verify that you have created and connected at least one WhatsApp instance in your UAZAPI account.
- Invalid Phone Number Format: Ensure the phone number includes the country code without any special characters or spaces.
- API Errors: If the API returns errors, check the validity of the instance token and the status of the WhatsApp instance (it should be connected).
- Network Connectivity: Confirm that your n8n environment can reach the UAZAPI service URLs.
Links and References
- UAZAPI Documentation (hypothetical link)
- n8n Expressions Documentation - for using expressions in property values