Actions31
- Revenda Actions
- Instagram Actions
- Messenger Actions
- WhatsApp Actions
- Telegram Actions
- Mercado Livre Actions
- OLX Actions
- WebChat Actions
- Email Actions
Overview
The NotificaMe Hub node for n8n, when configured with the resource WebChat and operation Enviar Arquivo, allows you to send a file (such as a document, image, or video) to a specific recipient via a WebChat channel. This is useful in scenarios where you need to automate the delivery of files—like sending invoices, images, or multimedia content—to users interacting through your web chat interface.
Practical examples:
- Automatically send a PDF receipt to a customer after a purchase.
- Deliver product images or promotional videos to users engaging with your website's chat support.
- Share documents or resources with clients during a live chat session.
Properties
Below are the input properties relevant to the WebChat → Enviar Arquivo operation:
| Display Name | Type | Description |
|---|---|---|
| ID Do Canal | String | The unique identifier of the WebChat channel. |
| ID Do Destinatário | String | The recipient's unique identifier within WebChat. |
| Tipo De Arquivo | Options | The type of file to send: Documento, Imagem, or Vídeo. |
| URL Do Arquivo | String | Public URL of the file to be sent. |
| Nome Do Arquivo | String | Optional name for the file being sent. |
Output
The node outputs a json object containing the result of the file-sending operation. While the exact structure may depend on the API response, it typically includes:
- status: Indicates success or failure of the operation.
- messageId: Unique identifier for the sent message (if successful).
- details: Additional information about the operation or any errors encountered.
Example output:
{
"status": "success",
"messageId": "abc123xyz",
"details": {
"fileType": "document",
"fileName": "invoice.pdf"
}
}
If the node supports binary data output, it would represent the file that was sent, but in this case, the node expects a public URL rather than uploading binary data directly.
Dependencies
- External Service: Requires access to the NotificaMe Hub API at
https://hub.notificame.com.br/v1. - API Credentials: You must configure the
notificamehubApicredential in n8n. - File Hosting: The file to be sent must be accessible via a public URL.
Troubleshooting
Common issues:
- Invalid Channel or Recipient ID: If the provided IDs do not exist or are incorrect, the API will likely return an error indicating the recipient or channel was not found.
- Inaccessible File URL: If the file URL is not publicly accessible, the API cannot retrieve the file, resulting in an error such as "File not found" or "Unable to fetch file."
- Unsupported File Type: If the file type does not match the selected option (e.g., sending a video as a document), the API may reject the request.
- Missing Required Fields: Omitting required fields like Channel ID, Recipient ID, or File URL will cause validation errors.
Error messages and resolutions:
"Channel not found": Double-check the Channel ID."Recipient not found": Verify the Recipient ID."File could not be retrieved": Ensure the file URL is correct and publicly accessible."Invalid file type": Make sure the file matches the selected type.
Links and References
This summary provides a clear understanding of how to use the WebChat → Enviar Arquivo operation in the NotificaMe Hub n8n node, including its inputs, expected outputs, dependencies, and troubleshooting tips.