Generate multi-platform social captions from blog posts with OpenAI

Go to Workflow
0 views
Built by Incrementors Incrementors
Created on July 28, 2026

Description

Quick overview
This workflow collects a blog URL or pasted blog text via an n8n form, uses OpenAI to generate platform-specific social captions and image alt text, and returns a styled copy-and-paste HTML results page with one section per social network.

How it works
Receives blog input (URL or pasted content) and an optional featured image URL from an n8n form.
If a blog URL is provided, downloads the page with an HTTP request and extracts readable article text from the HTML; otherwise it uses the pasted blog content.
Builds a single prompt that asks for platform-specific captions (including a Twitter/X thread) and featured image alt text, returned as strict JSON.
Sends the prompt to OpenAI Chat Model (via an AI agent) to generate the captions JSON.
Converts the JSON into a styled HTML page with copy buttons for each caption and displays it back to the form submission as the response.

Setup
Add an OpenAI API credential to the OpenAI Chat Model node and choose the model you want to use.
Activate the workflow and open the Blog Input Form production URL to submit a blog URL or pasted blog text.
Ensure the blog page is publicly accessible if you use the URL option, and optionally provide a featured image URL for Instagram/Pinterest guidance and alt text display.

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi