Create TikTok and Reels-style videos from photos with TrendSwap
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls trendswap.app over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Validate & Normalize Input (Code): runs custom JavaScript code
- Is Input Valid? (If): checks a condition and branches into true / false
- Submit Job to TrendSwap API (HTTP Request): calls trendswap.app (POST)
- Return 400 Validation Error (Respond to Webhook): sends the response back to the webhook caller
- Extract Job ID & Init Counter (Code): runs custom JavaScript code
- Wait: waits 10 seconds
- Check Render Status (HTTP Request): calls trendswap.app (POST)
- Evaluate Polling State (Code): runs custom JavaScript code
- Is Video Render Complete? (If): checks a condition and branches into true / false
- Format Deliverable Payload (Edit Fields (Set)): sets 6 fields: success, job_id, video_url…
…plus 4 more steps. See the full node list below.
HTTP calls to: trendswap.app
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 (8)
- Webhook
n8n-nodes-base.webhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick Overview This workflow runs daily and uses the TrendSwap API to generate a TikTok/Reels-style video from a single photo by applying a selected viral template, then checks the rendering status to retrieve the completed result. How it works 1. Runs every…