UazAPI icon

UazAPI

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

Overview

This node integrates with the UazAPI service to manage WhatsApp contacts programmatically. Specifically, for the Contact - Add operation, it allows users to add a new contact to their WhatsApp contact list by providing the contact's phone number and name.

Common scenarios where this node is beneficial include:

  • Automating the addition of new customer contacts collected from web forms or CRM systems into WhatsApp.
  • Synchronizing contact lists between external databases and WhatsApp.
  • Preparing contact lists for subsequent messaging campaigns or personalized communication.

For example, a business could use this node to automatically add a new lead's phone number and name to their WhatsApp contacts immediately after the lead fills out a form on their website.

Properties

Name Meaning
Contact Phone The phone number of the contact to add. It should be in international format without the "+" sign (e.g., "5511999999999").
Contact Name The full name of the contact to be added to the WhatsApp contact list.

Output

The node outputs a JSON object representing the response from the UazAPI server after attempting to add the contact. This typically includes confirmation details such as success status, any identifiers assigned to the contact, or error messages if the operation failed.

No binary data output is produced by this operation.

Example output structure (simplified):

{
  "success": true,
  "message": "Contact added successfully",
  "contactId": "some-unique-id"
}

Dependencies

  • Requires an active connection to the UazAPI service.
  • Requires valid API credentials configured in n8n for authenticating requests to UazAPI.
  • The base URL for the UazAPI must be set in the credentials configuration.
  • Network access to the UazAPI endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing phone number format may cause the API to reject the request.
    • Missing or incorrect API credentials will result in authentication errors.
    • Network connectivity problems can prevent the node from reaching the UazAPI service.
    • Attempting to add a contact that already exists might return an error or duplicate warning depending on the API behavior.
  • Common error messages:

    • Authentication failures: Check that the API key or token is correctly configured and has not expired.
    • Validation errors: Ensure the phone number and contact name are provided and formatted correctly.
    • API endpoint errors: Verify the base URL and that the UazAPI service is operational.

To resolve these issues, verify input parameters, check credential settings, and ensure network connectivity.

Links and References

  • UazAPI Documentation (Assumed official docs link for reference)
  • WhatsApp Business API guidelines for contact management (for understanding contact formats and limitations).

Discussion