Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

This node interacts with WhatsApp via the Wappfy API, enabling various operations on WhatsApp entities such as sessions, messages, chats, contacts, groups, statuses, channels, polls, profiles, linked IDs, and files. Specifically, for the Channel resource and the Get Messages Preview operation, it retrieves a preview list of messages from a specified WhatsApp channel using an invite code.

This operation is useful when you want to quickly fetch recent message summaries from a public or private WhatsApp channel without retrieving full message details. For example, it can be used to monitor channel activity, display message snippets in dashboards, or trigger workflows based on new channel messages.

Properties

Name Meaning
Limit Number of message previews to return (default 20).
Invite Code The invite code of the channel to access its messages preview (required).
Download Media Whether to download media files associated with the messages preview (true/false).

Output

The output contains an array of JSON objects representing the messages preview retrieved from the specified channel. Each item corresponds to a message preview, including metadata and optionally media content if Download Media is enabled.

  • The json field holds the message preview data returned by the Wappfy API.
  • If media download is enabled, media files related to the messages may be included or referenced in the output.
  • No binary data output is explicitly handled by this operation.

Dependencies

  • Requires an active Wappfy API credential with:
    • Base URL of the Wappfy API instance.
    • Instance name identifier.
    • An API key for authentication.
  • The node makes HTTP GET requests to the Wappfy API endpoints.
  • Proper configuration of the Wappfy API credentials in n8n is necessary.

Troubleshooting

  • Common issues:
    • Invalid or expired channel invite code will cause the API request to fail.
    • Insufficient permissions or invalid API key may result in authorization errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:
    • Errors from the API are caught and returned as error messages in the output if "Continue On Fail" is enabled.
    • Typical errors include "Unauthorized", "Not Found" (invalid invite code), or "Bad Request" (invalid parameters).
  • Resolution tips:
    • Verify the channel invite code is correct and active.
    • Ensure the API key and instance name are correctly configured.
    • Check network access to the Wappfy API endpoint.

Links and References


This summary focuses on the Channel resource's Get Messages Preview operation as requested.

Discussion