Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Chat → Delete All Messages

AI-generated

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 All Messages operation, it allows users to delete all messages within a specified chat.

This operation is useful when you want to clear the entire message history of a chat programmatically, for example:

  • To maintain privacy by removing all chat content.
  • To reset a chat before starting a new conversation thread.
  • To manage storage by deleting old messages in bulk.

Properties

Name Meaning
Chat ID The unique identifier of the chat from which all messages will be deleted (e.g., 123456789@c.us for direct chats or 123456789@g.us for group chats).

Output

The output of this operation is the JSON response returned by the Wappfy API after attempting to delete all messages in the specified chat. This typically includes confirmation of success or details about any errors encountered.

The node outputs an array of items where each item contains a json property holding the API response object.

No binary data output is involved in this operation.

Dependencies

  • Requires an active Wappfy API instance with valid credentials including:
    • Base URL of the Wappfy API.
    • Instance name identifying the WhatsApp session.
    • An API key credential for authentication.
  • The node must be configured with these credentials in n8n prior to execution.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat ID is correctly provided and corresponds to an existing chat.
    • Authentication failures: Verify that the API key and instance name are correct and the Wappfy API service is accessible.
    • Network or API endpoint errors: Check network connectivity and that the Wappfy API base URL is reachable.
  • Error messages:

    • Errors returned from the API will be included in the node's output if "Continue On Fail" is enabled.
    • Typical error messages may include "Chat not found", "Unauthorized", or "Invalid request".
  • Resolution tips:

    • Double-check input parameters for correctness.
    • Confirm API credentials and permissions.
    • Review API documentation or logs for detailed error information.

Links and References


If you need summaries for other operations or resources, feel free to ask!

Discussion