{"name":"Content Repurposing Pipeline","nodes":[{"id":"trigger","type":"n8n-nodes-base.webhook","name":"New Blog Post","position":[250,300],"parameters":{"path":"repurpose","method":"POST"}},{"id":"fetchContent","type":"n8n-nodes-base.httpRequest","name":"Fetch Blog Content","position":[450,300],"parameters":{"url":"={{$json.blog_url}}","method":"GET"}},{"id":"extractText","type":"n8n-nodes-base.code","name":"Extract Article Text","position":[650,300],"parameters":{"language":"javascript","code":"const html = $json.data;\nconst text = html.replace(/<[^>]+>/g, \" \").replace(/\\s+/g, \" \").trim();\nreturn { json: { text, title: $json.title || \"Blog Post\" } };"}},{"id":"twitterThread","type":"n8n-nodes-base.openAi","name":"Generate Twitter Thread","position":[850,100],"parameters":{"model":"gpt-4o-mini","prompt":"Convert this blog post into a viral Twitter/X thread (5-8 tweets). Start with a hook. Use line breaks. Include a CTA at the end. No hashtags in tweets.\n\nBlog:\n{{$json.text}}"}},{"id":"linkedinPost","type":"n8n-nodes-base.openAi","name":"Generate LinkedIn Post","position":[850,250],"parameters":{"model":"gpt-4o-mini","prompt":"Rewrite this blog post as a LinkedIn article (300-500 words). Professional tone, add personal insight angle, include a thought-provoking question at the end.\n\nBlog:\n{{$json.text}}"}},{"id":"emailNewsletter","type":"n8n-nodes-base.openAi","name":"Generate Email Section","position":[850,400],"parameters":{"model":"gpt-4o-mini","prompt":"Create an email newsletter section from this blog post. Include: catchy subject line, 150-word summary, 3 key takeaways as bullet points, CTA button text.\n\nBlog:\n{{$json.text}}"}},{"id":"videoScript","type":"n8n-nodes-base.openAi","name":"Generate Short Video Script","position":[850,550],"parameters":{"model":"gpt-4o-mini","prompt":"Create a 60-second video script (YouTube Shorts / TikTok) from this blog post. Include: hook (first 3 seconds), 3 key points, call to action. Format: [VISUAL] + [VOICEOVER].\n\nBlog:\n{{$json.text}}"}},{"id":"compile","type":"n8n-nodes-base.merge","name":"Compile All Content","position":[1100,300],"parameters":{"mode":"combine"}},{"id":"pushBuffer","type":"n8n-nodes-base.httpRequest","name":"Schedule via Buffer","position":[1300,200],"parameters":{"url":"={{$env.BUFFER_API}}/updates/create","method":"POST"}},{"id":"saveSheet","type":"n8n-nodes-base.googleSheets","name":"Log to Content Sheet","position":[1300,400],"parameters":{"operation":"append","sheetId":"={{$env.CONTENT_SHEET_ID}}"}}],"connections":{"New Blog Post":{"main":[[{"node":"Fetch Blog Content","type":"main","index":0}]]},"Fetch Blog Content":{"main":[[{"node":"Extract Article Text","type":"main","index":0}]]},"Extract Article Text":{"main":[[{"node":"Generate Twitter Thread","type":"main","index":0},{"node":"Generate LinkedIn Post","type":"main","index":0},{"node":"Generate Email Section","type":"main","index":0},{"node":"Generate Short Video Script","type":"main","index":0}]]},"Generate Twitter Thread":{"main":[[{"node":"Compile All Content","type":"main","index":0}]]},"Generate LinkedIn Post":{"main":[[{"node":"Compile All Content","type":"main","index":0}]]},"Generate Email Section":{"main":[[{"node":"Compile All Content","type":"main","index":0}]]},"Generate Short Video Script":{"main":[[{"node":"Compile All Content","type":"main","index":0}]]},"Compile All Content":{"main":[[{"node":"Schedule via Buffer","type":"main","index":0},{"node":"Log to Content Sheet","type":"main","index":0}]]}}}