Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Chat → Archive

AI-generated

Overview

The node enables interaction with WhatsApp via the Wappfy API, providing a wide range of operations on various WhatsApp resources such as sessions, messages, chats, contacts, groups, statuses, channels, polls, profiles, linked IDs, and files. Specifically, for the Chat resource and the Archive operation, this node allows you to archive a chat by its ID.

Archiving a chat is useful when you want to clean up your active chat list without deleting the conversation permanently. It helps in organizing chats by moving less relevant or inactive conversations out of the main view while preserving their data for future access.

Practical example:
You have a customer support WhatsApp account integrated with n8n. After resolving a customer's issue, you can automatically archive the chat to keep your active chat list focused on ongoing conversations.

Properties

Name Meaning
Chat ID The unique identifier of the chat to archive. This is required and typically looks like a phone number followed by @c.us for direct chats or @g.us for group chats.

Output

The node outputs the JSON response returned by the Wappfy API after attempting to archive the specified chat. The structure depends on the API's response but generally includes confirmation of the archive action or error details if the operation failed.

No binary data output is involved in this operation.

Dependencies

  • Requires an active Wappfy API credential configured in n8n, including:

    • Base URL of the Wappfy API.
    • Instance name identifying the WhatsApp session.
    • An API key for authentication.
  • The node makes HTTP POST requests to the endpoint:
    /api/{instanceName}/chats/{chatId}/archive

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat ID is correctly provided and formatted.
    • Authentication errors: Verify that the API key and instance name are correctly set in credentials.
    • Network or API availability issues: Confirm that the Wappfy API service is reachable.
  • Error messages:

    • Errors from the API will be returned in the JSON output under an error field if the node is set to continue on fail.
    • If not continuing on fail, the node throws an error with the message from the API or network layer.
  • Resolution tips:

    • Double-check input parameters.
    • Validate credentials and permissions.
    • Check API status and logs for more details.

Links and References

Discussion