{"active":false,"connections":{"Format Drafts":{"main":[[{"index":0,"node":"Slack — Review Drafts","type":"main"}]]},"IF Approved":{"main":[[{"index":0,"node":"Publish Posts","type":"main"}],[]]},"IF New Post Found":{"main":[[{"index":0,"node":"Repurpose with AI","type":"main"}],[]]},"Publish Posts":{"main":[[{"index":0,"node":"Slack — Published","type":"main"}]]},"RSS Feed Read":{"main":[[{"index":0,"node":"IF New Post Found","type":"main"}]]},"Repurpose with AI":{"main":[[{"index":0,"node":"Format Drafts","type":"main"}]]},"Slack — Review Drafts":{"main":[[{"index":0,"node":"Wait for Approval","type":"main"}]]},"Wait for Approval":{"main":[[{"index":0,"node":"IF Approved","type":"main"}]]}},"meta":{"instanceId":"","templateCredsSetupCompleted":false},"name":"Social Media Auto-Poster & Content Repurposer","nodes":[{"id":"c3d4e5f6-0001-4a5b-8c9d-111111111111","name":"RSS Feed Read","parameters":{"options":{},"url":"https://your-blog.com/rss.xml"},"position":[240,300],"type":"n8n-nodes-base.rssFeedRead","typeVersion":1},{"id":"c3d4e5f6-0002-4a5b-8c9d-222222222222","name":"IF New Post Found","parameters":{"conditions":{"combinator":"and","conditions":[{"id":"if-1","leftValue":"={{ $json.link }}","operator":{"operation":"exists","singleValue":true,"type":"string"},"rightValue":""}],"options":{"caseSensitive":true,"leftValue":"","typeValidation":"loose"}},"options":{}},"position":[480,300],"type":"n8n-nodes-base.if","typeVersion":2.2},{"credentials":{"openAiApi":{"id":"","name":"OpenAI API"}},"id":"c3d4e5f6-0003-4a5b-8c9d-333333333333","name":"Repurpose with AI","parameters":{"messages":{"values":[{"content":"=Turn this blog post into 3 platform-ready social drafts:\n1. X post — max 280 characters\n2. LinkedIn long-form post\n3. One short hook line for reuse\n\nTitle: {{ $json.title }}\nURL: {{ $json.link }}\nSummary: {{ $json.description }}","role":"user"}]},"model":{"__rl":true,"cachedResultName":"gpt-4o-mini","mode":"list","value":"gpt-4o-mini"},"operation":"message","options":{},"resource":"text"},"position":[720,300],"type":"n8n-nodes-base.openAi","typeVersion":1},{"id":"c3d4e5f6-0004-4a5b-8c9d-444444444444","name":"Format Drafts","parameters":{"assignments":{"assignments":[{"id":"fmt-1","name":"drafts","type":"string","value":"={{ $json.message.content }}"},{"id":"fmt-2","name":"source","type":"string","value":"={{ $('IF New Post Found').first().json.link }}"}]},"includeOtherFields":true,"mode":"manual","options":{}},"position":[960,300],"type":"n8n-nodes-base.set","typeVersion":3.4},{"credentials":{"slackOAuth2Api":{"id":"","name":"Slack account"}},"id":"c3d4e5f6-0005-4a5b-8c9d-555555555555","name":"Slack — Review Drafts","parameters":{"channel":"#content-review","operation":"send","otherOptions":{},"resource":"message","text":"={{ 'NEW BLOG POST — drafts for your approval:\n\nSource: ' + $json.source + '\n\n' + $json.drafts + '\n\nOpen this execution in n8n and click APPROVE on the \"Wait for Approval\" node to publish, or REJECT to skip.' }}"},"position":[1200,300],"type":"n8n-nodes-base.slack","typeVersion":2.2},{"id":"c3d4e5f6-0006-4a5b-8c9d-666666666666","name":"Wait for Approval","parameters":{"options":{},"resume":"onApproval"},"position":[1440,300],"type":"n8n-nodes-base.wait","typeVersion":1.1},{"id":"c3d4e5f6-0007-4a5b-8c9d-777777777777","name":"IF Approved","parameters":{"conditions":{"combinator":"and","conditions":[{"id":"appr-1","leftValue":"={{ $json.approved }}","operator":{"operation":"equals","type":"boolean"},"rightValue":true}],"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"}},"options":{}},"position":[1680,300],"type":"n8n-nodes-base.if","typeVersion":2.2},{"credentials":{"httpHeaderAuth":{"id":"","name":"Social scheduler API key"}},"id":"c3d4e5f6-0008-4a5b-8c9d-888888888888","name":"Publish Posts","parameters":{"authentication":"genericCredential","genericAuthType":"httpHeaderAuth","jsonBody":"={{ JSON.stringify({ drafts: $json.drafts, source: $('Format Drafts').first().json.source }) }}","method":"POST","options":{},"sendBody":true,"specifyBody":"json","url":"https://api.your-social-scheduler.com/v1/publish"},"position":[1920,300],"type":"n8n-nodes-base.httpRequest","typeVersion":4.2},{"credentials":{"slackOAuth2Api":{"id":"","name":"Slack account"}},"id":"c3d4e5f6-0009-4a5b-8c9d-999999999999","name":"Slack — Published","parameters":{"channel":"#content-review","operation":"send","otherOptions":{},"resource":"message","text":"={{ 'Published! Drafts for ' + $('Format Drafts').first().json.source + ' went live via the social scheduler.' }}"},"position":[2160,300],"type":"n8n-nodes-base.slack","typeVersion":2.2},{"id":"c3d4e5f6-0010-4a5b-8c9d-aaaaaaaaaaaa","name":"Sticky Note","parameters":{"color":4,"content":"## Social Media Auto-Poster & Content Repurposer\n\n**Flow:** RSS Feed Read → IF New Post Found → Repurpose with AI (X + LinkedIn + hook) → Format Drafts → Slack review → Wait for Approval → IF Approved → Publish Posts → Slack confirmation.\n\n**Human approval gate:** the Wait for Approval node pauses the execution. Open the execution in n8n and click Approve or Reject on the node. Rejected (or unapproved) runs end without publishing anything.\n\n**Setup:**\n1. Paste your real RSS feed URL in RSS Feed Read.\n2. Create an OpenAI credential for Repurpose with AI.\n3. Create a Slack OAuth2 credential; confirm the #content-review channel.\n4. Replace the placeholder publish URL (https://api.your-social-scheduler.com/v1/publish) and header-auth credential with your real scheduler (Buffer, Typefully, X API). Until then, drafts are reviewed but never published.\n\n**Nothing publishes without your approval.**","height":300,"width":420},"position":[160,-80],"type":"n8n-nodes-base.stickyNote","typeVersion":1}],"pinData":{},"settings":{"executionOrder":"v1"},"tags":[{"name":"cortexflow-template"}],"versionId":"cortexflow-social-media-auto-poster-v1"}