Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

This node enables interaction with WhatsApp through the Wappfy API, providing a wide range of operations on WhatsApp entities such as sessions, messages, chats, contacts, groups, statuses, channels, profiles, linked IDs, and files. Specifically, for the Chat resource and the Get Message operation, it retrieves a specific message by its ID from a given chat.

Common scenarios where this node is beneficial include:

  • Fetching detailed information about a particular message in a chat for auditing or processing.
  • Integrating WhatsApp message retrieval into automated workflows, such as customer support ticketing or CRM systems.
  • Building analytics or monitoring tools that require access to individual message data.

Example use case:

  • You want to retrieve the content and metadata of a specific WhatsApp message identified by its message ID within a chat, to display it in your application or trigger further automation based on its content.

Properties

Name Meaning
Chat ID The unique identifier of the chat from which to get the message (e.g., 123456789@c.us).
Message ID The unique identifier of the message to retrieve within the specified chat.

Output

The output is a JSON object representing the retrieved message's details. This typically includes all available information about the message such as its content, sender, timestamp, status, and any associated media or metadata provided by the Wappfy API.

If multiple items are processed, the output will be an array of such JSON objects, each corresponding to one input item.

The node does not explicitly output binary data for this operation; it returns structured JSON data describing the message.

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.
  • The node expects these credentials to be configured in n8n prior to execution.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID or Message ID parameters will cause the API request to fail.
    • Incorrect or expired API key or instance name may result in authentication errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Errors returned from the Wappfy API will be propagated as node errors unless "Continue On Fail" is enabled.
    • Typical error messages might include "Message not found", "Chat not found", or "Unauthorized".
  • Resolutions:

    • Verify that the Chat ID and Message ID are correct and exist in the WhatsApp session.
    • Ensure the API key and instance name credentials are correctly set and valid.
    • Check network connectivity and API endpoint accessibility.

Links and References

  • Wappfy API Documentation (Assumed link, replace with actual if available)
  • WhatsApp Business API concepts for understanding message and chat identifiers.
  • n8n documentation on creating and using custom nodes and credentials.

Discussion