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 chats programmatically. Specifically, the Chat - Archive operation allows users to archive or unarchive a chat by specifying the chat's phone number and whether to archive it (true) or unarchive it (false).

Common scenarios where this node is beneficial include:

  • Automatically archiving chats after a conversation ends to keep the chat list organized.
  • Unarchiving chats when a user wants to revisit or respond to archived conversations.
  • Managing chat visibility in bulk workflows or automation pipelines.

Example use case:

  • After processing customer support messages, automatically archive the chat to mark it as handled.
  • Unarchive a chat when a follow-up message needs to be sent.

Properties

Name Meaning
Chat Number The phone number of the chat to archive/unarchive, including country code (e.g., 5511999999999).
Archive Boolean flag indicating whether to archive (true) or unarchive (false) the chat.

Output

The output is a JSON object representing the response from the UazAPI endpoint for archiving/unarchiving a chat. It typically contains status information about the operation's success or failure.

No binary data is output by this operation.

Dependencies

  • Requires an active connection to the UazAPI service with valid API credentials configured in n8n.
  • The node uses HTTP requests authenticated via these credentials to communicate with the UazAPI endpoints.
  • The base URL for the API is taken from the credential configuration.

Troubleshooting

  • Common issues:

    • Invalid or missing chat number format may cause the API request to fail.
    • Network connectivity problems or incorrect API credentials will prevent successful communication with UazAPI.
    • Attempting to archive a chat that does not exist or is already archived might return an error or no effect.
  • Error messages:

    • Errors returned from the API are passed through in the JSON output under an error field if "Continue On Fail" is enabled.
    • Authentication errors indicate invalid or expired API keys; verify and update credentials.
    • Validation errors usually specify which input parameter is incorrect; ensure the chat number is correctly formatted.

Links and References

  • UazAPI Documentation (general reference for API endpoints)
  • WhatsApp Business API concepts for chat management (for understanding archiving context)

This summary is based on static analysis of the provided source code and property definitions without runtime execution.

Discussion