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 "Mensagem" and operation "Enviar Enquete," it enables sending a poll message to a specified recipient via an instance of the Evolution API. This is useful in scenarios where you want to gather feedback or opinions from users through polls sent directly to their messaging platform.

Practical examples include:

  • Sending customer satisfaction surveys.
  • Conducting quick opinion polls within a chat group.
  • Collecting votes on event planning or decision-making.

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 phone number or identifier to whom the poll will be sent.
Titulo Da Enquete The title or question of the poll being sent.
Opções Da Enquete The options available for voting in the poll. Must be between 2 and 12 unique choices.

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 JSON data representing the result of the poll sending operation. This typically includes confirmation details such as message IDs, status, or any response returned by the Evolution API indicating success or failure of the poll dispatch.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the Evolution API.
  • The node expects the Evolution API service to be accessible and properly configured.
  • No additional environment variables are explicitly required beyond the API authentication.

Troubleshooting

  • Common Issues:

    • Providing fewer than 2 or more than 12 poll options will likely cause errors.
    • Duplicate options in the poll may be rejected.
    • Incorrect or missing instance name or recipient number can lead to failed requests.
    • Network or authentication failures with the Evolution API will prevent poll sending.
  • Error Messages:

    • "Operação não suportada." indicates that the selected operation-resource combination is not implemented.
    • Validation errors related to poll options count or uniqueness.
  • Resolutions:

    • Ensure all required fields are filled correctly.
    • Verify the uniqueness and count of poll options.
    • Confirm API credentials and network connectivity.
    • Check that the instance name corresponds to a valid Evolution API instance.

Links and References

  • Evolution API official documentation (not provided here; consult your API provider).
  • n8n documentation on creating and using custom nodes for API integrations.

Discussion