Generate AI images from form inputs with Claude Sonnet and Google Gemini
Ready for 3.0What 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”).
- Normalize Image Request (Edit Fields (Set)): sets 3 fields: email, description, style
- Prompt Enhancer (AI Agent): runs an AI agent, with model: Claude Sonnet 4.
- Generate Image (Google Gemini): work with image
- Email Image (Gmail): uses Gmail
- Log to Image Table (Data table): uses Data table
Services it uses
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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Gmail
n8n-nodes-base.gmail - Data table
n8n-nodes-base.dataTable
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…