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 various WhatsApp resources such as sessions, messages, chats, contacts, groups, statuses, channels, profiles, linked IDs, and files. Specifically, for the Chat resource and the Delete Message operation, the node allows users to delete a specific message from a chat by specifying the chat ID and the message ID.

Common scenarios where this node is beneficial include automating WhatsApp message management tasks such as removing unwanted or outdated messages from chats, cleaning up conversations programmatically, or integrating message deletion into broader workflows like customer support ticketing or compliance processes.

Practical example:

  • Automatically deleting a message in a customer support chat after the issue is resolved.
  • Removing sensitive information sent mistakenly in a group chat.

Properties

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

Output

The output of the node is a JSON object representing the response from the Wappfy API after attempting to delete the specified message. This typically includes confirmation of deletion or error details if the operation failed.

  • The json field contains the API response data.
  • No binary data output is expected for this operation.

Example output structure (conceptual):

{
  "success": true,
  "message": "Message deleted successfully",
  "chatId": "123456789@c.us",
  "messageId": "ABCD1234"
}

If an error occurs, the output may contain an error message describing the failure.

Dependencies

  • Requires a valid Wappfy API credential with an API key and instance name configured in n8n.
  • The node makes HTTP requests to the Wappfy API endpoints.
  • Proper network access to the Wappfy API base URL is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID or Message ID parameters will cause the API request to fail.
    • Incorrect API credentials or expired API keys will result in authentication errors.
    • Attempting to delete a message that does not exist or has already been deleted will return an error from the API.
    • Network connectivity problems can prevent successful API calls.
  • Error messages and resolutions:

    • "Unauthorized" or "Invalid API key": Verify that the API key credential is correctly set up and active.
    • "Message not found": Confirm that the provided Message ID exists in the specified chat.
    • "Chat not found": Ensure the Chat ID is correct and accessible by the authenticated session.
    • "Request failed" or timeout errors: Check network connectivity and API availability.

Links and References

Discussion