This workflow corresponds to n8n.io template #4674 — we link there as the canonical source.
This workflow follows the Agent → Emailsend 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": "Bh88SWMuqHN92zEA",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Auto-post generation",
"tags": [],
"nodes": [
{
"id": "590b9032-e9bf-431f-b506-9f3d01d2da00",
"name": "LinkedIn Post Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1300,
-140
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "496f60a7-4d0b-43e9-a7f6-e535c4dd7ff6",
"name": "Image Prompt Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1740,
-140
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "80f421bf-bb49-413b-820b-cbadbe62f6d9",
"name": "On form submission",
"type": "n8n-nodes-base.formTrigger",
"position": [
1020,
-140
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "ee27bf52-811a-46ee-9eb2-7c2d350b57d7",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1240,
-240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d79ef703-2aee-4273-a7e6-63aaa83a0888",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
2100,
-240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "7045e571-590a-4a1e-b37a-49e258e4b319",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2580,
-240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "6b10e9be-9bba-4869-b0c6-27177bb12a78",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1640,
-240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "52869b63-cba1-49e1-a2d9-b80c4d2d7609",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
940,
-240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "6f2305a9-9644-45e6-b49c-81d2a9d10acf",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1240,
40
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5fa51108-32bb-45bf-9780-d628443190e1",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
200,
-240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "22f7dbdd-cebb-404e-b8ad-93a5026d17c6",
"name": "When clicking \u2018Test workflow\u2019",
"type": "n8n-nodes-base.manualTrigger",
"position": [
1040,
500
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f39bf200-9bf0-44f6-b4a1-e1b17411ba52",
"name": "Convert to File",
"type": "n8n-nodes-base.convertToFile",
"position": [
1480,
500
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "f918e7c3-9132-4fb2-98c5-e3207e150bda",
"name": "Generate Image1",
"type": "n8n-nodes-base.httpRequest",
"position": [
1260,
500
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "b58177e4-0e2d-41eb-a84e-8ae50f43bfd4",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
940,
360
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "42e54350-0f18-4ea9-a97c-f6250392c8e4",
"name": "Tavily",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
1460,
140
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "413ee3a8-2592-4170-805c-78ea9bcf8d20",
"name": "Ollama Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"position": [
1300,
140
],
"parameters": {},
"typeVersion": 1
},
{
"id": "05fa8332-48ca-412d-aac5-cf4b1be56ee3",
"name": "Ollama Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"position": [
1780,
160
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ae39b076-3801-436a-ba34-5b0bc209165e",
"name": "Generate Image2",
"type": "n8n-nodes-base.httpRequest",
"position": [
2180,
-160
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "e4e1ba34-5678-4098-b168-c2fd6949364d",
"name": "Download Image",
"type": "n8n-nodes-base.httpRequest",
"position": [
2380,
-160
],
"parameters": {},
"typeVersion": 4
},
{
"id": "2078044a-3a4a-42c1-9d68-12c040a72837",
"name": "Send Email",
"type": "n8n-nodes-base.emailSend",
"position": [
2600,
-160
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "5d3dc9d4-62c9-4711-9c08-df2d56c0da09",
"name": "LinkedIn",
"type": "n8n-nodes-base.linkedIn",
"position": [
2820,
-160
],
"parameters": {},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "d6945ea0-837b-40c7-b31c-af44685d4a8c",
"connections": {
"Tavily": {
"ai_tool": [
[
{
"node": "LinkedIn Post Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Send Email": {
"main": [
[
{
"node": "LinkedIn",
"type": "main",
"index": 0
}
]
]
},
"Download Image": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
},
"Generate Image1": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"Generate Image2": {
"main": [
[
{
"node": "Download Image",
"type": "main",
"index": 0
}
]
]
},
"Ollama Chat Model": {
"ai_languageModel": [
[
{
"node": "LinkedIn Post Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Image Prompt Agent": {
"main": [
[
{
"node": "Generate Image2",
"type": "main",
"index": 0
}
]
]
},
"Ollama Chat Model1": {
"ai_languageModel": [
[
{
"node": "Image Prompt Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "LinkedIn Post Agent",
"type": "main",
"index": 0
}
]
]
},
"LinkedIn Post Agent": {
"main": [
[
{
"node": "Image Prompt Agent",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "Generate Image1",
"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 automation flow is designed to generate professional, research-backed LinkedIn posts based on a user-submitted topic and audience, enhance it with a visually aligned image prompt, and then automatically send the post and image via Gmail and/or publish it to LinkedIn. ⚙️ How…
Source: https://n8n.io/workflows/4674/ — 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 designed for marketers, content creators, agencies, and solo founders who want to publish long‑form posts with visuals on autopilot using n8n and AI agents.
OpenAI Image Gen LinkedIn Post. Uses toolHttpRequest, lmChatOpenRouter, linkedIn, agent. Event-driven trigger; 20 nodes.
Ce template permet de transformer un document (PDF, TXT, DocX...) en post LinkedIn engageant, prêt à être publié ou validé par email, le tout avec l’aide d’une IA spécialisée en copywriting LinkedIn.
How it Works
Generate research-backed article with n8n