Actions50
- Message Actions
- Contact Actions
- Account Actions
- Call Actions
- Chat Actions
- Group Actions
- Instance Actions
- Media Actions
- Session Actions
- User Actions
Overview
This node integrates with the WSAPI WhatsApp API to perform various operations on WhatsApp resources. Specifically, for the Delete Chat operation under the Chat resource, it allows users to delete a specific WhatsApp chat by providing its unique identifier.
Typical use cases include:
- Automating chat management by programmatically deleting chats that are no longer needed.
- Cleaning up group or individual chats as part of workflow automation.
- Integrating WhatsApp chat deletion into larger communication or CRM workflows.
For example, a user might set up an automation that deletes chats older than a certain date or removes chats after a customer support case is closed.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the WhatsApp chat to delete. For individual contacts, this is the phone number followed by @s.whatsapp.net. For groups, this is the group ID followed by @g.us. Examples: 1234567890@s.whatsapp.net (individual), 120363123456789@g.us (group). |
Output
The output JSON contains the response from the WSAPI WhatsApp 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 expected for this operation.
Dependencies
- Requires an active connection to the WSAPI WhatsApp API.
- Needs an API key credential configured in n8n to authenticate requests.
- The base URL for the WSAPI must be set in the credentials configuration.
Troubleshooting
- Invalid Chat ID: If the provided Chat ID does not exist or is malformed, the API may return an error. Ensure the Chat ID matches the required format (
phone@s.whatsapp.netfor individuals,groupID@g.usfor groups). - Authentication Errors: Missing or invalid API credentials will cause authentication failures. Verify that the API key credential is correctly configured and has necessary permissions.
- Network Issues: Connectivity problems between n8n and the WSAPI endpoint can cause timeouts or request failures. Check network settings and WSAPI service status.
- Operation Not Implemented: If the node throws an error about the operation not being implemented, ensure you have the latest version of the node and that the "Delete Chat" operation is supported.
Links and References
- WSAPI WhatsApp API Documentation (Replace with actual URL)
- WhatsApp Chat Identifiers Explained (Replace with actual URL)