Actions83
- Instances Actions
- Client Actions
- Message Actions
- Chat Actions
- Contact Actions
- Number Actions
- Group Actions
- Channel Actions
- Label Actions
- Story Actions
Overview
This node interacts with the WaAPI service to clear chat messages in a specified chat instance. It is useful for scenarios where you want to programmatically delete all messages from a particular chat, such as cleaning up chat history or resetting conversations in bulk.
Practical examples include:
- Automatically clearing chat messages after a certain event or time period.
- Managing chat data privacy by removing old messages.
- Resetting group chats or individual chats before starting new discussions.
Properties
| Name | Meaning |
|---|---|
| Id | Instance ID (a numeric identifier for the WaAPI instance to target) |
| Chat Id | Chat ID in the format <countrycode_short><usernumber>@c.us for individual chats or @g.us for groups |
Output
The node outputs JSON data representing the result of the clear chat messages operation. This typically includes confirmation of success or failure and any relevant metadata returned by the WaAPI service.
No binary data output is indicated.
Dependencies
- Requires an API key credential for authenticating with the WaAPI service.
- The node communicates with the WaAPI REST API at
https://waapi.app/api/v1. - Proper configuration of the API key credential within n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing API key credential will cause authentication failures.
- Incorrect
IdorChat Idvalues may lead to errors or no action taken. - Network connectivity problems can prevent communication with the WaAPI endpoint.
Error messages:
- Authentication errors usually indicate invalid or expired credentials; recheck and update the API key.
- "Chat not found" or similar errors suggest the provided
Chat Iddoes not exist or is malformed. - Rate limiting or quota exceeded errors require checking your WaAPI account limits.