{"product_id":"generate-social-media-images-with-gemini-gmail-via-n8n","title":"Generate Social Media Images with Gemini + Gmail via n8n","description":"\u003ch3\u003eGenerate art-directed social media images automatically with Gemini + Gmail in n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow turns an image brief submitted through an n8n Form into a finished, styled social media image using Google Gemini—and then emails the result (or a failure notice) to the requester via Gmail. It also logs the exact prompt to Google Sheets for traceability.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCollects your request via n8n Form\u003c\/strong\u003e: captures the requester’s email, intended use, a description, and a selected visual style.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTransforms the brief into an art-directed prompt with Google Gemini\u003c\/strong\u003e: rewrites the rough brief into a single detailed \u003cstrong\u003e40–70 word\u003c\/strong\u003e image-generation prompt including composition, lighting, palette, mood, and the chosen style.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates the image with Gemini Image generation\u003c\/strong\u003e: sends the prompt to Google Gemini Image generation and outputs the generated image as binary data.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHandles failures gracefully\u003c\/strong\u003e: if image generation fails, it sends a \u003cstrong\u003eGmail\u003c\/strong\u003e message to the requester explaining the image could not be generated.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs prompts in Google Sheets\u003c\/strong\u003e: when successful, appends a log entry to a selected Google Sheets spreadsheet and sheet\/tab (e.g., a tab named “Images”).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmails the image as an attachment\u003c\/strong\u003e: sends the generated image to the requester via Gmail and includes the \u003cstrong\u003eexact prompt\u003c\/strong\u003e in the email body.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eTurn marketing team briefs into consistent social post creatives on demand.\u003c\/li\u003e\n  \u003cli\u003eGive SaaS operators a self-serve workflow: submit a style + description, receive a finished image by email.\u003c\/li\u003e\n  \u003cli\u003eSupport scalable content ops by storing the final Gemini prompt in Google Sheets for review and iteration.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003en8n Form Trigger (collect request details and requester email)\u003c\/li\u003e\n  \u003cli\u003eGoogle Gemini via n8nn8n-nodes-langchainchain LLM and n8nn8n-nodes-langchaingoogle Gemini\u003c\/li\u003e\n  \u003cli\u003eGoogle Sheets OAuth (append prompt logs to a chosen sheet\/tab)\u003c\/li\u003e\n  \u003cli\u003eGmail OAuth (send success attachments or failure notifications)\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eSetup:\u003c\/strong\u003e add Google Gemini (PaLM) API credentials, Google Sheets OAuth, and Gmail OAuth; select your target spreadsheet and sheet\/tab for logging; then test the form URL to confirm prompts and email attachments arrive correctly.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45748945420467,"sku":"N8N-17691","price":78.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/ocdbnIGXiz5JAO0WdKXRP_WZhTOYzT.png?v=1785575405","url":"https:\/\/buyflowscripts.com\/products\/generate-social-media-images-with-gemini-gmail-via-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}