Back to Templates
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.
image_jobs table.prompt value from the webhook payload and stops early with a JSON response if the prompt is empty.status = done and image_url, and returns the URL in the webhook response.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.generated-images (or update the bucket name in the workflow) and enable Public access so the public URL works.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.supabaseUrl to your Supabase project URL and confirm the bucket name and Claude model value.image_jobs inserts pointing to your n8n webhook URL /webhook/generate-image.