Quick overview
This workflow collects a UGC video request via an n8n form, analyzes the uploaded product image with OpenRouter, generates image/video prompts, and posts them to Discord for human approval. Approved prompts trigger Replicate (minimax/video-01) video generation and the job is logged to an n8n Data Table.
How it works
- Receives a submission from an n8n Form with a product image, UGC prompt, and selected video style.
- Sends the image and prompt to OpenRouter for product-detail extraction, then uses an OpenRouter chat model to generate structured UGC image and video prompts plus negative constraints.
- Parses the AI response into clean JSON fields and calls the Fal API (fal-ai/nano-banana-2/edit) before posting the prompt preview to Discord.
- Collects a reviewer decision in a second n8n Form and either starts Replicate video generation, regenerates the prompts using the reviewer feedback, or stops on rejection.
- If approved, submits the video prompt to Replicate (minimax/video-01), waits, polls the prediction status until it succeeds, and posts the resulting video URL to Discord.
- Sets final job metadata, saves a job record to an n8n Data Table, and sends a completion notification to Discord.
Setup
- Add OpenRouter credentials (API key/OAuth as configured) for both the product analysis request and the OpenRouter chat model used by the AI agent.
- Add an HTTP Header Auth credential for Fal and ensure the endpoint https://fal.run/fal-ai/nano-banana-2/edit is accessible for image editing/generation.
- Add an HTTP Header Auth credential for Replicate and confirm access to the minimax/video-01 model.
- Create and connect a Discord webhook credential and set it to the channel where you want previews, approvals, and final results posted.
- Create/select the n8n Data Table used for job logging (ugc_jobs) and adjust the table/column mapping if you want additional fields recorded.