Evolution API icon

Evolution API

Interact with Evolution API

Overview

This node, named "Evolution API," allows users to interact with the Evolution API service. Specifically, for the resource "Grupo" and operation "Mensajes Temporales" (toggle ephemeral messages), it enables configuring temporary message settings in a group chat by setting an expiration time for messages. This is useful for managing message retention policies in group conversations, such as automatically deleting messages after a set period to maintain privacy or reduce clutter.

Practical examples include:

  • Setting messages in a group to expire after 24 hours to ensure sensitive information is not stored indefinitely.
  • Disabling message expiration to keep all messages permanently.
  • Configuring longer expiration times like 7 days or 90 days depending on group needs.

Properties

Name Meaning
Nombre De La Instancia The name of the instance where the group exists; identifies which instance to configure.
ID Del Grupo The unique identifier of the group whose ephemeral message settings will be changed.
Expiración The expiration duration for messages in the group. Options: Desactivado (Off), 24 Horas (24 hours), 7 Días (7 days), 90 Días (90 days).

Output

The node outputs a JSON array containing the result of the toggle ephemeral messages operation. The exact structure depends on the API response but generally includes confirmation of the updated ephemeral message settings for the specified group.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the Evolution API.
  • The node uses the base URL https://doc.evolution-api.com/api-reference for API requests.
  • Proper configuration of the API credential within n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing instance name or group ID can cause the operation to fail.
    • Incorrect API credentials will lead to authentication errors.
    • Unsupported operations or resources will throw an error indicating the function is not supported.
  • Error messages:

    • "Operação não suportada." means the selected operation is not supported for the chosen resource.
    • Errors related to missing required parameters indicate that one or more input properties were not provided.
  • Resolutions:

    • Verify that all required fields (instance name, group ID, expiration) are correctly filled.
    • Ensure the API key credential is valid and has appropriate permissions.
    • Confirm that the resource and operation combination is supported by the node.

Links and References

Discussion