Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
Overview
This node interacts with the Wassenger WhatsApp API to manage WhatsApp numbers and their associated chats. Specifically, the Delete Chats operation under the WhatsApp Numbers resource allows users to delete chat conversations linked to a particular WhatsApp number by specifying one or more phone numbers.
Common scenarios where this node is beneficial include:
- Cleaning up chat history for specific contacts on a WhatsApp number.
- Automating chat management tasks in bulk for multiple phone numbers.
- Maintaining privacy or compliance by removing sensitive chat data programmatically.
For example, a user can specify a WhatsApp number ID and a list of contact phone numbers to delete all chats related to those contacts from that WhatsApp number.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number ID | The unique identifier of the WhatsApp number (device) whose chats you want to delete. |
| Chat Phone Numbers | One to ten phone numbers (with international country codes) representing the chats to delete. |
Output
The output is an array of JSON objects corresponding to each input item processed. Each JSON object contains the response from the Wassenger API after attempting to delete the specified chats. This typically includes confirmation of deletion or error details if the operation failed.
The node does not output binary data.
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 depends on internal methods that handle the API calls for deleting chats.
Troubleshooting
Common Issues:
- Invalid or missing WhatsApp Number ID: Ensure the device ID is correct and corresponds to an existing WhatsApp number in your Wassenger account.
- Incorrect phone number format: Phone numbers must include the international country code and be valid.
- Exceeding the maximum allowed phone numbers (more than 10): The node limits deletion requests to a maximum of 10 phone numbers at once.
- API authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
Error Messages:
"error": "Invalid device ID"โ Check the WhatsApp Number ID input."error": "Phone number format invalid"โ Confirm phone numbers include country codes and are properly formatted."error": "Authentication failed"โ Recheck API key credentials and permissions.
To resolve these issues, verify inputs carefully, ensure proper formatting, and confirm API credentials are valid.