Actions64
- Instancia Actions
- Mensagem Actions
- Grupo Actions
- Chat Actions
- Perfil Actions
- Evento Actions
- Integração Actions
Overview
The node provides an interface to interact with the "Evolution API," specifically supporting operations on various resources. For the "Chat" resource, the "Deletar Mensagem" (Delete Message) operation allows users to delete a specific message from a chat instance. This is useful in scenarios where messages need to be removed for privacy, error correction, or moderation purposes.
Practical examples include:
- Automatically deleting sent messages after a certain time.
- Removing mistakenly sent messages.
- Moderating chat content by deleting inappropriate messages.
Properties
| Name | Meaning |
|---|---|
| Nome Da Instância | The name of the chat instance where the message exists. |
| Contato | The contact number associated with the chat where the message will be deleted. |
| ID Da Mensagem | The unique identifier of the message to be deleted. |
| Mensagem É Minha | Boolean indicating if the message was sent by the instance itself (true/false). |
| Número Do Participante | The participant's number who sent the message; required only if the message was not sent by the instance (Mensagem É Minha is false). |
Output
The node outputs a JSON array containing the result of the delete message operation. The exact structure depends on the Evolution API response but typically includes confirmation of deletion status or any relevant metadata returned by the API.
No binary data output is indicated.
Dependencies
- Requires an API key credential for authenticating with the Evolution API.
- The node expects the Evolution API to be accessible and properly configured.
- No additional environment variables are explicitly required beyond the API authentication.
Troubleshooting
- Operation Not Supported Error: If the node throws an error stating the operation is not supported, verify that the "resource" and "operation" parameters are correctly set to "chat" and "delete-message" respectively.
- Missing Required Parameters: Ensure all required properties (instance name, contact number, message ID, and participant number if applicable) are provided.
- Authentication Issues: Confirm that the API key credential is valid and has sufficient permissions to delete messages.
- Message Not Found: If the message ID does not exist or is incorrect, the API may return an error. Double-check the message ID.
- Permission Denied: If attempting to delete a message not sent by the instance without proper rights, the operation may fail. Set "Mensagem É Minha" correctly and provide the participant number when needed.
Links and References
- Evolution API official documentation (not provided here; consult your API provider)
- n8n documentation on creating custom nodes and using credentials: https://docs.n8n.io/
- General best practices for chat message management and moderation