{"product_id":"n8n-workflow-generate-social-captions-with-openai","title":"n8n Workflow: Generate Social Captions with OpenAI","description":"\u003ch3\u003eTurn blog posts into ready-to-post social captions with OpenAI (for n8n)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow takes a blog URL (or pasted blog text) and automatically generates platform-specific social captions—plus featured image \u003cem\u003ealt text\u003c\/em\u003e—using OpenAI, returning a styled HTML results page you can copy directly.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCollects input via an n8n form\u003c\/strong\u003e: You submit a blog URL or paste the blog text, and you can optionally include a featured image URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches and extracts article text\u003c\/strong\u003e: If you provide a blog URL, the workflow downloads the page with an HTTP request and extracts readable article content from the HTML; otherwise it uses the pasted text.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates captions as strict JSON\u003c\/strong\u003e: It builds one prompt asking OpenAI for platform-specific captions (including a \u003cstrong\u003eTwitter\/X thread\u003c\/strong\u003e) and for featured image alt text, returned as strict JSON.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConverts JSON into copy-ready HTML\u003c\/strong\u003e: The JSON output is transformed into a styled HTML page with \u003cstrong\u003eone section per social network\u003c\/strong\u003e and \u003cstrong\u003ecopy buttons\u003c\/strong\u003e for easy reuse.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS marketing ops\u003c\/strong\u003e: Repurpose every new blog post into captions for multiple social platforms in minutes.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAutomation engineers\u003c\/strong\u003e: Use a clean OpenAI-to-HTML pattern to standardize content generation workflows in n8n.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eContent teams\u003c\/strong\u003e: Provide alt text guidance for featured images to keep social posts more accessible (especially for Instagram\/Pinterest).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI integration\u003c\/strong\u003e via an “OpenAI Chat Model” node (configure your \u003cstrong\u003eOpenAI API credential\u003c\/strong\u003e and select the model).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes used\u003c\/strong\u003e: if, code, form, sticky note, form trigger, http request.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrompting + output formatting\u003c\/strong\u003e: OpenAI is instructed to return \u003cstrong\u003estrict JSON\u003c\/strong\u003e, which is then rendered into the final HTML results page.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup (quick)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAdd your OpenAI API credential to the OpenAI Chat Model node.\u003c\/li\u003e\n  \u003cli\u003eActivate the workflow and open the \u003cstrong\u003eBlog Input Form production URL\u003c\/strong\u003e to submit a blog URL or pasted content.\u003c\/li\u003e\n  \u003cli\u003eIf using the URL option, ensure the blog page is \u003cstrong\u003epublicly accessible\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45742824095923,"sku":"N8N-17568","price":11.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/GeelFJMAaxfzZLAPApXyd_5Jud9iP9.png?v=1785402873","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-generate-social-captions-with-openai","provider":"N8N Commerce","version":"1.0","type":"link"}