{ "name": "✨🤖Automate Multi-Platform Social Media Content Creation with AI", "nodes": [ { "parameters": { "content": "# 🧑🦱 User Input for Social Media Posts \n💡 Unpin default data to get started", "height": 360, "width": 360, "color": 4 }, "id": "1e77584f-76b4-420b-b6b0-99132d6c0151", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [ -20, 664 ], "typeVersion": 1 }, { "parameters": { "content": "# 🛠️ Social Media Content Factory\n- LinkedIn\n- Instagram\n- Facebook\n- X\n- TikTok\n- Threads\n- YouTube Shorts\n", "height": 600, "width": 640, "color": 6 }, "id": "dc92fcf1-3618-4188-a30f-6c2205cc3266", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [ -720, 1136 ], "typeVersion": 1 }, { "parameters": { "content": "# 👍 Approve Content Before Proceeding", "height": 360, "width": 400, "color": 4 }, "id": "02429ea7-be59-49e3-9d85-c1678ee64abd", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [ 1000, 664 ], "typeVersion": 1 }, { "parameters": { "content": "# ✉️ Prepare & Format Approval Email", "height": 560, "width": 500, "color": 5 }, "id": "fa38e25c-89e9-4d9b-be78-03aeb6965e30", "name": "Sticky Note5", "type": "n8n-nodes-base.stickyNote", "position": [ 304, 1200 ], "typeVersion": 1 }, { "parameters": { "schemaType": "manual", "inputSchema": "{\n\t\"type\": \"object\",\n\t\"properties\": {\n\t\t\"name\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"description\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"platform_posts\": {\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {\n\t\t\t\t\"LinkedIn\": {\n\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\"properties\": {\n \"image_suggestion\": {\n \t\t\t\"type\": \"string\"\n \t\t},\n\t\t\t\t\t\t\"post\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"hashtags\": {\n\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"call_to_action\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"Instagram\": {\n\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"image_suggestion\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"caption\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"hashtags\": {\n\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"emojis\": {\n\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"call_to_action\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"Facebook\": {\n\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"post\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"hashtags\": {\n\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"call_to_action\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"image_suggestion\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"X-Twitter\": {\n\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\"properties\": {\n \"video_suggestion\": {\n \t\t\t\"type\": \"string\"\n \t\t},\n \"image_suggestion\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"post\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"hashtags\": {\n\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"character_limit\": {\n\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n \"TikTok\": {\n \t\"type\": \"object\",\n \t\"properties\": {\n \t\t\"video_suggestion\": {\n \t\t\t\"type\": \"string\"\n \t\t},\n \t\t\"caption\": {\n \t\t\t\"type\": \"string\"\n \t\t},\n \t\t\"hashtags\": {\n \t\t\t\"type\": \"array\",\n \t\t\t\"items\": {\n \t\t\t\t\"type\": \"string\"\n \t\t\t}\n \t\t},\n \t\t\"call_to_action\": {\n \t\t\t\"type\": \"string\"\n \t\t}\n \t}\n },\n \"Threads\": {\n \t\"type\": \"object\",\n \t\"properties\": {\n \"image_suggestion\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n \t\t\"text_post\": {\n \t\t\t\"type\": \"string\"\n \t\t},\n \t\t\"hashtags\": {\n \t\t\t\"type\": \"array\",\n \t\t\t\"items\": {\n \t\t\t\t\"type\": \"string\"\n \t\t\t}\n \t\t},\n \t\t\"call_to_action\": {\n \t\t\t\"type\": \"string\"\n \t\t}\n \t}\n },\n \"YouTube_Shorts\": {\n \t\"type\": \"object\",\n \t\"properties\": {\n \t\t\"video_suggestion\": {\n \t\t\t\"type\": \"string\"\n \t\t},\n \t\t\"title\": {\n \t\t\t\"type\": \"string\"\n \t\t},\n \"description\": {\n \"type\": \"string\"\n },\n \"hashtags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"call_to_action\": {\n \"type\": \"string\"\n }\n }\n }\n\t\t\t}\n\t\t},\n\t\t\"additional_notes\": {\n\t\t\t\"type\": \"string\"\n\t\t}\n\t}\n}\n" }, "id": "9b6e2038-9f65-4e0f-b13d-6c09e8224ed6", "name": "Social Media Content", "type": "@n8n/n8n-nodes-langchain.outputParserStructured", "position": [ 592, 1088 ], "typeVersion": 1.2 }, { "parameters": { "modelName": "models/gemini-2.0-flash-exp", "options": { "temperature": 0.4 } }, "id": "a1211873-05ca-48c7-aa93-57d80b37174b", "name": "Google Gemini LLM", "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini", "position": [ 112, 1392 ], "typeVersion": 1, "credentials": { "googlePalmApi": { "id": "Y1v80cZpe1wr6MBL", "name": "Google Gemini(PaLM) Api account" } }, "disabled": true }, { "parameters": { "model": { "__rl": true, "mode": "list", "value": "gpt-4o-mini", "cachedResultName": "gpt-4o-mini" }, "options": { "responseFormat": "text" } }, "id": "14327277-1e66-401d-9c74-8fdb6d76445f", "name": "gpt-4o-mini", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [ 872, 1088 ], "typeVersion": 1.2, "credentials": { "openAiApi": { "id": "PB4HrkqRvW71v8uQ", "name": "OpenAi account" } } }, { "parameters": { "model": { "__rl": true, "mode": "list", "value": "gpt-4o", "cachedResultName": "gpt-4o" }, "options": { "responseFormat": "text" } }, "id": "9a49454b-f518-4388-82a7-2529addae3e5", "name": "gpt-4o", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [ 112, 1600 ], "typeVersion": 1.2, "credentials": { "openAiApi": { "id": "PB4HrkqRvW71v8uQ", "name": "OpenAi account" } }, "disabled": true }, { "parameters": { "model": { "__rl": true, "mode": "list", "value": "gpt-4o", "cachedResultName": "gpt-4o" }, "options": { "responseFormat": "text" } }, "id": "56eb9c72-87fc-42b2-b576-be68b3a8c7d2", "name": "gpt-4o LLM", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [ 336, 1088 ], "typeVersion": 1.2, "credentials": { "openAiApi": { "id": "PB4HrkqRvW71v8uQ", "name": "OpenAi account" } } }, { "parameters": { "url": "=https://image.pollinations.ai/prompt/{{$('Social Media Content Factory').item.json.output.description.replaceAll(' ','-').replaceAll(',','').replaceAll('.','') }}", "options": {} }, "id": "bf4e6d41-b2be-44fc-8fc7-6dc6bc4ee69a", "name": "pollinations.ai", "type": "n8n-nodes-base.httpRequest", "position": [ 112, 2256 ], "typeVersion": 4.2, "disabled": true }, { "parameters": { "content": "## Create Post Image\nhttps://pollinations.ai/\nhttps://image.pollinations.ai/prompt/[your image description]\n\n(alternative)", "height": 340, "width": 300 }, "id": "5a950645-8e74-4be8-bad2-73d9f827a6b8", "name": "Sticky Note6", "type": "n8n-nodes-base.stickyNote", "position": [ -160, 2192 ], "typeVersion": 1 }, { "parameters": { "mode": "combine", "combineBy": "combineByPosition", "options": { "includeUnpaired": true } }, "id": "7b5b53eb-85c6-4a90-b209-7bd8d638f237", "name": "Merge", "type": "n8n-nodes-base.merge", "position": [ 2048, 768 ], "typeVersion": 3 }, { "parameters": { "method": "POST", "url": "https://api.imgbb.com/1/upload", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "expiration", "value": "0" }, { "name": "key", "value": "={{ $env.IMGBB_API_KEY}} " } ] }, "sendBody": true, "contentType": "multipart-form-data", "bodyParameters": { "parameters": [ { "parameterType": "formBinaryData", "name": "image", "inputDataFieldName": "data" } ] }, "options": { "redirect": { "redirect": {} } } }, "id": "daa6773e-0e15-4994-bcee-b3d996655855", "name": "Save Image to imgbb.com3", "type": "n8n-nodes-base.httpRequest", "position": [ 1824, 576 ], "typeVersion": 4.2 }, { "parameters": { "method": "POST", "url": "https://graph.facebook.com/v20.0/[your-unique-id]/media", "authentication": "predefinedCredentialType", "nodeCredentialType": "facebookGraphApi", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "image_url", "value": "={{ $json.data.medium.url }}" }, { "name": "caption", "value": "={{ $('Social Media Content Factory').item.json.output.platform_posts.Instagram.caption }}" } ] }, "options": {} }, "id": "af06853c-258e-4dfb-a579-3168c8de96bd", "name": "Instagram Image", "type": "n8n-nodes-base.httpRequest", "position": [ 2944, 576 ], "typeVersion": 4.2, "onError": "continueRegularOutput" }, { "parameters": { "httpRequestMethod": "POST", "graphApiVersion": "v20.0", "node": "[your-unique-id]", "edge": "media_publish", "options": { "queryParameters": { "parameter": [ { "name": "creation_id", "value": "={{ $json.id }}" }, { "name": "caption", "value": "={{ $('Social Media Content Factory').item.json.output.platform_posts.Instagram.caption }}" } ] } } }, "id": "6ee72138-a8ec-4fbd-8f14-fd6e881edfd1", "name": "Instragram Post", "type": "n8n-nodes-base.facebookGraphApi", "position": [ 3168, 576 ], "typeVersion": 1, "alwaysOutputData": true, "onError": "continueRegularOutput" }, { "parameters": { "text": "={{ $('Social Media Content Factory').item.json.output.platform_posts['X-Twitter'].post }}", "additionalFields": {} }, "id": "9e168865-1eae-4e53-99c9-91b041426ecb", "name": "X Post", "type": "n8n-nodes-base.twitter", "position": [ 3168, 768 ], "typeVersion": 2, "alwaysOutputData": true, "onError": "continueRegularOutput" }, { "parameters": { "httpRequestMethod": "POST", "graphApiVersion": "v20.0", "node": "[your-unique-id]", "edge": "photos", "sendBinaryData": true, "binaryPropertyName": "data", "options": { "queryParameters": { "parameter": [ { "name": "message", "value": "={{ $('Social Media Content Factory').item.json.output.platform_posts.Facebook.post }}\n\n{{ $('Social Media Content Factory').item.json.output.platform_posts.Facebook.call_to_action }}\n" }, { "name": "link", "value": "={{ $('Social Media Content Factory').item.json.output.platform_posts.Facebook.call_to_action }}" } ] } } }, "id": "4ee55c94-7251-445e-8ce7-15eee7165010", "name": "Facebook Post", "type": "n8n-nodes-base.facebookGraphApi", "position": [ 3168, 960 ], "typeVersion": 1, "alwaysOutputData": true, "onError": "continueRegularOutput" }, { "parameters": { "postAs": "organization", "organization": "12345678", "text": "={{ $('Social Media Content Factory').item.json.output.platform_posts.LinkedIn.post }}\n{{ $('Social Media Content Factory').item.json.output.platform_posts.LinkedIn.call_to_action }}\n{{ $('Social Media Content Factory').item.json.output.platform_posts.LinkedIn.hashtags }}\n{{ $('Social Media Content Factory').item.json.output.platform_posts.LinkedIn.call_to_action }}", "shareMediaCategory": "IMAGE", "binaryPropertyName": "=data", "additionalFields": {} }, "id": "3a015f3f-a162-411a-85e8-e1f042d9c653", "name": "LinkedIn Post", "type": "n8n-nodes-base.linkedIn", "position": [ 3168, 1152 ], "typeVersion": 1, "alwaysOutputData": true, "onError": "continueRegularOutput" }, { "parameters": { "resource": "image", "prompt": "={{ $('Social Media Content Factory').item.json.output.platform_posts.Instagram.caption }}", "options": {} }, "id": "8ab03d75-b4c5-4271-8fa9-830f449a3a3c", "name": "OpenAI", "type": "@n8n/n8n-nodes-langchain.openAi", "position": [ 1600, 864 ], "typeVersion": 1.8, "alwaysOutputData": true, "credentials": { "openAiApi": { "id": "PB4HrkqRvW71v8uQ", "name": "OpenAi account" } } }, { "parameters": { "mode": "combine", "combineBy": "combineByPosition", "options": {} }, "id": "d1ac29b1-128d-4615-b828-89f1f64d1b15", "name": "Merge1", "type": "n8n-nodes-base.merge", "position": [ 2720, 576 ], "typeVersion": 3 }, { "parameters": { "mode": "combine", "combineBy": "combineByPosition", "options": { "includeUnpaired": true } }, "id": "71eebce8-027a-4b12-b07e-692121de9a68", "name": "Merge2", "type": "n8n-nodes-base.merge", "position": [ 2944, 1080 ], "typeVersion": 3 }, { "parameters": { "aggregate": "aggregateAllItemData", "options": {} }, "id": "140cff41-a619-4111-8dc9-3ec8fc45e061", "name": "Aggregate", "type": "n8n-nodes-base.aggregate", "position": [ 3840, 888 ], "typeVersion": 1 }, { "parameters": { "model": { "__rl": true, "mode": "list", "value": "gpt-4o-mini", "cachedResultName": "gpt-4o-mini" }, "options": { "responseFormat": "text" } }, "id": "3e96bfac-dad5-4b75-b51b-50329892ee70", "name": "gpt-4o-mini1", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [ 4136, 784 ], "typeVersion": 1.2, "credentials": { "openAiApi": { "id": "PB4HrkqRvW71v8uQ", "name": "OpenAi account" } } }, { "parameters": { "model": { "__rl": true, "mode": "list", "value": "gpt-4o-mini", "cachedResultName": "gpt-4o-mini" }, "options": { "responseFormat": "text" } }, "id": "4d73d59f-bb8c-481b-877a-bf4dc64f3277", "name": "gpt-4o-mini2", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [ 4136, 1288 ], "typeVersion": 1.2, "credentials": { "openAiApi": { "id": "PB4HrkqRvW71v8uQ", "name": "OpenAi account" } } }, { "parameters": { "operation": "sendAndWait", "sendTo": "={{ $env.EMAIL_ADDRESS_JOE }} ", "subject": "=🔥FOR APPROVAL🔥{{ $('Social Media Content Factory').item.json.output.name }} - {{ $('Social Media Content Factory').item.json.output.description }}", "message": "={{ $json.output }}", "approvalOptions": { "values": { "approvalType": "double" } }, "options": { "limitWaitTime": { "values": { "resumeAmount": 45, "resumeUnit": "minutes" } } } }, "id": "aaef70d7-6029-4fae-afc1-72a6a0019b03", "name": "Gmail User for Approval", "type": "n8n-nodes-base.gmail", "position": [ 1152, 864 ], "webhookId": "c46cf421-ddb6-45a8-b83b-80b381666f0e", "typeVersion": 2.1, "credentials": { "gmailOAuth2": { "id": "WxEaduFzHG7u6wEx", "name": "Gmail account" } } }, { "parameters": { "content": "## Publish to Social Media", "height": 1100, "width": 300, "color": 6 }, "id": "44e3bada-7665-4268-bb79-12ffb377552e", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [ 2954, 212 ], "typeVersion": 1 }, { "parameters": { "content": "## Format Results", "height": 880, "width": 300, "color": 5 }, "id": "75bfc1f4-0afa-4d8d-b5cc-83e29b6570f9", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [ 3290, 432 ], "typeVersion": 1 }, { "parameters": { "content": "# Step 4️⃣: Send Final Results of Social Media Factory", "height": 760, "width": 1020, "color": 7 }, "id": "ff5d050a-111c-4467-bc61-e51444943cb5", "name": "Sticky Note7", "type": "n8n-nodes-base.stickyNote", "position": [ 3666, 672 ], "typeVersion": 1 }, { "parameters": { "content": "## Create Post Image", "height": 260, "width": 260, "color": 3 }, "id": "26a684cc-72d9-40c8-bd30-1d074d914328", "name": "Sticky Note8", "type": "n8n-nodes-base.stickyNote", "position": [ 1518, 764 ], "typeVersion": 1 }, { "parameters": { "operation": "sendAndWait", "sendTo": "={{ $env.EMAIL_ADDRESS_JOE }} ", "subject": "=🔥FOR APPROVAL🔥 New LinkedIn Post", "message": "=\n
\n\n {{ $('Social Media Content Factory').item.json.output.platform_posts.LinkedIn.post }}\n
\n \n\n {{ $('Social Media Content Factory').item.json.output.platform_posts.LinkedIn.call_to_action }}\n
\n\n\t\t\t\t
|