Created
April 2, 2025 07:33
-
-
Save Peccer/8d535f4569c4d1b33ee8589953c5d80d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Linkedin Post Creator", | |
"nodes": [ | |
{ | |
"parameters": { | |
"url": "https://taskmastergpt.nl/generative-ai-project/ai-powered-web-data-extraction-a-scraper-for-anyone/", | |
"options": {} | |
}, | |
"id": "c9f4d157-2d36-4fa9-991a-d33edba32e28", | |
"name": "Fetch Webpage HTML", | |
"type": "n8n-nodes-base.httpRequest", | |
"typeVersion": 4.1, | |
"position": [ | |
200, | |
0 | |
] | |
}, | |
{ | |
"parameters": { | |
"operation": "extractHtmlContent", | |
"extractionValues": { | |
"values": [ | |
{ | |
"key": "data", | |
"cssSelector": "#content > div" | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.html", | |
"typeVersion": 1.2, | |
"position": [ | |
400, | |
0 | |
], | |
"id": "03b88683-571b-4728-9d00-da656f9a1596", | |
"name": "HTML" | |
}, | |
{ | |
"parameters": { | |
"html": "={{ $json.data }}", | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.markdown", | |
"typeVersion": 1, | |
"position": [ | |
620, | |
0 | |
], | |
"id": "c8840cf2-8f19-4e86-ae40-7794af8ddbcc", | |
"name": "Markdown" | |
}, | |
{ | |
"parameters": { | |
"modelId": { | |
"__rl": true, | |
"value": "gpt-4o-mini", | |
"mode": "list", | |
"cachedResultName": "GPT-4O-MINI" | |
}, | |
"messages": { | |
"values": [ | |
{ | |
"content": "=Summarize the following text into a concise and engaging LinkedIn post. Identify key takeaways or interesting points. Keep it professional. IMPORTANT: Where you would normally use Markdown for **bold** text, instead use Unicode bold characters (e.g., ππ’ππ π§ππ«π§). Where you would use *italic* text, use Unicode italic characters (e.g., ππππππ ππππ). Use this styling sparingly for emphasis only.\n\nText:\n---\n{{ $json.data }}\n---\nLinkedIn Post:" | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.openAi", | |
"typeVersion": 1.8, | |
"position": [ | |
780, | |
-100 | |
], | |
"id": "3128c0f6-3698-4849-80fd-5edc4da4a4d6", | |
"name": "OpenAI", | |
"credentials": { | |
"openAiApi": { | |
"id": "0ZHs0D7dclV0D90u", | |
"name": "OpenAi account" | |
} | |
} | |
}, | |
{ | |
"parameters": {}, | |
"type": "n8n-nodes-base.manualTrigger", | |
"typeVersion": 1, | |
"position": [ | |
0, | |
0 | |
], | |
"id": "bed23233-6722-4e21-b6a4-0fb757953963", | |
"name": "When clicking βTest workflowβ" | |
}, | |
{ | |
"parameters": { | |
"authentication": "communityManagement", | |
"text": "={{ $json.content }}", | |
"additionalFields": {} | |
}, | |
"type": "n8n-nodes-base.linkedIn", | |
"typeVersion": 1, | |
"position": [ | |
1360, | |
-100 | |
], | |
"id": "ced7b8c6-981a-48b8-a31c-76e574abfc79", | |
"name": "LinkedIn", | |
"credentials": { | |
"linkedInCommunityManagementOAuth2Api": { | |
"id": "yJh6DbIzvbyqUaUt", | |
"name": "LinkedIn Community Management account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"language": "python", | |
"pythonCode": "# Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor item in _input.all():\n print(item)\nreturn [\n {\n \"content\":_input.all()[0].json.message.content.replace(\"*\",\"\")\n }\n]" | |
}, | |
"type": "n8n-nodes-base.code", | |
"typeVersion": 2, | |
"position": [ | |
1140, | |
-100 | |
], | |
"id": "fc34b000-f5e5-49bb-8392-d2c96989c3e0", | |
"name": "Formatting and cleaning" | |
} | |
], | |
"pinData": {}, | |
"connections": { | |
"Fetch Webpage HTML": { | |
"main": [ | |
[ | |
{ | |
"node": "HTML", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"HTML": { | |
"main": [ | |
[ | |
{ | |
"node": "Markdown", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Markdown": { | |
"main": [ | |
[ | |
{ | |
"node": "OpenAI", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"OpenAI": { | |
"main": [ | |
[ | |
{ | |
"node": "Formatting and cleaning", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"When clicking βTest workflowβ": { | |
"main": [ | |
[ | |
{ | |
"node": "Fetch Webpage HTML", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Formatting and cleaning": { | |
"main": [ | |
[ | |
{ | |
"node": "LinkedIn", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": false, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "8f7aa85a-1480-4a4f-8f2c-6e9cafe85a5f", | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "8ff2705304fdc6e19fafab741d12804e2d6a072f26686378c0e1ce2fa6fde673" | |
}, | |
"id": "2IZnxGtwv8EdiBLk", | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment