Generate Seedance 2 AI videos from form input and email links with Gmail
Quick overview This workflow collects video parameters via an n8n form, creates a Seedance 2 video generation job through the Kie.ai API, polls until the job succeeds, and emails the resulting video link using Gmail.
How it works Receives a video generation request from an n8n form with a prompt, reference image URL, duration, resolution, and aspect ratio. Sends these inputs to the Kie.ai API to create a Seedance 2 video generation task and retrieves a task ID. Waits briefly, then calls the Kie.ai API to fetch the task status using the task ID. Repeats the wait-and-status-check loop until the API reports the task state as "success". Sends an email via Gmail containing the generated video result link/details returned by the API.
Setup Create a Kie.ai API token and add it to the Authorization header in both Kie.ai HTTP requests (createTask and recordInfo). Connect a Gmail OAuth2 credential in n8n for sending the email. Set the email recipient address in the Gmail step (or map it from the form fields if you want it to be user-provided). Ensure the reference image URL you submit in the form is publicly accessible so Kie.ai can fetch it.
Requirements A Kie.ai account with an active API token and sufficient credits. An n8n instance with access to the Form Trigger, HTTP Request, Wait, IF, and Gmail nodes. A connected Gmail OAuth2 credential. A publicly accessible reference image URL.
Customization Add an email field to the form so users can choose where the generated video link is sent. Change the waiting interval depending on average Seedance generation time. Add failure handling for insufficient credits, invalid API responses, or failed generation jobs. Save generated video links to Google Sheets, Google Drive, Airtable, Slack, or another destination. Adjust available duration, resolution, and aspect-ratio options in the form.
Additional info Seedance video generation is asynchronous, so completion time may vary. The workflow continues checking the task until the API returns a successful state. Kie.ai usage may consume paid credits, and users should connect their own API token before running the workflow. Do not include a personal or production API token in the public template.
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
ā” AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments