WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Chats → Archive Chat

AI-generated

Overview

This node integrates with the WaliChat WhatsApp API, enabling automation and management of WhatsApp-related operations. Specifically, the Archive Chat operation under the Chats resource allows users to archive a particular chat on a specified WhatsApp number. Archiving a chat typically removes it from the main chat list without deleting it, helping users organize conversations and keep their interface clean.

Practical scenarios include:

  • Automatically archiving chats after a conversation ends.
  • Managing chat visibility in customer support workflows.
  • Organizing group or individual chats programmatically based on status or activity.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) on which the chat exists. This is selected from available devices linked to the account.
Chat ID The unique identifier of the chat to be archived. Examples: 447362053576@c.us for an individual user chat, or 44736205357600000000@g.us for a group chat.

Output

The node outputs JSON data representing the result of the archive chat operation. Typically, this will include confirmation details such as success status or any relevant metadata returned by the WaliChat API about the archived chat.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active connection to the WaliChat WhatsApp API via an API key credential.
  • The node depends on the availability of registered WhatsApp numbers (devices) to select from.
  • Proper configuration of the API key credential within n8n is necessary for authentication.

Troubleshooting

  • Common Issues:

    • Invalid or missing WhatsApp number/device ID may cause failures.
    • Incorrect or malformed Chat ID can lead to errors.
    • Network or authentication issues with the WaliChat API could prevent successful archiving.
  • Error Messages:

    • Errors related to authorization usually indicate problems with the API key credential; verify that the key is valid and has required permissions.
    • "Chat not found" or similar messages suggest the provided Chat ID does not exist or is inaccessible on the selected device.
    • Rate limiting or API quota exceeded errors require checking usage limits and possibly upgrading the API plan.
  • Resolutions:

    • Double-check input parameters for correctness.
    • Ensure the WhatsApp number/device is active and linked properly.
    • Confirm API credentials are correctly set up in n8n.
    • Review API documentation or contact WaliChat support if persistent errors occur.

Links and References

Discussion