Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Chat → Delete

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 with the Delete operation, the node deletes a specified chat by its ID.

Use cases include automating chat management tasks like deleting 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 output is produced by 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 makes HTTP DELETE requests to the Wappfy API endpoint corresponding to the chat deletion.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat ID is correctly provided and formatted.
    • Authentication errors: Verify that the API key and instance name credentials are correct and have sufficient permissions.
    • Network or connectivity problems: Confirm that the Wappfy API base URL is reachable from your environment.
    • Attempting to delete a non-existent or already deleted chat may result in an error response.
  • Error messages:

    • Errors returned by the API will be included in the node's output if "Continue On Fail" is enabled.
    • Typical error messages might include "Chat not found", "Unauthorized", or "Invalid chat ID".
    • To resolve, check the input parameters, credentials, and API access rights.

Links and References


This summary focuses on the Chat > Delete operation as requested, describing its purpose, inputs, outputs, dependencies, and common troubleshooting tips based on static analysis of the provided source code.

Discussion