Generate graphic wallpaper with Midjourney, GPT-4o-mini and Canvas APIs
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls api.piapi.ai and api.canvas.switchboard.ai over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Basic Params (Edit Fields (Set)): sets or maps fields
- Gpt-4o-mini API (HTTP Request): calls api.piapi.ai (POST)
- Get Prompt (Code): runs custom JavaScript code
- Midjourney Generator (HTTP Request): calls api.piapi.ai (POST)
- Wait: pauses before continuing
- Get Midjourney Task (HTTP Request): calls an HTTP API
- Determine Whether the Image URL was Fetched (If): checks a condition and branches into true / false
- Check Image Generation Status (Switch): routes items into 1 branches
- Get Image Url (Edit Fields (Set)): sets 2 fields: data.output.temporary_image_urls, data.output.image_url
- Design in Canvas (HTTP Request): calls api.canvas.switchboard.ai (POST)
HTTP calls to: api.piapi.ai, api.canvas.switchboard.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 (7)
- HTTP Request
n8n-nodes-base.httpRequest - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set
From the author
Who is the template for? This workflow is specifically designed for content creators and social media professionals, enabling Instagram and X (Twitter) influencers to produce highly artistic visual posts, empowering marketing teams to quickly generate event…