Check video upload sizes for Discord, WhatsApp, Gmail and more with VidSmaller
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls vidsmaller.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Sample videos (Edit Fields (Set)): sets or maps fields
- Read webhook input (Edit Fields (Set)): sets or maps fields
- Split Out: splits a list into separate items
- Get file size (HEAD) (HTTP Request): calls an HTTP API (HEAD)
- Read Content-Length (Code): runs custom JavaScript code
- Could we read the size? (If): checks a condition and branches into true / false
- VidSmaller: limit + estimate (HTTP Request): calls vidsmaller.com (POST)
- Size unknown (Edit Fields (Set)): sets 6 fields: status, label, url…
- Route by verdict (Switch): routes items into 2 branches
- Collect results (Merge): merges the data from its input branches
…plus 4 more steps. See the full node list below.
HTTP calls to: vidsmaller.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow accepts a list of video URLs (via webhook or manual run), checks each file’s size using an HTTP HEAD request, and calls VidSmaller’s estimate API to determine whether the video fits Discord, WhatsApp, or email upload limits, then…