Evolution API icon

Evolution API

Interact with Evolution API

Overview

The node "Evolution API" allows interaction with the Evolution API service. Specifically, for the resource Mensagem and operation Enviar Enquete, it sends a poll (enquete) message to a specified recipient via an instance of the Evolution API. This is useful for automating the distribution of polls or surveys through messaging platforms supported by the API.

Practical examples include:

  • Sending customer satisfaction surveys automatically after a service interaction.
  • Distributing quick opinion polls to a group of users.
  • Collecting feedback on events or products via instant messaging.

Properties

Name Meaning
Nome Da Instância The name of the instance that will send the poll.
Número Do Destinatário The recipient's number (destination identifier) where the poll will be sent.
Titulo Da Enquete The title or caption of the poll message.
Opções Da Enquete The options for the poll; must be unique, minimum 2 and maximum 12 options can be provided.

Note: There is also a notice reminding that the poll must have at least 2 and at most 12 unique options.

Output

The node outputs a JSON array containing the response from the Evolution API after sending the poll. The exact structure depends on the API response but typically includes confirmation details such as message ID, status, or error information if the sending failed.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for the Evolution API configured in n8n.
  • The node uses the base URL https://doc.evolution-api.com/api-reference for requests.
  • Proper configuration of the instance name and recipient number is necessary for successful operation.

Troubleshooting

  • Operation not supported error: If the selected operation or resource is not implemented, the node throws an error indicating unsupported operation. Ensure you select valid combinations.
  • Invalid input errors: Providing fewer than 2 or more than 12 poll options, or duplicate options, may cause the API to reject the request.
  • Authentication failures: Missing or incorrect API credentials will prevent the node from successfully sending the poll.
  • Incorrect recipient number format: Ensure the destination number matches the expected format required by the Evolution API.

Links and References

Discussion