Actions12
Overview
This node integrates with the Wazzap API to send polls (enquetes) via WhatsApp. Specifically, the "Enviar Enquete" operation under the "Mensagem" resource allows users to create and send a poll message to a specified recipient number through a chosen instance of the Wazzap service.
Common scenarios include:
- Collecting feedback or opinions from customers or group members.
- Conducting quick surveys or votes within WhatsApp chats.
- Engaging audiences interactively by sending multiple-choice questions.
For example, a business could use this node to send a poll asking customers which new product feature they prefer, directly through WhatsApp.
Properties
| Name | Meaning |
|---|---|
| Nome Da Instância | The name of the Wazzap instance that will send the poll. |
| Número Do Destinatário | The recipient's phone number in WhatsApp format where the poll will be sent. |
| Titulo Da Enquete | The title or question text of the poll being sent. |
| Opções Da Enquete | The options for the poll; must be between 2 and 12 unique choices. Each option is a string value. |
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 Wazzap API after attempting to send the poll. This typically includes confirmation details such as message IDs, status, or error information if the request failed.
No binary data output is indicated for this operation.
Dependencies
- Requires an active Wazzap API credential configured in n8n for authentication.
- Needs internet access to reach the Wazzap API endpoint at
https://doc.wazzap.mx/api-reference. - Proper configuration of the instance name and recipient number is necessary for successful message delivery.
Troubleshooting
- Operation Not Supported Error: If the node throws an error stating the operation is not supported, verify that the resource and operation names are correctly set to "Mensagem" and "Enviar Enquete" respectively.
- Invalid Recipient Number: Ensure the recipient number is in the correct WhatsApp format; otherwise, the API may reject the request.
- Insufficient Options: The poll requires at least 2 unique options and no more than 12. Providing fewer or duplicate options will likely cause errors.
- Authentication Failures: Check that the API key or credentials are valid and properly configured in n8n.
- Network Issues: Confirm network connectivity to the Wazzap API endpoint.
Links and References
- Wazzap API Documentation (official API reference)
- n8n Documentation (for general node usage and credential setup)