Evolution API icon

Evolution API

Interact with Evolution API

Overview

This node allows you to configure temporary messages (mensagens temporárias) for a WhatsApp group using the Evolution API. It is useful for administrators who want to automatically delete messages in a group after a certain period, helping maintain privacy or reduce clutter. For example, you can set messages to disappear after 24 hours, 7 days, or 90 days, or disable this feature entirely.

Practical scenarios:

  • Automatically remove sensitive information from group chats.
  • Keep group conversations clean by removing old messages.
  • Comply with privacy policies requiring message expiration.

Properties

Display Name Type Description
Nome Da Instância String Digite o nome da instância (Enter the instance name).
ID Do Grupo String ID do grupo para configurar mensagens temporárias (Group ID).
Expiração Options Tempo de expiração das mensagens (Message expiration time):
- Desativado (Disabled): 0
- 24 Horas (24 Hours): 86400
- 7 Dias (7 Days): 604800
- 90 Dias (90 Days): 7776000

All properties are required.

Output

The output will be a JSON object (or array of objects) containing the result of the operation as returned by the Evolution API. The exact structure depends on the API response, but typically includes status and details about the group configuration update.

Example output:

[
  {
    "status": "success",
    "groupJid": "123456789@group.whatsapp.com",
    "expiration": 86400,
    "message": "Temporary messages updated successfully."
  }
]

Dependencies

  • External Service: Requires access to the Evolution API.
  • API Key/Credentials: You must configure valid Evolution API credentials in n8n.
  • n8n Configuration: No special environment variables beyond standard credential setup.

Troubleshooting

  • Common Issues:

    • Invalid or missing credentials will cause authentication errors.
    • Incorrect group ID may result in "group not found" or similar errors.
    • Unsupported operation/resource combinations will throw an error indicating the function is not supported.
  • Error Messages:

    • "Operação não suportada."
      Resolution: Ensure you selected a valid operation for the chosen resource.
    • API-specific errors (e.g., invalid group ID, permission denied) will be passed through from the Evolution API. Check your input values and permissions.

Links and References

Discussion