Created
June 26, 2025 03:32
-
-
Save woutrbe/fc7852f5e8236d068fc89c0f75fb859d to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "Post article", | |
"nodes": [ | |
{ | |
"parameters": { | |
"url": "={{ $json.message.text }}", | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.httpRequest", | |
"typeVersion": 4.2, | |
"position": [ | |
160, | |
-100 | |
], | |
"id": "7ef10bef-5c5e-4d44-9920-36caaf4a79ee", | |
"name": "HTTP Request", | |
"alwaysOutputData": true | |
}, | |
{ | |
"parameters": { | |
"html": "={{ $json.data }}" | |
}, | |
"type": "n8n-nodes-webpage-content-extractor.webpageContentExtractor", | |
"typeVersion": 1, | |
"position": [ | |
380, | |
-100 | |
], | |
"id": "f710ee8f-dd75-4109-bef3-a501d17afc1d", | |
"name": "WebpageContentExtractor" | |
}, | |
{ | |
"parameters": { | |
"promptType": "define", | |
"text": "={{ $json.textContent }}", | |
"options": { | |
"systemMessage": "You are an expert social media content writer. You'll be given a cryptocurrency related article, and will need to create a post for BlueSky (max 300 characters). Your target audience are tech savvy readers who are already into cryptocurrency.\n\nUse plain-text and emojis only. NO markdown." | |
} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.agent", | |
"typeVersion": 2, | |
"position": [ | |
600, | |
-100 | |
], | |
"id": "b3e979cb-b8c1-4840-b381-95e3d9308eef", | |
"name": "AI Agent" | |
}, | |
{ | |
"parameters": { | |
"model": "deepseek-reasoner", | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek", | |
"typeVersion": 1, | |
"position": [ | |
688, | |
120 | |
], | |
"id": "4c1c4fde-c687-48b8-ad0a-1d17dc1e97fe", | |
"name": "DeepSeek Chat Model", | |
"credentials": { | |
"deepSeekApi": { | |
"id": "AcTNJeHjoopYsJgY", | |
"name": "DeepSeek account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"conditions": { | |
"options": { | |
"caseSensitive": true, | |
"leftValue": "", | |
"typeValidation": "strict", | |
"version": 2 | |
}, | |
"conditions": [ | |
{ | |
"id": "2ac5a4ae-c9f2-4ed4-bbf6-45b2076c89da", | |
"leftValue": "={{ $json.output.length }}", | |
"rightValue": 300, | |
"operator": { | |
"type": "number", | |
"operation": "lte" | |
} | |
} | |
], | |
"combinator": "and" | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.if", | |
"typeVersion": 2.2, | |
"position": [ | |
960, | |
-20 | |
], | |
"id": "d5473121-2b8f-41a0-aa6d-06a82c37df20", | |
"name": "If" | |
}, | |
{ | |
"parameters": { | |
"updates": [ | |
"message" | |
], | |
"additionalFields": {} | |
}, | |
"type": "n8n-nodes-base.telegramTrigger", | |
"typeVersion": 1.2, | |
"position": [ | |
-60, | |
-100 | |
], | |
"id": "253258db-96ed-492f-b9e9-9a3ec61e4eb5", | |
"name": "Telegram Trigger", | |
"webhookId": "23192f44-9a19-496b-9324-9f92ab01835b", | |
"credentials": { | |
"telegramApi": { | |
"id": "Pyy4JGj9nMN0lFlI", | |
"name": "Telegram account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"operation": "sendAndWait", | |
"chatId": "", | |
"message": "=**Bluesky post:**\n\n---\n\n{{ $('AI Agent').item.json.output }}\n\n---", | |
"approvalOptions": { | |
"values": { | |
"approvalType": "double" | |
} | |
}, | |
"options": { | |
"limitWaitTime": { | |
"values": { | |
"resumeAmount": 2, | |
"resumeUnit": "minutes" | |
} | |
} | |
} | |
}, | |
"type": "n8n-nodes-base.telegram", | |
"typeVersion": 1.2, | |
"position": [ | |
1196, | |
-100 | |
], | |
"id": "51f3b37e-119e-444b-882f-8742eaeb3838", | |
"name": "Telegram", | |
"webhookId": "b24f1379-002f-4a08-981d-63ecfa3de1f4", | |
"credentials": { | |
"telegramApi": { | |
"id": "Pyy4JGj9nMN0lFlI", | |
"name": "Telegram account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"conditions": { | |
"options": { | |
"caseSensitive": true, | |
"leftValue": "", | |
"typeValidation": "strict", | |
"version": 2 | |
}, | |
"conditions": [ | |
{ | |
"id": "b9914e86-ed3f-476b-bf4c-c54e17ed1af3", | |
"leftValue": "={{ $json.data.approved }}", | |
"rightValue": "", | |
"operator": { | |
"type": "boolean", | |
"operation": "true", | |
"singleValue": true | |
} | |
} | |
], | |
"combinator": "and" | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.if", | |
"typeVersion": 2.2, | |
"position": [ | |
1420, | |
-20 | |
], | |
"id": "f9dad0ae-0b9e-4b4e-a631-4baf2f214ef7", | |
"name": "If1" | |
}, | |
{ | |
"parameters": { | |
"postText": "={{ $('AI Agent').item.json.output }}", | |
"websiteCard": { | |
"details": { | |
"uri": "={{ $('Telegram Trigger').item.json.message.text }}", | |
"fetchOpenGraphTags": true | |
} | |
} | |
}, | |
"type": "n8n-nodes-bluesky-enhanced.bluesky", | |
"typeVersion": 2, | |
"position": [ | |
1640, | |
-100 | |
], | |
"id": "3039f184-964f-4cfd-aaf5-36e5d9a324a8", | |
"name": "Bluesky", | |
"credentials": { | |
"blueskyApi": { | |
"id": "okh1IjSAZGbhdtEi", | |
"name": "onchainoracle" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"chatId": "", | |
"text": "={{ $json.uri }}", | |
"additionalFields": {} | |
}, | |
"type": "n8n-nodes-base.telegram", | |
"typeVersion": 1.2, | |
"position": [ | |
1860, | |
-100 | |
], | |
"id": "cc79470c-9943-4dd4-a4a0-0108a2d9ae9c", | |
"name": "Telegram1", | |
"webhookId": "764138e7-f36b-42d4-9c28-2338ef13283d", | |
"credentials": { | |
"telegramApi": { | |
"id": "Pyy4JGj9nMN0lFlI", | |
"name": "Telegram account" | |
} | |
} | |
} | |
], | |
"pinData": {}, | |
"connections": { | |
"HTTP Request": { | |
"main": [ | |
[ | |
{ | |
"node": "WebpageContentExtractor", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"DeepSeek Chat Model": { | |
"ai_languageModel": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_languageModel", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"WebpageContentExtractor": { | |
"main": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"AI Agent": { | |
"main": [ | |
[ | |
{ | |
"node": "If", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"If": { | |
"main": [ | |
[ | |
{ | |
"node": "Telegram", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Telegram Trigger": { | |
"main": [ | |
[ | |
{ | |
"node": "HTTP Request", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Telegram": { | |
"main": [ | |
[ | |
{ | |
"node": "If1", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"If1": { | |
"main": [ | |
[ | |
{ | |
"node": "Bluesky", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Bluesky": { | |
"main": [ | |
[ | |
{ | |
"node": "Telegram1", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": false, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "abf95c21-85d9-411a-9674-cc833543fdb1", | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "8d9ea34f608af4b3be1fd505b044338ad8fcf28b96d009b80ca697b0ee4325ee" | |
}, | |
"id": "7XeA9RDLuIepqTDA", | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment