Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
This node integrates with the SparkBot WhatsApp API to manage chat files associated with WhatsApp numbers. Specifically, the Download File operation under the Chat Files resource allows users to download a file that was shared or received in a WhatsApp chat.
Typical use cases include:
- Automatically retrieving media files (images, videos, documents) sent or received via WhatsApp for archiving or processing.
- Integrating WhatsApp file downloads into workflows such as CRM updates, content moderation, or backup systems.
- Enabling automated handling of customer-shared files in support or sales automation scenarios.
For example, a user can configure this node to download an image file sent by a customer on WhatsApp and then upload it to a cloud storage service or analyze it with an AI service.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) from which the file will be downloaded. This identifies the specific WhatsApp account. |
| File ID | The ID of the file to download. This uniquely identifies the file within the selected WhatsApp number's chat files. |
Output
The node outputs JSON data representing the downloaded file's details and content. While the exact structure depends on the API response, typically it includes metadata about the file (such as filename, size, MIME type) and the file content itself.
If the file is binary (e.g., images, videos), the node may output the file data in a binary format suitable for further processing or saving within n8n workflows.
Dependencies
- Requires an active connection to the SparkBot WhatsApp API.
- Needs an API key credential configured in n8n to authenticate requests.
- The node relies on dynamic loading methods to fetch available WhatsApp numbers and files (
getDevicesandgetFiles), so proper API access and permissions are necessary.
Troubleshooting
Common issues:
- Invalid or expired API key leading to authentication errors.
- Incorrect WhatsApp number or file ID causing "file not found" errors.
- Network connectivity problems preventing API calls.
Error messages:
"error": "File not found"β Verify the File ID and WhatsApp Number are correct and correspond to existing files."error": "Authentication failed"β Check that the API key credential is valid and has not expired.- Timeout or network errors β Ensure stable internet connection and that the SparkBot API endpoint is reachable.
Resolving these usually involves verifying credentials, confirming input parameters, and checking network status.
Links and References
- SparkBot WhatsApp API Documentation (general reference for API capabilities)
- n8n Documentation on Creating Custom Nodes (for extending or debugging nodes)
Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.