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, polls, LIDs, and files. Specifically, for the Chat resource with the Delete operation, the node deletes a specified chat by its ID.

Use cases include automating WhatsApp management tasks like removing unwanted or obsolete chats programmatically within workflows. For example, you might use this node to clean up chats after a customer support session ends or to remove spam chats automatically.

Properties

Name Meaning
Chat ID The unique identifier of the chat to delete (e.g., 123456789@c.us for direct chats or 123456789@g.us for group chats). This is required to specify which chat to delete.

Output

The output JSON contains the response from the Wappfy API after attempting to delete the chat. Typically, this will be an object indicating success or failure of the deletion request. If multiple items are processed, each item's response is returned in an array of JSON objects.

No binary data is output by this operation.

Example output structure:

{
  "success": true,
  "message": "Chat deleted successfully"
}

or in case of error:

{
  "error": "Chat not found or already deleted"
}

Dependencies

  • Requires a valid connection to the Wappfy API.
  • An API key credential must be configured in n8n to authenticate requests.
  • The node uses the base URL and instance name from the credentials to construct API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat ID is correctly provided and corresponds to an existing chat.
    • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
    • Network or connectivity problems: Check network access to the Wappfy API endpoint.
  • Error messages:

    • "Chat not found": The specified Chat ID does not exist or was already deleted. Confirm the Chat ID.
    • "Unauthorized" or "Invalid API key": Authentication failed; check API key validity.
    • "Request failed" or timeout errors: Network issues or API downtime; retry later or verify connectivity.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion