Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files 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
Chat Files → Get File Details
AI-generatedOverview
This node interacts with the WaliChat WhatsApp API, specifically focusing on managing chat files when using the "Chat Files" resource. The "Get File Details" operation retrieves detailed information about a specific file associated with a WhatsApp number. This is useful in scenarios where you need metadata or attributes of a file previously sent or received via WhatsApp, such as checking file size, type, or other properties before processing or downloading it.
Practical examples include:
- Fetching details of an image or document shared in a WhatsApp chat to display its metadata in a dashboard.
- Validating file attributes before triggering further automation like saving the file externally or sending notifications.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) from which the file originates. |
| File ID | The unique identifier of the file whose details are to be retrieved. |
Output
The output JSON contains the detailed metadata of the requested file. This typically includes attributes such as file name, size, MIME type, creation date, and possibly URLs or identifiers for accessing or downloading the file.
If the node supports binary data output (not explicitly shown here), it would represent the actual file content or a stream for download purposes.
Dependencies
- Requires an active connection to the WaliChat WhatsApp API.
- Needs an API key credential configured in n8n for authentication with the WaliChat service.
- The node depends on internal methods that load available WhatsApp numbers and files dynamically for selection.
Troubleshooting
Common issues:
- Invalid or missing WhatsApp number ID: Ensure the selected device ID corresponds to an active WhatsApp number linked to your WaliChat account.
- Incorrect File ID: Verify the file ID exists and is accessible under the specified WhatsApp number.
- Authentication errors: Confirm that the API key credential is correctly set up and has sufficient permissions.
Error messages:
"error": "File not found"— The specified file ID does not exist for the given WhatsApp number."error": "Unauthorized"— The API key is invalid or lacks permission; reconfigure credentials.- Network or timeout errors — Check connectivity and API service status.
Resolving these usually involves verifying input parameters, refreshing credentials, and ensuring the WaliChat API service is operational.
Links and References
- WaliChat Official API Documentation (example placeholder link)
- n8n Documentation on Creating Custom Nodes
- WhatsApp Business API general info: https://developers.facebook.com/docs/whatsapp/overview/