n8n Workflow: OpenAI Social Posts + Image Prompt Generator

n8n Workflow: OpenAI Social Posts + Image Prompt Generator

 (200+Reviews)
Regular price £50.99
Regular price £50.99 Sale price
SAVE Sold out
Instant Digital Download
Unlimited Downloads
Lifetime Access in Your Account
🔥
128+ Sold
Popular with n8n builders
23 people viewing
High interest right now
9 added today
Fast-moving digital product

n8n Workflow: OpenAI Social Posts + Image Prompt Generator

Regular price £50.99
Regular price £50.99 Sale price
SAVE Sold out

Generate ready-to-publish social posts (and matching images) automatically—inside n8n

This n8n workflow takes a business + topic from an n8n Form, uses OpenAI to write a complete social post and an image prompt, generates the image with OpenAI Images, and returns an HTML preview with your content and embedded image—fast, consistent, and professional.

What this workflow does

  • Collects inputs via an n8n Form (business, topic, audience, tone, language).
  • Cleans and normalizes submitted values to ensure required defaults are present.
  • Generates social content + image prompt using OpenAI (GPT-5 Mini), returning strict JSON.
  • Validates and parses JSON to confirm both the post text and the image prompt are present.
  • Creates an image using OpenAI Images (gpt-image-1) based on the returned prompt.
  • Builds an HTML preview that displays the headline, post text, and the generated image inline.
  • Shows the final preview on the form completion screen and keeps the content/image available in execution data.

Use cases

  • SaaS operators generating weekly product announcements and social campaigns from simple form inputs.
  • Automation engineers prototyping an end-to-end pipeline: request → LLM output (JSON) → image generation → HTML rendering.
  • Marketing teams standardizing tone and language across posts while still letting teams choose topic + audience.

Technical details

  • Nodes/stack: code, form, sticky note, form trigger, and n8n-nodes-langchain-openai (OpenAI integration).
  • OpenAI text generation: GPT-5 Mini, strict JSON response handling.
  • OpenAI image generation: gpt-image-1 from the validated prompt.
  • Credential setup: add an OpenAI API credential and connect it to both OpenAI steps (text + image).

Want a streamlined n8n automation workflow for social post + image generation with an embedded preview? This workflow is built for exactly that.

View full details