{"product_id":"n8n-webhook-repurpose-youtube-transcripts-with-openai","title":"n8n Webhook: Repurpose YouTube Transcripts with OpenAI","description":"\u003ch3\u003eTurn any YouTube video into a full newsletter + social posts—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow repurposes YouTube content by receiving a YouTube URL through a webhook, extracting (or accepting) the transcript, and using OpenAI Chat Completions to generate a newsletter issue plus ready-to-publish repurposed content (key takeaways, an X thread, and a LinkedIn post). It returns both structured JSON and newsletter-ready 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 \u003ccode\u003eurl\u003c\/code\u003e field (YouTube link) and an optional \u003ccode\u003etranscript\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eExtracts and validates the YouTube video ID\u003c\/b\u003e from the provided URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eUses your transcript if provided\u003c\/b\u003e, otherwise fetches captions from \u003cb\u003eyoutubetranscript.com\u003c\/b\u003e and converts them into plain text.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eCalls OpenAI Chat Completions\u003c\/b\u003e with the transcript and strict instructions to return a \u003cb\u003eJSON payload\u003c\/b\u003e containing newsletter and repurposed content fields (e.g., subject line, sections, takeaways, X thread, LinkedIn post).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eParses and normalizes the response\u003c\/b\u003e into structured fields and generates a formatted \u003cb\u003enewsletter Markdown\u003c\/b\u003e document.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eReturns the full result\u003c\/b\u003e as a JSON response to the webhook caller.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eTransform a weekly YouTube upload into a consistent newsletter edition for subscribers.\u003c\/li\u003e\n  \u003cli\u003eCreate an X thread and LinkedIn post from the same long-form video to repurpose content faster.\u003c\/li\u003e\n  \u003cli\u003eBuild an internal content pipeline where automation engineers trigger generation via a webhook.\u003c\/li\u003e\n  \u003cli\u003eRecover gracefully when caption retrieval fails by sending a raw \u003ccode\u003etranscript\u003c\/code\u003e in the webhook payload.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003en8n nodes\/tools:\u003c\/b\u003e Webhook, Code, HTTP Request, Respond to Webhook.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eExternal services:\u003c\/b\u003e \u003cb\u003eyoutubetranscript.com\u003c\/b\u003e for caption fetching (when no transcript is provided), and \u003cb\u003eOpenAI\u003c\/b\u003e via \u003ccode\u003ehttps:\/\/api.openai.com\/v1\/chat\/completions\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eSetup steps:\u003c\/b\u003e add your OpenAI API key in the Authorization header for the HTTP request, then POST JSON with \u003ccode\u003e{\"url\": \"...\", \"transcript\": \"...\"}\u003c\/code\u003e (transcript optional).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45822088708275,"sku":"N8N-18090","price":75.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/CrGxucBj6hXtDHMq2yJmP_lZTSCxWZ.png?v=1786525450","url":"https:\/\/buyflowscripts.com\/products\/n8n-webhook-repurpose-youtube-transcripts-with-openai","provider":"N8N Commerce","version":"1.0","type":"link"}