Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

The node enables interaction with WhatsApp through 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 specific chat by its ID.

Archiving a chat typically means moving it out of the main chat list without deleting it, helping users keep their chat list organized by hiding less active or completed conversations.

Practical example:
You can use this node to automatically archive chats after a customer support conversation is marked as resolved, keeping your active chat list clean while preserving chat history for future reference.

Properties

Name Meaning
Chat ID The unique identifier of the chat to be archived (e.g., 123456789@c.us for direct chats or 123456789@g.us for group chats).

Output

The output of the node is the JSON response returned by the Wappfy API after attempting to archive the specified chat. This typically includes confirmation of the action or details about the archived chat.

  • The output is structured as an array of items, each containing a json field with the API response.
  • No binary data is output for this operation.

Example output structure:

[
  {
    "json": {
      "success": true,
      "chatId": "123456789@c.us",
      "archived": true
    }
  }
]

Dependencies

  • Requires a valid connection to the Wappfy API, including:
    • Base URL of the Wappfy API service.
    • Instance name identifying the WhatsApp session.
    • An API key credential for authentication.
  • These credentials must be configured in n8n prior to using the node.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat ID is correctly provided and corresponds to an existing chat.
    • Authentication errors: Verify that the API key and instance name are correctly set and valid.
    • Network or API endpoint errors: Check connectivity to the Wappfy API base URL.
  • Error messages:

    • "Chat not found": The provided Chat ID does not exist or is incorrect.
    • "Unauthorized" or "Invalid API key": Authentication failed; check API key credentials.
    • "Failed to archive chat": General failure; verify parameters and API status.
  • Resolution tips:

    • Double-check input parameters for correctness.
    • Confirm API credentials and permissions.
    • Review API service status and logs if available.

Links and References

Discussion