Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

This node enables interaction with WhatsApp through the Wappfy API, specifically allowing management of chats and messages. The "Delete Message" operation under the "Chat" resource lets users delete a specific message from a chat by providing the chat ID and the message ID.

Common scenarios where this is useful include:

  • Automatically removing sensitive or erroneous messages from a chat.
  • Moderating group chats by deleting inappropriate content.
  • Cleaning up chat history programmatically.

Example use case:

  • A workflow that monitors incoming messages and deletes those containing prohibited words by calling this node's "Delete Message" operation with the relevant chat and message IDs.

Properties

Name Meaning
Chat ID The unique identifier of the chat from which to delete the message (e.g., 123456789@c.us for direct chats or 123456789@g.us for groups).
Message ID The unique identifier of the message to be deleted within the specified chat.

Output

The node outputs JSON data representing the response from the Wappfy API after attempting to delete the message. This typically includes confirmation of deletion or error details if the operation failed.

No binary data output is produced by this operation.

Dependencies

  • Requires an active Wappfy API connection configured in n8n with valid credentials including:

    • Base URL of the Wappfy API.
    • Instance name identifying the WhatsApp session.
    • An API key credential for authentication.
  • The node makes HTTP DELETE requests to the Wappfy API endpoint corresponding to the chat and message IDs.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID or Message ID parameters will cause the API call to fail.
    • If the message does not exist or was already deleted, the API may return an error.
    • Insufficient permissions or invalid API key can result in authorization errors.
    • Network connectivity problems can prevent successful API communication.
  • Error messages and resolutions:

    • "Message not found" — Verify the message ID and chat ID are correct and the message exists.
    • "Unauthorized" or "Invalid API key" — Check that the API key credential is correctly set up and has necessary permissions.
    • "Chat not found" — Confirm the chat ID is valid and accessible by the session.
    • For network errors, ensure the Wappfy API base URL is reachable from your environment.

Links and References

Discussion