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": "linkedin-auto-post-agent",
"meta": {
"templateCredsSetupCompleted": false
},
"name": "LinkedIn Auto-Post Agent",
"tags": [
{
"id": "social-media",
"name": "Social Media",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
},
{
"id": "ai-automation",
"name": "AI Automation",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
},
{
"id": "linkedin",
"name": "LinkedIn",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
],
"nodes": [
{
"id": "f6b4c8d0-1234-4567-8901-234567890abc",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
240,
300
],
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"cronExpression": "0 9 * * 1-5"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "a1b2c3d4-5678-9012-3456-789012345678",
"name": "OpenAI Content Generation",
"type": "n8n-nodes-base.openAi",
"position": [
460,
300
],
"parameters": {
"model": "gpt-3.5-turbo",
"prompt": "You are a professional LinkedIn content creator. Generate an engaging, professional post that is 150-300 characters long with relevant hashtags. Focus on industry insights, professional development, or thought leadership topics.\n\nCreate a LinkedIn post about professional growth and continuous learning in the tech industry. Make it inspiring and include 2-3 relevant hashtags.",
"options": {
"topP": 1,
"maxTokens": 200,
"temperature": 0.7
},
"operation": "complete"
},
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
},
"retryOnFail": {
"enabled": true,
"maxRetries": 3,
"waitBetween": 1000
},
"typeVersion": 1,
"continueOnFail": true
},
{
"id": "e5f6g7h8-9012-3456-7890-123456789012",
"name": "LinkedIn Post",
"type": "n8n-nodes-base.linkedIn",
"position": [
680,
300
],
"parameters": {
"text": "={{ $json.choices[0].text }}",
"resource": "post",
"operation": "create",
"additionalFields": {
"visibility": "public"
}
},
"credentials": {
"linkedInOAuth2Api": {
"name": "<your credential>"
}
},
"retryOnFail": {
"enabled": true,
"maxRetries": 3,
"waitBetween": 1000
},
"typeVersion": 1,
"continueOnFail": true
},
{
"id": "m7n8o9p0-1234-5678-9012-345678901234",
"name": "Manual Trigger",
"type": "n8n-nodes-base.manualTrigger",
"position": [
240,
180
],
"parameters": {
"options": {}
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": {
"enabled": false
},
"executionOrder": "v1",
"saveManualExecutions": true
},
"versionId": "1.0.0",
"connections": {
"Manual Trigger": {
"main": [
[
{
"node": "OpenAI Content Generation",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "OpenAI Content Generation",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Content Generation": {
"main": [
[
{
"node": "LinkedIn Post",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
linkedInOAuth2ApiopenAiApi
About this workflow
LinkedIn Auto-Post Agent. Uses scheduleTrigger, openAi, linkedIn, manualTrigger. Scheduled trigger; 4 nodes.
Source: https://github.com/ScraperNode/awesome-n8n-templates/blob/main/templates/ai-and-llm/7521-automated-linkedin-posts-with-ai-generated-content-using-openai-gpt/workflow.json — original creator credit. Request a take-down →