{"product_id":"n8n-workflow-openai-social-posts-image-prompt-generator","title":"n8n Workflow: OpenAI Social Posts + Image Prompt Generator","description":"\u003ch3\u003eGenerate ready-to-publish social posts (and matching images) automatically—inside n8n\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003en8n workflow\u003c\/strong\u003e takes a business + topic from an \u003cstrong\u003en8n Form\u003c\/strong\u003e, uses \u003cstrong\u003eOpenAI\u003c\/strong\u003e to write a complete social post and an image prompt, generates the image with \u003cstrong\u003eOpenAI Images\u003c\/strong\u003e, and returns an \u003cstrong\u003eHTML preview\u003c\/strong\u003e with your content and embedded image—fast, consistent, and professional.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCollects inputs\u003c\/strong\u003e via an \u003cstrong\u003en8n Form\u003c\/strong\u003e (business, topic, audience, tone, language).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCleans and normalizes\u003c\/strong\u003e submitted values to ensure required defaults are present.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates social content + image prompt\u003c\/strong\u003e using \u003cstrong\u003eOpenAI (GPT-5 Mini)\u003c\/strong\u003e, returning strict \u003cstrong\u003eJSON\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and parses JSON\u003c\/strong\u003e to confirm both the post text and the image prompt are present.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates an image\u003c\/strong\u003e using \u003cstrong\u003eOpenAI Images (gpt-image-1)\u003c\/strong\u003e based on the returned prompt.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds an HTML preview\u003c\/strong\u003e that displays the headline, post text, and the generated image inline.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eShows the final preview\u003c\/strong\u003e on the form completion screen and keeps the content\/image available in execution data.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS operators\u003c\/strong\u003e generating weekly product announcements and social campaigns from simple form inputs.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAutomation engineers\u003c\/strong\u003e prototyping an end-to-end pipeline: request → LLM output (JSON) → image generation → HTML rendering.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMarketing teams\u003c\/strong\u003e standardizing tone and language across posts while still letting teams choose topic + audience.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/stack:\u003c\/strong\u003e code, form, sticky note, form trigger, and \u003cstrong\u003en8n-nodes-langchain-openai\u003c\/strong\u003e (OpenAI integration).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI text generation:\u003c\/strong\u003e GPT-5 Mini, strict JSON response handling.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI image generation:\u003c\/strong\u003e gpt-image-1 from the validated prompt.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCredential setup:\u003c\/strong\u003e add an \u003cstrong\u003eOpenAI API credential\u003c\/strong\u003e and connect it to both OpenAI steps (text + image).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003eWant a streamlined \u003cstrong\u003en8n automation workflow\u003c\/strong\u003e for social post + image generation with an embedded preview? This workflow is built for exactly that.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45938153193651,"sku":"N8N-19053","price":50.99,"currency_code":"GBP","in_stock":true}],"url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-openai-social-posts-image-prompt-generator","provider":"N8N Commerce","version":"1.0","type":"link"}