This workflow corresponds to n8n.io template #2950 — we link there as the canonical source.
This workflow follows the Agent → Facebookgraphapi recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "LzDLmNc63zyqQBXz",
"name": "Social Media Tutorial",
"tags": [],
"nodes": [
{
"id": "8034d082-f50e-4f6b-8a79-ce7f86012d72",
"name": "On form submission",
"type": "n8n-nodes-base.formTrigger",
"position": [
920,
20
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "e38a74d5-a733-4f5c-a97b-2c761b46919b",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1180,
520
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "ca0a8aef-0251-45ed-bc9b-05ee977febf9",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
980,
780
],
"parameters": {},
"typeVersion": 1
},
{
"id": "31e88059-94ca-4d4e-a673-e0f8cd1ac96e",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
1300,
780
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "ffda1c79-faa4-4cc8-8655-6f7fc14b7e2d",
"name": "Split Form Input",
"type": "n8n-nodes-base.set",
"position": [
1320,
40
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "37e443e1-6925-44a1-a07e-9eb1120e55a9",
"name": "Upload Image",
"type": "n8n-nodes-base.form",
"position": [
320,
1160
],
"parameters": {},
"typeVersion": 1
},
{
"id": "265068ce-22fc-4c41-9ed2-93eadc0ce25f",
"name": "Split Data",
"type": "n8n-nodes-base.set",
"position": [
1560,
40
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "b8470879-413e-4901-bf39-23a19beaee5f",
"name": "Data for AI",
"type": "n8n-nodes-base.set",
"position": [
1880,
40
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "eef02dcb-7c7f-4d6c-a1fd-039c8b30f10d",
"name": "Aggregate",
"type": "n8n-nodes-base.aggregate",
"position": [
1680,
760
],
"parameters": {},
"typeVersion": 1
},
{
"id": "097e7724-4dc0-4cc9-b12c-2dbdae4e024f",
"name": "Form",
"type": "n8n-nodes-base.form",
"position": [
1820,
1960
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7b1d64fc-02ad-4b8f-ad1e-be8894abd932",
"name": "Nest Top Meta",
"type": "n8n-nodes-base.set",
"position": [
940,
1160
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "11ddcfe8-1978-4f5a-8c29-67e72920431a",
"name": "Rename Image Binary Top Image",
"type": "n8n-nodes-base.code",
"position": [
-40,
1960
],
"parameters": {},
"typeVersion": 2
},
{
"id": "19892590-5ddf-47ac-b544-7a72a68bd45e",
"name": "Publish to Facebook",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
440,
2080
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b3b0068b-c75a-427c-bb2d-77b21bc6ff16",
"name": "Publish to LinkedIn",
"type": "n8n-nodes-base.linkedIn",
"position": [
420,
1840
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ed5fe0c2-a07a-45f1-90cb-65f21d416a1a",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
860,
-80
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c4a2e59d-165a-49cc-8074-9868ee4e0d6c",
"name": "X",
"type": "n8n-nodes-base.twitter",
"position": [
440,
1600
],
"parameters": {},
"typeVersion": 2
},
{
"id": "66ba98a9-24c0-4128-9ad9-792a0d400aae",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
860,
340
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "02fafdc7-0272-4f34-9b66-dfbe8e16e70d",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
960
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "21d945c3-446c-4bb9-8696-a70034801485",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
1480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c9efdc38-94c6-494e-a932-45b75312bb54",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1620,
1480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "93632f4f-9182-4b76-bbe0-e6d5dd230452",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"position": [
800,
1600
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "89f22cf8-9499-4b7f-872d-97099c5d1e50",
"name": "Image for Instagram",
"type": "n8n-nodes-base.httpRequest",
"position": [
740,
2280
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "c415eeb9-f916-4c08-afb1-baed3f3280cc",
"name": "Publish to Instagram",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
1060,
2280
],
"parameters": {},
"typeVersion": 1
},
{
"id": "1c8f6ba6-c28b-45a8-ba0d-3f2f21ccbfa0",
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"position": [
1380,
1940
],
"parameters": {},
"typeVersion": 3
},
{
"id": "d9cfdcd1-18db-4d0d-9b6a-66897600e496",
"name": "Upload Image to imgbb.com",
"type": "n8n-nodes-base.httpRequest",
"position": [
440,
2280
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "f7e5b1b1-aeaa-4851-be04-53e8255fa343",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
-80
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "4a55bf93-ae0c-4aa9-84a8-cd4d02375e51",
"connections": {
"X": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Merge1": {
"main": [
[
{
"node": "Form",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Upload Image",
"type": "main",
"index": 0
}
]
]
},
"Split Data": {
"main": [
[
{
"node": "Data for AI",
"type": "main",
"index": 0
}
]
]
},
"Data for AI": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"Upload Image": {
"main": [
[
{
"node": "Nest Top Meta",
"type": "main",
"index": 0
}
]
]
},
"Nest Top Meta": {
"main": [
[
{
"node": "Rename Image Binary Top Image",
"type": "main",
"index": 0
}
]
]
},
"Split Form Input": {
"main": [
[
{
"node": "Split Data",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Split Form Input",
"type": "main",
"index": 0
}
]
]
},
"Image for Instagram": {
"main": [
[
{
"node": "Publish to Instagram",
"type": "main",
"index": 0
}
]
]
},
"Publish to Facebook": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 2
}
]
]
},
"Publish to LinkedIn": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"Publish to Instagram": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 3
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Upload Image to imgbb.com": {
"main": [
[
{
"node": "Image for Instagram",
"type": "main",
"index": 0
}
]
]
},
"Rename Image Binary Top Image": {
"main": [
[
{
"node": "X",
"type": "main",
"index": 0
},
{
"node": "Publish to LinkedIn",
"type": "main",
"index": 0
},
{
"node": "Publish to Facebook",
"type": "main",
"index": 0
},
{
"node": "Upload Image to imgbb.com",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This AI-driven n8n workflow automates social media content creation and publishing across LinkedIn, Instagram, Facebook, and Twitter (X). It generates engaging, platform-optimized posts using Google Gemini AI, based on user inputs such as a post title, keywords, and an uploaded…
Source: https://n8n.io/workflows/2950/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow is built for creators, solopreneurs, SaaS founders, and agencies looking to automate their social media content process from idea to publication. It combines the power of OpenAI, Google
✨🤖Automated AI Powered Social Media Content Factory for X + Facebook + Instagram + LinkedIn. Uses outputParserStructured, lmChatGoogleGemini, lmChatOpenAi, httpRequest. Event-driven trigger; 57 nodes
Social Media Managers and Digital Marketers seeking to streamline content production across 7+ platforms (X/Twitter, Instagram, LinkedIn, Facebook, TikTok, Threads, YouTube Shorts) using AI-powered au
This workflow is ideal for individuals, marketers, agencies, and brands who want to effortlessly automate the entire blogging and social media process—from idea generation to promotion. Its primary go
Hacker News to Video Template - AlexK1919. Uses manualTrigger, hackerNews, splitInBatches, lmChatOpenAi. Event-driven trigger; 48 nodes.