Generate and edit images using Havis AI GPT Image 2
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs when someone submits an n8n form (“Havis AI - GPT Image 2”). It uses only n8n's built-in nodes. It also calls havis.ai over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Havis AI - GPT Image 2”).
- Build Payload (Code): runs custom JavaScript code
- Submit - Havis API (HTTP Request): calls havis.ai (POST)
- Wait: waits 8 seconds
- Check Task Status (HTTP Request): calls an HTTP API
- Is Completed? (If): checks a condition and branches into true / false
- Return Result (Edit Fields (Set)): sets 6 fields: task_id, status, model…
- Is Failed? (If): checks a condition and branches into true / false
- Return Error (Edit Fields (Set)): sets 5 fields: task_id, status, model…
- Wait: waits 8 seconds
HTTP calls to: havis.ai
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 (6)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set
From the author
Havis AI - GPT Image 2 n8n Workflow Summary This n8n workflow submits an image generation job to Havis AI GPT Image 2, waits for processing, polls task status, and returns result data when the job completes. Who is this for? - Creators who want a reusable…