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, profiles, polls, LIDs, and files. Specifically, for the Chat resource and the Unarchive operation, this node allows you to unarchive a previously archived chat by specifying its chat ID.

This functionality is useful in scenarios where archived chats need to be restored to the active chat list, for example:

  • Automatically unarchiving important chats when new messages arrive.
  • Managing chat states programmatically in workflows that organize conversations.
  • Reversing archiving actions triggered by other automation steps.

Properties

Name Meaning
Chat ID The unique identifier of the chat to unarchive (e.g., 123456789@c.us for direct chats or 123456789@g.us for group chats). This is required to specify which chat to unarchive.

Output

The output of the node is the JSON response returned by the Wappfy API after attempting to unarchive the specified chat. The structure depends on the API's response but typically includes confirmation of success or details about the chat state.

  • The output is provided as an array of items, each containing a json field with the API response.
  • No binary data is output for 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}/unarchive.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat ID is correctly specified and corresponds to an existing chat.
    • Authentication errors: Verify that the API key and instance name are correctly configured.
    • Network or connectivity problems: Confirm that the Wappfy API base URL is reachable from your environment.
  • Error messages:

    • Errors returned by the API will be included in the node output if "Continue On Fail" is enabled.
    • Typical error messages may include "Chat not found," "Unauthorized," or "Invalid request."
    • To resolve, check input parameters, credentials, and API availability.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion