Evolution API icon

Evolution API

Interact with Evolution API

Overview

This node interacts with the Evolution API, specifically providing operations related to chat management. The "Deletar Mensagem" (Delete Message) operation under the "Chat" resource allows users to delete a specific message from a chat conversation. This is useful in scenarios where messages need to be retracted or 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 instance from which the message will be deleted.
Contato The contact number associated with the chat where the message exists.
ID Da Mensagem The unique identifier of the message that needs to be deleted.
Mensagem É Minha Boolean indicating if the message was sent by the instance itself (true) or not (false).
Número Do Participante The participant's number who sent the message; required only if the message was not sent by the instance (i.e., when "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 about the deleted message.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the Evolution API.
  • The node expects the Evolution API base URL and headers to be configured internally.
  • Proper configuration of the instance name and contact details is necessary for successful operation.

Troubleshooting

  • Operation Not Supported Error: If the node throws an error stating the operation is not supported, verify that the "resource" is set to "chat-api" and the "operation" is "delete-message".
  • Missing Required Parameters: Ensure all required properties (instance name, contact number, message ID, fromMe flag, and participant number if applicable) are provided.
  • Permission Issues: Deleting messages may require appropriate permissions on the Evolution API side; ensure the API key has sufficient rights.
  • Incorrect Participant Number: When deleting messages not sent by the instance, the participant number must be accurate; otherwise, the deletion may fail.
  • API Connectivity Problems: Network issues or incorrect API credentials can cause failures; check connectivity and authentication settings.

Links and References

  • Evolution API Documentation (official API reference)
  • n8n documentation on creating custom nodes and handling API integrations (for general guidance)

Discussion