Generate multi-platform social captions from blog posts with OpenAI
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when someone submits an n8n form (“Blog to Social Media Captions”). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: When someone submits an n8n form (“Blog to Social Media Captions”).
- Has Blog URL? (If): checks a condition and branches into true / false
- Fetch Blog Page (HTTP Request): calls an HTTP API
- Use Pasted Content (Code): runs custom JavaScript code
- Extract Article Text (Code): runs custom JavaScript code
- Build Prompt (Code): runs custom JavaScript code
- Generate Captions (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Build Copy-Paste Page (Code): runs custom JavaScript code
- Show Captions (n8n Form): shows the next form page
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - n8n Form
n8n-nodes-base.form
From the author
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…