Generate and store Supabase images with Claude and Cloudflare Workers AI
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Supabase. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- ⚙️ Config (Edit Fields (Set)): sets 3 fields: supabaseUrl, bucket, textModel
- Parse Job (Code): runs custom JavaScript code
- Has a prompt? (If): checks a condition and branches into true / false
- 🧠 Claude: Enhance Prompt (HTTP Request): calls api.anthropic.com (POST)
- Skip (no prompt) (Respond to Webhook): sends the response back to the webhook caller
- Extract Prompt (Code): runs custom JavaScript code
- Update Job → error (Supabase): update
- 🎨cloudflare Image (HTTP Request): calls an HTTP API (POST)
- 500 Error (Respond to Webhook): sends the response back to the webhook caller
- Image → Binary (Code): runs custom JavaScript code
…plus 4 more steps. See the full node list below.
Services it uses
HTTP calls to: api.anthropic.com
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Supabase
n8n-nodes-base.supabase
From the author
Quick Overview This workflow listens for new rows in a Supabase imagejobs table, uses Anthropic Claude to expand each prompt, generates an image with Cloudflare Workers AI (FLUX), uploads the image to Supabase Storage, and writes the public image URL back to…