Wassenger icon

Wassenger

Interact with Wassenger WhatsApp API

Actions148

Overview

This node interacts with the Wassenger WhatsApp API to manage WhatsApp chats. Specifically, the "Delete Chat" operation under the "Chats" resource allows users to delete a chat associated with a particular WhatsApp number (device). It supports deleting the chat locally within the system and optionally deleting it from the WhatsApp app itself. Additionally, if deletion on WhatsApp fails, there is an option to force the chat as removed locally.

Common scenarios where this node is beneficial include:

  • Automating cleanup of old or irrelevant chats from a WhatsApp business account.
  • Managing chat lifecycle programmatically, such as removing chats after resolution or archiving.
  • Synchronizing chat deletions between a backend system and the WhatsApp app.

Practical example:

  • A customer support system automatically deletes resolved chat sessions both from its database and optionally from the WhatsApp app to keep the interface clean.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the chat will be deleted.
Chat ID The unique identifier of the chat to delete (e.g., user chat ID like 447362053576@c.us or group chat ID like 44736205357600000000@g.us).
Delete from WhatsApp Boolean flag indicating whether to delete the chat also from the WhatsApp app, not just locally.
Force Delete Boolean flag to force marking the chat as removed locally if deletion on WhatsApp fails. Only applicable if "Delete from WhatsApp" is true.

Output

The output JSON contains the response from the Wassenger API after attempting to delete the specified chat. This typically includes confirmation of deletion or error details if the operation failed.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Wassenger WhatsApp API.
  • The node depends on the Wassenger service being accessible and properly configured.
  • The "WhatsApp Number" must correspond to a valid registered device in the Wassenger system.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID or WhatsApp Number can cause failures.
    • Attempting to delete a chat that does not exist or has already been deleted may return errors.
    • Network or authentication issues with the Wassenger API can prevent successful deletion.
    • If "Delete from WhatsApp" is enabled but deletion fails on WhatsApp, the "Force Delete" option can be used to mark the chat as removed locally.
  • Error messages:

    • Errors related to invalid credentials indicate problems with the API key setup.
    • "Chat not found" or similar messages suggest incorrect Chat ID or device selection.
    • API rate limits or connectivity errors require checking network and API usage policies.

Links and References

Discussion