Skip to main content

Generate and store Supabase images with Claude and Cloudflare Workers AI

Workflow preview

Workflow preview
100%
Generate and store Supabase images with Claude and Cloudflare Workers AI preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow listens for new rows in a Supabase table, uses Anthropic Claude to expand each prompt, generates an image with Cloudflare Workers AI (FLUX), uploads the image to Supaba...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.respondtowebhook, n8n-nodes-base.httprequest, n8n-nodes-base.supabase

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Aumadi Technologies.

Original n8n.io source

1.1 Workflow description

Title
Generate and store Supabase images with Claude and Cloudflare Workers AI
Workflow name
Generate and store Supabase images with Claude and Cloudflare Workers AI

Quick Overview

This workflow listens for new rows in a Supabase image_jobs 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 the original Supabase record.

How it works

  1. Receives a webhook call from a Supabase Database Webhook when a new row is inserted into the image_jobs table.
  2. Extracts the inserted record ID and prompt value from the webhook payload and stops early with a JSON response if the prompt is empty.
  3. Sends the prompt idea to Anthropic Claude to produce a single, detailed image-generation prompt.
  4. Calls Cloudflare Workers AI (FLUX) to generate an image from the enhanced prompt.
  5. Converts the returned base64 image into binary data and uploads it to a public Supabase Storage bucket using the job ID as the filename.
  6. Builds the public Supabase Storage URL, updates the Supabase row with status = done and image_url, and returns the URL in the webhook response.

Setup

  1. Create the image_jobs table in Supabase (for example by running the provided new-workflows-setup.sql) and ensure it includes fields like prompt, status, image_url, and error_message.
  2. Create a Supabase Storage bucket named generated-images (or update the bucket name in the workflow) and enable Public access so the public URL works.
  3. Add credentials for Supabase (project URL/host and service_role key), Anthropic Claude (HTTP header auth x-api-key), and Cloudflare Workers AI (HTTP header auth Authorization: Bearer <token>) and replace the placeholders in the workflow.
  4. In the Config step, set supabaseUrl to your Supabase project URL and confirm the bucket name and Claude model value.
  5. In Cloudflare, set your account ID in the Workers AI request URL, then create a Supabase Database Webhook for image_jobs inserts pointing to your n8n webhook URL /webhook/generate-image.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 🎥 Demo Video

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - 📘 Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - 🔧 Setup

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - New Image Job (Insert)

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 5 - ⚙️ Config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Parse Job

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Has a prompt?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 8 - Skip (no prompt)

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 9 - 🧠 Claude: Enhance Prompt

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Extract Prompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Image → Binary

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - ☁️ Upload to Supabase Storage

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Build Public URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Update Job → done

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 15 - 200 Done

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 16 - Update Job → error

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 17 - 500 Error

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 18 - 🎨cloudflare Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Section — Trigger & validate

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Section — AI prompt & image

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Section — Store & finish

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Section — Skip & errors

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate and store Supabase images with Claude and Cloudflare Workers AI
Complexity advanced
Nodes 22
Categories Content Creation, Multimodal AI
Author Aumadi Technologies
Published 12 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16313/16313.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate and store Supabase images with Claude and Cloudflare Workers AI do?

Quick Overview This workflow listens for new rows in a Supabase table, uses Anthropic Claude to expand each prompt, generates an image with Cloudflare Workers AI (FLUX), uploads the image to Supaba...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.