Generate product and marketing images using Riverflow 2.0 on Replicate
Ready for 3.0What this workflow does
This workflow has 20 nodes and runs when someone submits an n8n form (“Input data for Riverflow 2.0 Image Generation”) (plus 1 other trigger). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“Input data for Riverflow 2.0 Image Generation”) (plus 1 other trigger).
- Parse inputs given from form (Code): runs custom JavaScript code
- POST request to Replicate API (HTTP Request): calls an HTTP API (POST)
- Merge: merges the data from its input branches
- Call 'POST + GET requests sub-workflow' (Execute Sub-workflow): calls another n8n workflow
- Wait: waits 2 seconds
- Code: runs custom JavaScript code
- Isolate 1 process id (Code): runs custom JavaScript code
- GET Request for Riverflow Predictions (HTTP Request): calls an HTTP API
- Insert row (Data table): uses Data table
- Insert empty process id (Data table): uses Data table
…plus 8 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 (10)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Wait
n8n-nodes-base.wait - Data table
n8n-nodes-base.dataTable - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Merge
n8n-nodes-base.merge
From the author
How it works This workflow is designed to take user inputs in order to generate an image using the Riverflow 2.0 model through the Replicate API. It can handle both image generation as well as image editing. Additionally, for specific text modifications, the…