Actions59
- Instancia Actions
- Mensaje Actions
- Grupo Actions
- Crear Grupo
- Actualizar Imagen Del Grupo
- Actualizar Nombre Del Grupo
- Actualizar Descripción Del Grupo
- Actualizar Configuraciones
- Actualizar Miembros
- Buscar Enlace De Invitación
- Revocar Enlace De Invitación
- Enviar Enlace De Invitación
- Buscar Grupos
- Encontrar Participantes
- Mensajes Temporales
- Entrar en El Grupo
- Salir Del Grupo
- Chat Actions
- Perfil Actions
- Evento Actions
Overview
This node integrates with the Wazend API to send documents as messages. Specifically, for the "Mensaje" resource and the "Enviar Documento" operation, it allows users to send a document file (via URL or base64) to a specified recipient number through a chosen instance of the service.
Common scenarios include:
- Automating sending invoices, contracts, or reports as PDF or other document formats to clients.
- Dispatching official documents or forms directly via messaging platforms.
- Sending personalized documents with optional captions and mentions in group chats.
Example: A business could automatically send a purchase order PDF to a customer’s WhatsApp number after an order is confirmed.
Properties
Name | Meaning |
---|---|
Nombre De La Instancia | The name of the instance that will send the document. |
Número Del Destinatario | The recipient's phone number in international format. |
Documento | The document to send, provided as a URL or base64 string. |
Mensaje | Optional text message (caption) sent along with the document. |
Nombre Del Archivo | The filename for the document being sent (default is "document.pdf"). |
Opciones | Additional options including: |
- Delay | Milliseconds delay before sending the message (default 1200 ms). |
- Responder Mensaje | Optionally reply to a specific message by providing its ID. |
- Menciones | Settings to mention participants: either mention everyone or specify comma-separated numbers to mention. |
Output
The node outputs a JSON array containing the response from the Wazend API after attempting to send the document message. This typically includes status information about the message delivery.
If binary data were involved, it would represent the document content, but here the document is input as URL/base64 and output is JSON metadata only.
Dependencies
- Requires an active connection to the Wazend API.
- Needs an API authentication credential configured in n8n (an API key or token).
- Internet access to fetch documents if URLs are used.
- Properly configured instance name matching the Wazend environment.
Troubleshooting
Common issues:
- Invalid or missing instance name causing authentication failures.
- Incorrect recipient number format leading to message delivery errors.
- Document URL inaccessible or invalid base64 causing upload failure.
- Delay option too low might cause rate limiting or throttling by the API.
- Replying to a non-existent message ID may result in errors.
Error messages:
"Operação não suportada."
means the selected operation-resource combination is not implemented; verify correct resource and operation selection.- API errors related to authentication usually indicate missing or incorrect API credentials.
- Network errors suggest connectivity issues or invalid document URLs.
To resolve, ensure all required fields are correctly filled, credentials are valid, and the document source is accessible.
Links and References
- Wazend API Documentation (base URL referenced in code)
- n8n documentation on Creating Custom Nodes