Templates / Generate AI images from form inputs with Claude Sonnet and Google Gemini

Generate AI images from form inputs with Claude Sonnet and Google Gemini

Ready for 3.0

by Swapnil Mandloi ✓ · 10 views · created 2026-07-28 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 7 nodes and runs when someone submits an n8n form (“Generate an AI image”). Along the way it connects Anthropic Chat Model, Google Gemini and Gmail.

How it runs

Trigger: When someone submits an n8n form (“Generate an AI image”).

  1. Normalize Image Request (Edit Fields (Set)): sets 3 fields: email, description, style
  2. Prompt Enhancer (AI Agent): runs an AI agent, with model: Claude Sonnet 4.
  3. Generate Image (Google Gemini): work with image
  4. Email Image (Gmail): uses Gmail
  5. Log to Image Table (Data table): uses Data table

Services it uses

Anthropic Chat ModelGoogle GeminiGmail

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)

From the author

Quick overview This workflow collects an image request via an n8n form, uses Anthropic Claude to expand it into a detailed style-aware prompt, generates an image with Google Gemini, then emails the image via Gmail and logs the request details to an n8n Data…

Excerpt from Swapnil Mandloi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.