Actions37
- Instance Actions
- Message Actions
- Group Actions
- Contact Actions
- Chat Actions
- Campaign Actions
- Chatbot Actions
Overview
This node integrates with the UazAPI service to manage WhatsApp messaging and related operations. Specifically, the Message - Download Media operation allows users to download media files attached to a WhatsApp message by providing the message ID.
Common scenarios where this node is beneficial include:
- Automatically retrieving images, videos, or documents sent in WhatsApp messages for further processing or storage.
- Archiving media content from conversations.
- Integrating WhatsApp media downloads into automated workflows, such as saving attachments to cloud storage or triggering other processes based on received media.
Example use case:
- A customer support workflow that downloads media attachments sent by customers via WhatsApp to analyze or store them in a CRM system.
Properties
| Name | Meaning |
|---|---|
| Message ID | The unique identifier of the WhatsApp message whose media file you want to download. |
Output
The output JSON contains the response from the UazAPI endpoint responsible for downloading media associated with the specified message ID. This typically includes metadata about the media file and possibly a URL or base64 data representing the downloaded media.
If the media is binary (e.g., image, video), the node returns it in the json output field, which can then be used downstream in the workflow. The exact structure depends on the API response but generally includes fields like file name, type, size, and download link or raw data.
Dependencies
- Requires an active connection to the UazAPI service.
- Requires valid credentials configured in n8n for authenticating requests to UazAPI (an API key or token).
- The node uses HTTP requests authenticated via these credentials to interact with the UazAPI endpoints.
Troubleshooting
- Invalid Message ID: If the provided message ID does not exist or is incorrect, the API may return an error indicating the message was not found. Verify the message ID is correct.
- Authentication Errors: Ensure that the API credentials are correctly set up and have sufficient permissions to access message media.
- Network Issues: Connectivity problems between n8n and UazAPI can cause request failures. Check network settings and API availability.
- Media Not Available: Some messages might not contain downloadable media or the media might have expired. Confirm the message actually has media attached.
- Error Handling: The node supports continuing on failure; if enabled, errors will be returned in the output JSON under an
errorfield instead of stopping execution.
Links and References
- UazAPI Documentation (hypothetical link, replace with actual)
- WhatsApp Business API media handling concepts: https://developers.facebook.com/docs/whatsapp/api/media
- n8n HTTP Request Node documentation: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/