Actions53
- Instância Actions
- Mensagem Actions
- Grupo Actions
- Chat Actions
- Evento Actions
- Integração Actions
Overview
This node interacts with the Evolution API v2 to manage WhatsApp-related resources such as instances, messages, groups, chats, events, and integrations. Specifically, for the Chat resource and the Deletar Mensagem (Delete Message) operation, it allows users to delete a WhatsApp message for all participants in a chat.
This operation is useful when you want to programmatically remove a sent message from a conversation, for example, to correct mistakes or retract sensitive information.
Practical examples:
- Automatically deleting a message after a certain condition is met.
- Moderating chat content by removing inappropriate messages.
- Implementing a "message recall" feature in automated workflows.
Properties
| Name | Meaning |
|---|---|
| Instance Name | The name of the WhatsApp instance where the message deletion will be performed. This identifies which connected WhatsApp session to use. |
(Note: The provided input properties JSON only includes "Instance Name" relevant to this operation.)
Output
The output JSON contains the response from the Evolution API after attempting to delete the message. It typically includes:
success: A boolean indicating if the operation was successful.message: A confirmation message like "Operation completed successfully".timestamp: The time when the operation was executed.
If the API returns additional data, it will be included in the output object. In case of errors, an error message will be returned instead.
No binary data output is expected for this operation.
Dependencies
- Requires an authenticated connection to the Evolution API v2 via an API key credential configured in n8n.
- The node uses HTTP requests to the Evolution API endpoints.
- The user must have a valid WhatsApp instance registered and connected through the Evolution API.
Troubleshooting
Common issues:
- Invalid or disconnected instance name: Ensure the instance name corresponds to an active WhatsApp session.
- Insufficient permissions or expired API credentials: Verify that the API key is valid and has necessary rights.
- Trying to delete a message that does not exist or is too old: The API may reject deletion requests for messages outside allowed timeframes.
Error messages:
"Instance not found": Check the instance name parameter."Message could not be deleted": Confirm the message ID and that the message is eligible for deletion.- Network or authentication errors: Validate API credentials and network connectivity.
To resolve errors, verify parameters, ensure the instance is connected, and check API documentation for message deletion constraints.
Links and References
- Evolution API Documentation (general reference for API endpoints)
- WhatsApp message deletion best practices (refer to WhatsApp Business API guidelines)
Note: The source code did not explicitly show the exact parameters for the "deleteMessage" operation under the Chat resource, but based on the pattern and the provided property "Instance Name," the above summary reflects the typical usage and behavior.