Generate Seedance videos with the Vancine Doubao API using polling
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- setFields (Edit Fields (Set)): sets 6 fields: model, prompt, size…
- submitTask (HTTP Request): calls an HTTP API (POST)
- saveTaskId (Edit Fields (Set)): sets 5 fields: task_id, base_url, intervalSeconds…
- Wait: pauses before continuing
- pollTask (HTTP Request): calls an HTTP API (GET)
- carryState (Edit Fields (Set)): sets 5 fields: task_id, poll_index, maxPolls…
- Merge: merges the data from its input branches
- mergeState (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- outputResult (Edit Fields (Set)): sets 2 fields: result_url, task_id
…plus 5 more steps. See the full node list below.
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.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Stop and Error
n8n-nodes-base.stopAndError
From the author
Quick overview Generate Seedance videos through the Vancine API, automatically poll asynchronous tasks, return the final video URL, and handle failed or timed-out generations with bounded retries. How it works 1. Starts manually to define the Seedance model,…