Generate social media images from briefs with Google Gemini and Gmail
Ready for 3.0Ready 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.
Nodes used (6)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
What it does
Quick Overview This workflow collects an image brief via an n8n form, uses Google Gemini to turn it into an art-directed prompt and generate an image, logs the prompt to Google Sheets, and emails the finished image (or a failure notice) to the requester via Gmail. How it works 1. Receives an image request through an n8n Form that captures the requester’s email, intended use, description, and a selected visual style. 2. Uses the Google Gemini chat model to rewrite the rough brief into a single detailed 40–70 word image-generation prompt with composition, lighting, palette, mood, and the chosen style. 3. Sends the art-directed prompt to Google Gemini Image generation and outputs the generated image as binary data. 4. If image generation fails, sends a Gmail message to the requester explaining that the image could not be generated. 5. If image generation succeeds, appends a log entry to a Google Sheets spreadsheet. 6. Emails the generated image as a Gmail attachment to the requester, including the exact prompt used in the message body. Setup 1. Add credentials for Google Gemini (PaLM) API, Google Sheets OAuth, and Gmail OAuth. 2. Select the target Google Sheets spreadsheet and sheet/tab in the logging step (for example, a tab named “Images”). 3. Open the form URL, submit a test request, and confirm emails send successfully and the generated image arrives as an attachment.