Actions7
Overview
This node integrates with the Uzapi API to send WhatsApp messages. It supports multiple operations related to messaging, including sending text and links. The "Enviar Link" operation specifically allows users to send a clickable URL link as a message to a specified phone number.
Common scenarios for this node include automating WhatsApp notifications, marketing campaigns, or customer support messages where sending direct links is necessary—for example, sending a product page link, a registration form, or a payment URL directly to customers via WhatsApp.
Properties
Name | Meaning |
---|---|
Número (com DDI) | Destination phone number including country code (e.g., 5511999998888). |
Texto | Text message content to be sent along with the link. |
URL | The web address (link) to be sent in the message. |
Output
The node outputs JSON data representing the response from the Uzapi API after attempting to send the message. This typically includes information about the success or failure of the message delivery, message IDs, timestamps, or error details if any occurred.
If the node supports binary data output (not evident from the provided code), it would represent media content or attachments, but for the "Enviar Link" operation, the output is primarily JSON-based status and metadata.
Dependencies
- Requires an active Uzapi API account with valid credentials (an API key or token).
- The node depends on the
uzapiCredentialsApi
credential configured within n8n to authenticate requests. - Network access to the Uzapi API endpoint specified by the base URL in the credentials.
- The bundled code imports utility modules and an API client wrapper to handle communication with Uzapi.
Troubleshooting
- Operation Not Implemented Error: If you select an operation not supported by the node, it will throw an error indicating the operation is not implemented. Ensure you use only supported operations like "sendLink".
- Authentication Failures: Incorrect or missing API credentials will cause authentication errors. Verify that the API key/token is correctly set up in n8n credentials.
- Invalid Phone Number Format: The destination number must include the country code without spaces or special characters. Invalid formats may cause message sending failures.
- API Rate Limits or Quotas: Exceeding Uzapi's usage limits can result in errors; monitor your API usage accordingly.
- Network Issues: Connectivity problems between n8n and Uzapi API endpoints can cause timeouts or request failures.
Links and References
- Uzapi Official Website — For API documentation and account setup.
- WhatsApp Business API Documentation — General reference for WhatsApp messaging capabilities.
- n8n Documentation on Creating Custom Nodes — For understanding node development and configuration.