Evolution API icon

Evolution API

Interact with Evolution API

Overview

The node named "Evolution API" provides an interface to interact with the Evolution API service. Specifically, for the Resource "Chat" and Operation "Block Contact," it allows users to block or unblock a contact by specifying the contact's identifier. This functionality is useful in scenarios where automated control over chat contacts is needed, such as managing user access, filtering unwanted communications, or automating moderation tasks.

For example, a user can configure this node to block a spammer's contact number automatically or unblock a previously blocked contact based on certain workflow conditions.

Properties

Name Meaning
Instance Name The name of the Evolution API instance to connect to.
Contact The contact number (identifier) of the chat participant to block or unblock.
Action The action to perform on the contact: either "Block" to block the contact or "Unblock".

Output

The node outputs a JSON array containing the result of the block or unblock operation. The exact structure depends on the Evolution API response but generally includes confirmation of the action performed on the specified contact.

No binary data output is indicated in the source code.

Dependencies

  • Requires an active connection to the Evolution API service.
  • Needs an API authentication credential configured in n8n to authorize requests.
  • The base URL for API requests is https://doc.evolution-api.com/api-reference.

Troubleshooting

  • Unsupported operation error: If the node throws an error stating the operation is unsupported, verify that the Resource is set to "Chat" and the Operation to "Block Contact." Also, ensure the node version supports this operation.
  • Missing or invalid credentials: Ensure the API key or authentication token for the Evolution API is correctly configured in n8n.
  • Invalid contact number: The "Contact" property must be a valid identifier recognized by the Evolution API; otherwise, the API may return an error.
  • Network or API errors: Check network connectivity and API availability if requests fail.

Links and References

Discussion