UazAPI icon

UazAPI

Integração completa com UazAPI - 90+ endpoints para automação WhatsApp

Overview

The node integrates with the UazAPI service to create and manage WhatsApp campaigns, specifically supporting a "Create Simple" campaign operation. This operation allows users to send bulk WhatsApp messages to multiple phone numbers in a straightforward manner.

Typical use cases include:

  • Sending promotional or informational text/image/video/document messages to a list of customers.
  • Running marketing campaigns where personalized or mass messaging is required.
  • Automating message dispatch with controlled delays to avoid spam detection or bans.

For example, a user can input a comma-separated list of phone numbers, select the type of message (text, image, video, document), provide the message content, and specify minimum and maximum delay intervals between each message sent.

Properties

Name Meaning
Numbers Comma-separated phone numbers including country code (e.g., 5511999999999, 5511888888888).
Message Type Type of message to send. Options: Text, Image, Video, Document.
Message Text The content of the message. Supports template variables using {{variable}} syntax for personalization.
Delay Min (seconds) Minimum delay in seconds between sending each message to prevent being banned.
Delay Max (seconds) Maximum delay in seconds between sending each message to prevent being banned.

Output

The output is an array of JSON objects representing the response from the UazAPI after attempting to create the simple campaign. Each item corresponds to one execution iteration and contains the API response data, which typically includes details about the created campaign or any errors encountered.

No binary data output is produced by this operation.

Example output JSON structure (simplified):

{
  "campaignId": "string",
  "status": "string",
  "message": "string",
  "details": { /* additional info from API */ }
}

Dependencies

  • Requires an active connection to the UazAPI service.
  • Needs valid credentials containing at least the base URL and authentication tokens for UazAPI.
  • The node uses HTTP requests authenticated via these credentials to interact with the UazAPI endpoints.
  • No other external dependencies are required.

Troubleshooting

  • Invalid phone number format: Ensure that phone numbers are correctly formatted with country codes and separated by commas without extra spaces.
  • Authentication errors: Verify that the API key or authentication token provided in credentials is valid and has sufficient permissions.
  • Rate limiting or bans: If messages fail to send, consider increasing the delay min/max values to reduce the sending rate.
  • API endpoint unreachable: Check network connectivity and the correctness of the base URL configured in credentials.
  • Template variable errors: When using {{variable}} placeholders in the message text, ensure that the variables are properly defined and replaced before sending.

Common error messages usually come directly from the UazAPI and will be included in the output JSON under an error field if the node is set to continue on failure.

Links and References

  • UazAPI Official Documentation (example placeholder, replace with actual link if available)
  • WhatsApp Business API guidelines for bulk messaging best practices.
  • n8n documentation on creating and managing credentials and HTTP request nodes.

Discussion