Evolution API icon

Evolution API

Interact with Evolution API

Overview

The node "Evolution API" provides an interface to interact with the Evolution API, specifically supporting operations on various resources. For the resource "Mensagem" and operation "Reagir Mensagem" (Send Reaction), it allows users to send an emoji reaction to a specific message in a chat. This is useful for automating responses or acknowledgments in messaging platforms where reactions are supported.

Practical examples include:

  • Automatically reacting with a thumbs-up emoji when a message meets certain criteria.
  • Sending custom emoji reactions to messages in group chats based on workflow logic.

Properties

Name Meaning
Nome Da Instância The name of the instance to connect to the Evolution API.
Número Do Chat The chat number (ID) where the target message is located.
ID Da Mensagem The unique identifier of the message that will receive the reaction.
Mensagem Própria Boolean indicating whether the message is your own message (true) or someone else's.
Emoji Da Reação The emoji character used as the reaction (e.g., 👍).

Output

The node outputs a JSON array containing the result of the reaction operation. Each item in the output corresponds to the response from the Evolution API after attempting to send the reaction. The exact structure depends on the API response but generally includes confirmation of the reaction being sent or error details if the operation failed.

No binary data output is indicated.

Dependencies

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

Troubleshooting

  • Common Issues:

    • Invalid or missing instance name, chat number, or message ID can cause failures.
    • Incorrect emoji format may lead to rejection by the API.
    • Authentication errors if the API key is invalid or not provided.
  • Error Messages:

    • "Operação não suportada." indicates the requested operation is not implemented for the selected resource.
    • API errors returned from the Evolution API should be checked for details such as invalid parameters or permission issues.
  • Resolutions:

    • Verify all required fields are correctly filled.
    • Ensure the API key credential is valid and has necessary permissions.
    • Use supported emojis and confirm the message ID exists in the specified chat.

Links and References

Discussion