Wassenger icon

Wassenger

Interact with Wassenger WhatsApp API

Actions148

Overview

This node interacts with the Wassenger WhatsApp API to manage departments within a WhatsApp business environment. Specifically, the "Delete Department" operation allows users to remove an existing department associated with a particular WhatsApp number.

Common scenarios for this node include automating organizational changes in customer support or sales teams that use WhatsApp as a communication channel. For example, when a department is disbanded or merged, this node can programmatically delete the corresponding department record to keep the system up to date.

Practical example: A company uses multiple WhatsApp numbers for different regions. When a regional support team (department) is closed, this node can be used in an automation workflow to delete that department from the Wassenger system, ensuring no further messages are routed there.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) associated with the department.
Department ID The unique identifier of the department to delete. This depends on the selected WhatsApp number.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will confirm whether the department was successfully deleted or provide error details if the operation failed.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Wassenger WhatsApp API.
  • Needs an API key credential configured in n8n for authentication with the Wassenger service.
  • The node relies on dynamic loading of available WhatsApp numbers and departments via internal methods to populate options.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp number ID: Ensure the correct device ID is selected.
    • Department ID not found or already deleted: Verify the department exists before attempting deletion.
    • Authentication errors: Confirm the API key credential is valid and has necessary permissions.
    • Network or API downtime: Check connectivity and Wassenger service status.
  • Error messages:

    • "error": "Department not found" โ€” The specified department ID does not exist for the given WhatsApp number.
    • "error": "Unauthorized" โ€” API key is invalid or lacks permission; reconfigure credentials.
    • "error": "Failed to delete department" โ€” General failure; check logs and API response for details.

Resolving these typically involves verifying input parameters, refreshing credentials, and ensuring the Wassenger API is reachable.

Links and References

Discussion