{"product_id":"create-newsletters-social-posts-from-youtube-with-openai-n8n","title":"Create Newsletters \u0026 Social Posts from YouTube with OpenAI (n8n)","description":"\u003ch3\u003eTurn any YouTube video into a newsletter + social posts using OpenAI in n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow takes a YouTube URL (via webhook), grabs or accepts the transcript, then uses the OpenAI Chat Completions API to generate a complete newsletter issue plus repurposed content for X (Twitter) and LinkedIn—returning both structured JSON and ready-to-publish Markdown.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eReceives a POST webhook request\u003c\/b\u003e containing a \u003cb\u003eurl\u003c\/b\u003e field (and optionally a \u003cb\u003etranscript\u003c\/b\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eValidates and extracts the YouTube video ID\u003c\/b\u003e from the provided URL and errors if the URL is invalid.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eObtains the transcript\u003c\/b\u003e: uses the provided transcript if included; otherwise fetches captions from \u003cb\u003eyoutubetranscript.com\u003c\/b\u003e and converts them into plain text.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eGenerates content with OpenAI\u003c\/b\u003e: sends the transcript to the \u003cb\u003eOpenAI Chat Completions API\u003c\/b\u003e to produce a \u003cb\u003estrict-JSON\u003c\/b\u003e payload with newsletter sections, takeaways, an X thread, a LinkedIn post, and a call to action.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eParses and normalizes the output\u003c\/b\u003e: ensures expected fields exist and adds basic fallbacks if the response is not valid JSON.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eBuilds a Markdown newsletter\u003c\/b\u003e from the generated content and returns the full result to the webhook caller as a JSON response.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eSaaS operators\u003c\/b\u003e repurpose product demos and updates into newsletter issues and social posts.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eAutomation engineers\u003c\/b\u003e build a repeatable pipeline for converting video content into structured marketing assets.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eContent teams\u003c\/b\u003e generate consistent X (Twitter) threads and LinkedIn posts from long-form YouTube interviews.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eWebhook\u003c\/b\u003e to accept input (\u003ci\u003eurl\u003c\/i\u003e, optional \u003ci\u003etranscript\u003c\/i\u003e)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eCode\u003c\/b\u003e for video ID extraction, JSON parsing\/normalization, and Markdown assembly\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eHTTP request\u003c\/b\u003e to call OpenAI and (when needed) \u003cb\u003eyoutubetranscript.com\u003c\/b\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eRespond to webhook\u003c\/b\u003e with structured JSON output\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003eSet up by adding your OpenAI API key in the HTTP request Authorization header, activate the workflow, and POST your YouTube \u003cb\u003eurl\u003c\/b\u003e to generate newsletter + social content on demand.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45814418342067,"sku":"N8N-18007","price":11.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/VBg925pUDJKn0YTvKANSE_bo4jDE0D.png?v=1786439353","url":"https:\/\/buyflowscripts.com\/products\/create-newsletters-social-posts-from-youtube-with-openai-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}