feat: add folder support for workflows (fixes #70)
This commit is contained in:
218
workflows/Linkedin/0847_Linkedin_Splitout_Create_Triggered.json
Normal file
218
workflows/Linkedin/0847_Linkedin_Splitout_Create_Triggered.json
Normal file
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"meta": {
|
||||
"instanceId": "2f17285f1745a5069c9edd8be78921f40c6549f5b2e1cfd76834c7f73edd2c07",
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"id": "02628817-d072-4caa-b935-945d09f57a85",
|
||||
"name": "When clicking ‘Test workflow’",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"position": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"parameters": {},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "7361f9a8-d834-49d3-b0c1-bb4510f654cc",
|
||||
"name": "Gmail",
|
||||
"type": "n8n-nodes-base.gmail",
|
||||
"position": [
|
||||
220,
|
||||
0
|
||||
],
|
||||
"webhookId": "326419f6-008b-4814-b55d-efaae118eab7",
|
||||
"parameters": {
|
||||
"limit": 1,
|
||||
"simple": false,
|
||||
"filters": {
|
||||
"sender": "decodeai@ghost.io"
|
||||
},
|
||||
"options": {},
|
||||
"operation": "getAll"
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "pwMK2jDEWY5arMX3",
|
||||
"name": "Gmail account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "39e63d5f-db0d-4fc6-a5e8-a9ac3c2a703c",
|
||||
"name": "Split Out",
|
||||
"type": "n8n-nodes-base.splitOut",
|
||||
"position": [
|
||||
816,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"fieldToSplitOut": "message.content.news_items"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "70e64a00-8dc0-4ef4-a4fd-3ac2e50c8fb3",
|
||||
"name": "Extract News Items",
|
||||
"type": "@n8n/n8n-nodes-langchain.openAi",
|
||||
"position": [
|
||||
440,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"modelId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "o3-mini-2025-01-31",
|
||||
"cachedResultName": "O3-MINI-2025-01-31"
|
||||
},
|
||||
"options": {},
|
||||
"messages": {
|
||||
"values": [
|
||||
{
|
||||
"content": "=Given the following newsletter content, identify and summarize the 5 main news items. Focus on factual updates like new AI tools, product launches, or strategic investments. For each item, extract a headline and provide a concise summary. Please ignore purely promotional sections (e.g., calls to book demos or product advertisements).\n\n<text>\n{{ $json.text }}\n</text>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"jsonOutput": true
|
||||
},
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": "29u49HnATSs6YuKN",
|
||||
"name": "OpenAi account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.8
|
||||
},
|
||||
{
|
||||
"id": "cecf013b-bcf2-49a3-acc2-b81e355446b6",
|
||||
"name": "Create LinkedIn Posts",
|
||||
"type": "@n8n/n8n-nodes-langchain.openAi",
|
||||
"position": [
|
||||
1040,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"modelId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "o3-mini-2025-01-31",
|
||||
"cachedResultName": "O3-MINI-2025-01-31"
|
||||
},
|
||||
"options": {},
|
||||
"messages": {
|
||||
"values": [
|
||||
{
|
||||
"content": "=Using the news item details below:\n\nHeadline: {{ $json.headline }}\nSummary: {{ $json.summary }}\n\nCraft a concise, non-promotional LinkedIn post in a smart, deadpan style with subtle humor. Focus on clearly conveying the main points and insights so readers gain practical value. \n- Break up the text into short paragraphs or bullet points for clarity.\n- Use line breaks where helpful.\n- End with an observation or question that encourages reflection—without being overly salesy or flashy.\n- Keep it under 80 words total.\n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": "29u49HnATSs6YuKN",
|
||||
"name": "OpenAi account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.8
|
||||
},
|
||||
{
|
||||
"id": "31412fb3-ef9a-4c98-840b-a97fd7075181",
|
||||
"name": "LinkedIn",
|
||||
"type": "n8n-nodes-base.linkedIn",
|
||||
"position": [
|
||||
1420,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"text": "={{ $json.message.content }}",
|
||||
"person": "EI5XKdiMv1",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"credentials": {
|
||||
"linkedInOAuth2Api": {
|
||||
"id": "G3JLFJtB5Y7q9FSY",
|
||||
"name": "LinkedIn account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "a80f43a1-35c8-4f41-8d96-6e64e4ae0cf7",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-20,
|
||||
-620
|
||||
],
|
||||
"parameters": {
|
||||
"width": 900,
|
||||
"height": 520,
|
||||
"content": "# Workflow Overview\n\n**Name:** Transform Gmail Newsletters into Insightful LinkedIn Posts Using OpenAI\n\n**Purpose:** \n- **Filter Newsletters:** Use the Gmail node to process emails from a specific sender (e.g., `newsletter@example.com`). \n- **Extract Key Items:** Leverage an OpenAI node to identify and summarize the top news items from each newsletter. \n- **Generate Posts:** Automatically create concise, informative, and subtly humorous LinkedIn posts for each news item. \n- **Publish:** Post the refined content to your LinkedIn account with the LinkedIn node.\n\n**Setup Steps:** \n1. **Gmail Node:** Configure and rename to \"Filter Gmail Newsletter\" with the appropriate sender filter. \n2. **OpenAI Nodes:** Ensure API credentials are set; customize prompt texts if desired. \n3. **LinkedIn Node:** Rename to \"Post to LinkedIn\" and verify correct OAuth2 credentials.\n\n**Customization Tips:** \n- Modify the OpenAI prompts to fine-tune the tone and structure of the LinkedIn posts. \n- Add additional formatting (e.g., Function nodes) for post readability if needed.\n\n*This workflow turns your regular newsletters into engaging, ready-to-share LinkedIn insights in just a few simple steps!*\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"pinData": {},
|
||||
"connections": {
|
||||
"Gmail": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Extract News Items",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Split Out": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Create LinkedIn Posts",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Extract News Items": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Split Out",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create LinkedIn Posts": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "LinkedIn",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Gmail",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
1498
workflows/Linkedin/1121_Linkedin_Wait_Create_Webhook.json
Normal file
1498
workflows/Linkedin/1121_Linkedin_Wait_Create_Webhook.json
Normal file
File diff suppressed because it is too large
Load Diff
1115
workflows/Linkedin/1280_Linkedin_Telegram_Automation_Scheduled.json
Normal file
1115
workflows/Linkedin/1280_Linkedin_Telegram_Automation_Scheduled.json
Normal file
File diff suppressed because it is too large
Load Diff
362
workflows/Linkedin/1330_Linkedin_Schedule_Automate_Webhook.json
Normal file
362
workflows/Linkedin/1330_Linkedin_Schedule_Automate_Webhook.json
Normal file
@@ -0,0 +1,362 @@
|
||||
{
|
||||
"id": "mb2MU4xOaT3NrvqN",
|
||||
"meta": {
|
||||
"instanceId": "e7a28cc5c8c9de1976820e0f309940cf456344d9daf5360a4975186f3d8a107f",
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"name": "Automate LinkedIn Posts with AI",
|
||||
"tags": [],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "7e8ec5cc-0216-4897-8a40-c44f9bbe5a9b",
|
||||
"name": "Schedule Trigger",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"position": [
|
||||
580,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"rule": {
|
||||
"interval": [
|
||||
{
|
||||
"triggerAtHour": 15
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.2
|
||||
},
|
||||
{
|
||||
"id": "dbde804d-9c84-4023-9e05-7506cd38a460",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
760,
|
||||
225.26841303066982
|
||||
],
|
||||
"parameters": {
|
||||
"color": 6,
|
||||
"width": 652.1201853643956,
|
||||
"height": 542.0867486896091,
|
||||
"content": "## Fetch the day's post from my Notion database\nA Notion _\"database\"_ is just a table on a Notion Page.\nThis table will have various rows, for which a minimum of three columns are required:\n- Name\n- Status\n- Date\n\nThe Date column is the most important, which will dictate when that row from your Notion table containing the text should be posted.\n\nNOTE: each post is required to have a copy and pasted image!"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "95205e81-e28d-48f9-b3fb-bcf361f7799e",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1520,
|
||||
220
|
||||
],
|
||||
"parameters": {
|
||||
"width": 860.9829802912225,
|
||||
"height": 540.7357881640437,
|
||||
"content": "## Format Post\nSend the post to OpenAI, where it will attempt to ask your assistant how to take the incoming blob of text, and soup it up into something more palpable for LinkedIn engagement."
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "4bc2a550-a8ad-4b25-ac53-01413277e068",
|
||||
"name": "Set post status to \"Done\"",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
2760,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"pageId": {
|
||||
"__rl": true,
|
||||
"mode": "url",
|
||||
"value": "={{ $('query entries from Notion table for today').item.json.url }}"
|
||||
},
|
||||
"options": {},
|
||||
"resource": "databasePage",
|
||||
"operation": "update",
|
||||
"propertiesUi": {
|
||||
"propertyValues": [
|
||||
{
|
||||
"key": "Status|status",
|
||||
"statusValue": "Done"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "nBu4zRArkldtNypO",
|
||||
"name": "Notion account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "31116f06-72ca-4219-9575-8efaefbff24b",
|
||||
"name": "Post on LinkedIn",
|
||||
"type": "n8n-nodes-base.linkedIn",
|
||||
"position": [
|
||||
2500,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"text": "={{ $json.output }}",
|
||||
"person": "_RmSSZc0jB",
|
||||
"additionalFields": {},
|
||||
"shareMediaCategory": "IMAGE"
|
||||
},
|
||||
"credentials": {
|
||||
"linkedInOAuth2Api": {
|
||||
"id": "fozSa4dLS6Jgbn4e",
|
||||
"name": "LinkedIn account 2"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "1bf0540d-a180-457a-a7d7-fb74c8119a52",
|
||||
"name": "Combine text+image",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"position": [
|
||||
2100,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"mode": "combine",
|
||||
"options": {},
|
||||
"combinationMode": "mergeByPosition"
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "f1fdf6f7-a75c-451b-8bce-ea581b4b6197",
|
||||
"name": "Fetch image from post",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1640,
|
||||
620
|
||||
],
|
||||
"parameters": {
|
||||
"url": "={{ $json.url[0] }}",
|
||||
"options": {}
|
||||
},
|
||||
"typeVersion": 4.2
|
||||
},
|
||||
{
|
||||
"id": "00e2bbcb-bac0-4a7e-9892-59f41a26ce9d",
|
||||
"name": "Reformat Post Text",
|
||||
"type": "@n8n/n8n-nodes-langchain.openAi",
|
||||
"position": [
|
||||
1620,
|
||||
440
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=Thank you kindly for your help, please refer to the following LinkedIn post, and output a reformatted version employing thoroughly thought-out paragraph breaks, and lists if present:\n```\n{{ $json.content.join(\" \") }}\n```",
|
||||
"prompt": "define",
|
||||
"options": {},
|
||||
"resource": "assistant",
|
||||
"assistantId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "asst_J1KuOx5wTLrjEHuy5q94jEgh",
|
||||
"cachedResultName": "LinkedIn Post Reviewer"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": "Gxn0kNMCREcTNGcB",
|
||||
"name": "OpenAi account 2"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.3
|
||||
},
|
||||
{
|
||||
"id": "119d7fc7-ed62-4a73-916e-8baf19ab1d86",
|
||||
"name": "get all content from post page",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
1020,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"blockId": {
|
||||
"__rl": true,
|
||||
"mode": "url",
|
||||
"value": "={{ $json.url }}"
|
||||
},
|
||||
"resource": "block",
|
||||
"operation": "getAll",
|
||||
"returnAll": true
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "nBu4zRArkldtNypO",
|
||||
"name": "Notion account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "461d4dd2-a91a-4219-bd20-6dd3398d4274",
|
||||
"name": "Pull together all text blocks + image",
|
||||
"type": "n8n-nodes-base.aggregate",
|
||||
"position": [
|
||||
1240,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"fieldsToAggregate": {
|
||||
"fieldToAggregate": [
|
||||
{
|
||||
"fieldToAggregate": "content"
|
||||
},
|
||||
{
|
||||
"fieldToAggregate": "image.file.url"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "72052eec-c180-4da5-ba15-1a69a7ce6892",
|
||||
"name": "query entries from Notion table for today",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
800,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"filters": {
|
||||
"conditions": [
|
||||
{
|
||||
"key": "Date|date",
|
||||
"date": "={{ $today.format(\"yyyy/mM/dd\") }}",
|
||||
"condition": "equals"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {},
|
||||
"resource": "databasePage",
|
||||
"operation": "getAll",
|
||||
"databaseId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "9aba7f55-a7de-4329-9d5b-6d127937fa49",
|
||||
"cachedResultUrl": "https://www.notion.so/9aba7f55a7de43299d5b6d127937fa49",
|
||||
"cachedResultName": "LinkedIn Posts example"
|
||||
},
|
||||
"filterType": "manual"
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "nBu4zRArkldtNypO",
|
||||
"name": "Notion account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
}
|
||||
],
|
||||
"active": true,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "35f9b7b6-0e60-495f-826d-af7040e7de1f",
|
||||
"connections": {
|
||||
"Post on LinkedIn": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Set post status to \"Done\"",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Schedule Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "query entries from Notion table for today",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Combine text+image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Post on LinkedIn",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Reformat Post Text": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Combine text+image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Fetch image from post": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Combine text+image",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"get all content from post page": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Pull together all text blocks + image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Pull together all text blocks + image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Fetch image from post",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Reformat Post Text",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"query entries from Notion table for today": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "get all content from post page",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
2872
workflows/Linkedin/1342_Linkedin_Telegram_Automate_Webhook.json
Normal file
2872
workflows/Linkedin/1342_Linkedin_Telegram_Automate_Webhook.json
Normal file
File diff suppressed because it is too large
Load Diff
1498
workflows/Linkedin/1491_Linkedin_Wait_Create_Webhook.json
Normal file
1498
workflows/Linkedin/1491_Linkedin_Wait_Create_Webhook.json
Normal file
File diff suppressed because it is too large
Load Diff
1030
workflows/Linkedin/1709_Linkedin_Wordpress_Automation_Webhook.json
Normal file
1030
workflows/Linkedin/1709_Linkedin_Wordpress_Automation_Webhook.json
Normal file
File diff suppressed because it is too large
Load Diff
1115
workflows/Linkedin/1782_Linkedin_Telegram_Automation_Scheduled.json
Normal file
1115
workflows/Linkedin/1782_Linkedin_Telegram_Automation_Scheduled.json
Normal file
File diff suppressed because it is too large
Load Diff
1879
workflows/Linkedin/1807_Linkedin_Googledocs_Automate_Webhook.json
Normal file
1879
workflows/Linkedin/1807_Linkedin_Googledocs_Automate_Webhook.json
Normal file
File diff suppressed because it is too large
Load Diff
362
workflows/Linkedin/1922_Linkedin_Schedule_Automate_Webhook.json
Normal file
362
workflows/Linkedin/1922_Linkedin_Schedule_Automate_Webhook.json
Normal file
@@ -0,0 +1,362 @@
|
||||
{
|
||||
"id": "mb2MU4xOaT3NrvqN",
|
||||
"meta": {
|
||||
"instanceId": "e7a28cc5c8c9de1976820e0f309940cf456344d9daf5360a4975186f3d8a107f",
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"name": "Automate LinkedIn Posts with AI",
|
||||
"tags": [],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "7e8ec5cc-0216-4897-8a40-c44f9bbe5a9b",
|
||||
"name": "Schedule Trigger",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"position": [
|
||||
580,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"rule": {
|
||||
"interval": [
|
||||
{
|
||||
"triggerAtHour": 15
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.2
|
||||
},
|
||||
{
|
||||
"id": "dbde804d-9c84-4023-9e05-7506cd38a460",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
760,
|
||||
225.26841303066982
|
||||
],
|
||||
"parameters": {
|
||||
"color": 6,
|
||||
"width": 652.1201853643956,
|
||||
"height": 542.0867486896091,
|
||||
"content": "## Fetch the day's post from my Notion database\nA Notion _\"database\"_ is just a table on a Notion Page.\nThis table will have various rows, for which a minimum of three columns are required:\n- Name\n- Status\n- Date\n\nThe Date column is the most important, which will dictate when that row from your Notion table containing the text should be posted.\n\nNOTE: each post is required to have a copy and pasted image!"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "95205e81-e28d-48f9-b3fb-bcf361f7799e",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1520,
|
||||
220
|
||||
],
|
||||
"parameters": {
|
||||
"width": 860.9829802912225,
|
||||
"height": 540.7357881640437,
|
||||
"content": "## Format Post\nSend the post to OpenAI, where it will attempt to ask your assistant how to take the incoming blob of text, and soup it up into something more palpable for LinkedIn engagement."
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "4bc2a550-a8ad-4b25-ac53-01413277e068",
|
||||
"name": "Set post status to \"Done\"",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
2760,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"pageId": {
|
||||
"__rl": true,
|
||||
"mode": "url",
|
||||
"value": "={{ $('query entries from Notion table for today').item.json.url }}"
|
||||
},
|
||||
"options": {},
|
||||
"resource": "databasePage",
|
||||
"operation": "update",
|
||||
"propertiesUi": {
|
||||
"propertyValues": [
|
||||
{
|
||||
"key": "Status|status",
|
||||
"statusValue": "Done"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "nBu4zRArkldtNypO",
|
||||
"name": "Notion account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "31116f06-72ca-4219-9575-8efaefbff24b",
|
||||
"name": "Post on LinkedIn",
|
||||
"type": "n8n-nodes-base.linkedIn",
|
||||
"position": [
|
||||
2500,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"text": "={{ $json.output }}",
|
||||
"person": "_RmSSZc0jB",
|
||||
"additionalFields": {},
|
||||
"shareMediaCategory": "IMAGE"
|
||||
},
|
||||
"credentials": {
|
||||
"linkedInOAuth2Api": {
|
||||
"id": "fozSa4dLS6Jgbn4e",
|
||||
"name": "LinkedIn account 2"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "1bf0540d-a180-457a-a7d7-fb74c8119a52",
|
||||
"name": "Combine text+image",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"position": [
|
||||
2100,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"mode": "combine",
|
||||
"options": {},
|
||||
"combinationMode": "mergeByPosition"
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "f1fdf6f7-a75c-451b-8bce-ea581b4b6197",
|
||||
"name": "Fetch image from post",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1640,
|
||||
620
|
||||
],
|
||||
"parameters": {
|
||||
"url": "={{ $json.url[0] }}",
|
||||
"options": {}
|
||||
},
|
||||
"typeVersion": 4.2
|
||||
},
|
||||
{
|
||||
"id": "00e2bbcb-bac0-4a7e-9892-59f41a26ce9d",
|
||||
"name": "Reformat Post Text",
|
||||
"type": "@n8n/n8n-nodes-langchain.openAi",
|
||||
"position": [
|
||||
1620,
|
||||
440
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=Thank you kindly for your help, please refer to the following LinkedIn post, and output a reformatted version employing thoroughly thought-out paragraph breaks, and lists if present:\n```\n{{ $json.content.join(\" \") }}\n```",
|
||||
"prompt": "define",
|
||||
"options": {},
|
||||
"resource": "assistant",
|
||||
"assistantId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "asst_J1KuOx5wTLrjEHuy5q94jEgh",
|
||||
"cachedResultName": "LinkedIn Post Reviewer"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": "Gxn0kNMCREcTNGcB",
|
||||
"name": "OpenAi account 2"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.3
|
||||
},
|
||||
{
|
||||
"id": "119d7fc7-ed62-4a73-916e-8baf19ab1d86",
|
||||
"name": "get all content from post page",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
1020,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"blockId": {
|
||||
"__rl": true,
|
||||
"mode": "url",
|
||||
"value": "={{ $json.url }}"
|
||||
},
|
||||
"resource": "block",
|
||||
"operation": "getAll",
|
||||
"returnAll": true
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "nBu4zRArkldtNypO",
|
||||
"name": "Notion account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "461d4dd2-a91a-4219-bd20-6dd3398d4274",
|
||||
"name": "Pull together all text blocks + image",
|
||||
"type": "n8n-nodes-base.aggregate",
|
||||
"position": [
|
||||
1240,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"fieldsToAggregate": {
|
||||
"fieldToAggregate": [
|
||||
{
|
||||
"fieldToAggregate": "content"
|
||||
},
|
||||
{
|
||||
"fieldToAggregate": "image.file.url"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "72052eec-c180-4da5-ba15-1a69a7ce6892",
|
||||
"name": "query entries from Notion table for today",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
800,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"filters": {
|
||||
"conditions": [
|
||||
{
|
||||
"key": "Date|date",
|
||||
"date": "={{ $today.format(\"yyyy/mM/dd\") }}",
|
||||
"condition": "equals"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {},
|
||||
"resource": "databasePage",
|
||||
"operation": "getAll",
|
||||
"databaseId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "9aba7f55-a7de-4329-9d5b-6d127937fa49",
|
||||
"cachedResultUrl": "https://www.notion.so/9aba7f55a7de43299d5b6d127937fa49",
|
||||
"cachedResultName": "LinkedIn Posts example"
|
||||
},
|
||||
"filterType": "manual"
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "nBu4zRArkldtNypO",
|
||||
"name": "Notion account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
}
|
||||
],
|
||||
"active": true,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "35f9b7b6-0e60-495f-826d-af7040e7de1f",
|
||||
"connections": {
|
||||
"Post on LinkedIn": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Set post status to \"Done\"",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Schedule Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "query entries from Notion table for today",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Combine text+image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Post on LinkedIn",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Reformat Post Text": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Combine text+image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Fetch image from post": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Combine text+image",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"get all content from post page": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Pull together all text blocks + image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Pull together all text blocks + image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Fetch image from post",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Reformat Post Text",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"query entries from Notion table for today": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "get all content from post page",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
381
workflows/Linkedin/1939_Linkedin_Code_Automation_Webhook.json
Normal file
381
workflows/Linkedin/1939_Linkedin_Code_Automation_Webhook.json
Normal file
@@ -0,0 +1,381 @@
|
||||
{
|
||||
"id": "0pVPSW4PzJZLLqSf",
|
||||
"meta": {
|
||||
"instanceId": "8e47d02981c11ba904b56e6bd77877c35ef5c9aa1cdc4076bcb72bbb235efa38"
|
||||
},
|
||||
"name": "Notion to Linkedin",
|
||||
"tags": [],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "d922cf0c-f1c2-40ff-927c-d0d3e2fb7f27",
|
||||
"name": "Merge",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"position": [
|
||||
2140,
|
||||
460
|
||||
],
|
||||
"parameters": {
|
||||
"mode": "combine",
|
||||
"options": {},
|
||||
"combinationMode": "mergeByPosition"
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "8c5f68d8-f11d-4b37-b0d8-3abd1b681b56",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
780,
|
||||
440
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"height": 141.4092845296238,
|
||||
"content": "## Start the flow every day at the same time"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "d10de4f3-6e90-474f-bd68-25aae2037b7b",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1240,
|
||||
312.5835468325357
|
||||
],
|
||||
"parameters": {
|
||||
"color": 6,
|
||||
"width": 367.12018536439575,
|
||||
"height": 382.294335406698,
|
||||
"content": "## Fetch the day's post from my Notion database"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "a63bcc85-ec8b-424f-a53c-e4c07db3c7c8",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1642.6949426092506,
|
||||
313.81962236044654
|
||||
],
|
||||
"parameters": {
|
||||
"color": 6,
|
||||
"width": 627.4768047417825,
|
||||
"height": 380.3367219655605,
|
||||
"content": "## Process and format the post"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "d7c0f13c-ebbe-4000-bd8f-d1180d65d02a",
|
||||
"name": "Schedule Trigger",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"position": [
|
||||
1060,
|
||||
460
|
||||
],
|
||||
"parameters": {
|
||||
"rule": {
|
||||
"interval": [
|
||||
{
|
||||
"triggerAtHour": 15
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.2
|
||||
},
|
||||
{
|
||||
"id": "7bebcb2d-1642-48ce-a511-bb0f561ca5cf",
|
||||
"name": "Filter the table for the day's post",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
1280,
|
||||
460
|
||||
],
|
||||
"parameters": {
|
||||
"filters": {
|
||||
"conditions": [
|
||||
{
|
||||
"key": "Date|date",
|
||||
"date": "={{ $today.format(\"yyyy/mM/dd\") }}",
|
||||
"condition": "equals"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {},
|
||||
"resource": "databasePage",
|
||||
"operation": "getAll",
|
||||
"databaseId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "f09dc21b-1070-4d5a-bf7f-a9ab3dbb69fb",
|
||||
"cachedResultUrl": "https://www.notion.so/f09dc21b10704d5abf7fa9ab3dbb69fb",
|
||||
"cachedResultName": "Postagens"
|
||||
},
|
||||
"filterType": "manual"
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "faERNMuBrkAfVaJR",
|
||||
"name": "Notion Weck"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "ee61bc59-164b-45b4-8b49-57cdba7d298b",
|
||||
"name": "Fetch the content on the page",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
1480,
|
||||
460
|
||||
],
|
||||
"parameters": {
|
||||
"blockId": {
|
||||
"__rl": true,
|
||||
"mode": "url",
|
||||
"value": "={{ $json.url }}"
|
||||
},
|
||||
"resource": "block",
|
||||
"operation": "getAll",
|
||||
"returnAll": true
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "faERNMuBrkAfVaJR",
|
||||
"name": "Notion Weck"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "52d1ffef-11e8-4635-bbb8-05e915034379",
|
||||
"name": "Aggregate the Notion blocks",
|
||||
"type": "n8n-nodes-base.aggregate",
|
||||
"position": [
|
||||
1680,
|
||||
460
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"fieldsToAggregate": {
|
||||
"fieldToAggregate": [
|
||||
{
|
||||
"fieldToAggregate": "content"
|
||||
},
|
||||
{
|
||||
"fieldToAggregate": "image.file.url"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "8617c530-382b-402b-9c0b-aeb4df2bb920",
|
||||
"name": "Format the post",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"position": [
|
||||
1900,
|
||||
360
|
||||
],
|
||||
"parameters": {
|
||||
"jsCode": "const notionData = items[0].json.content;\n\nlet formattedText = notionData[0] \n\nfor (let i = 1; i < notionData.length; i++) {\n if (notionData[i].startsWith('-')) {\n formattedText += '\\n\\n' + notionData[i];\n } else {\n formattedText += '\\n' + notionData[i];\n }\n}\n\nreturn [{ formattedText: formattedText }];\n"
|
||||
},
|
||||
"typeVersion": 2
|
||||
},
|
||||
{
|
||||
"id": "0f226cfe-eb31-469a-8e7c-a21192adbd4c",
|
||||
"name": "Download image",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1900,
|
||||
560
|
||||
],
|
||||
"parameters": {
|
||||
"url": "={{ $json.url[0] }}",
|
||||
"options": {}
|
||||
},
|
||||
"typeVersion": 4.2
|
||||
},
|
||||
{
|
||||
"id": "81a1e39c-c7ea-4635-84fc-a8ae05cfd8f3",
|
||||
"name": "Publish on LinkedIn",
|
||||
"type": "n8n-nodes-base.linkedIn",
|
||||
"position": [
|
||||
2360,
|
||||
460
|
||||
],
|
||||
"parameters": {
|
||||
"text": "={{ $json.formattedText }}",
|
||||
"person": "CcS-_lLyzG",
|
||||
"additionalFields": {},
|
||||
"shareMediaCategory": "IMAGE"
|
||||
},
|
||||
"credentials": {
|
||||
"linkedInOAuth2Api": {
|
||||
"id": "HZbihVPNwXzWRzgU",
|
||||
"name": "LinkedIn account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "61b92eb8-1bf8-4e57-9e07-1a39e457ecfb",
|
||||
"name": "Update post status in notion database",
|
||||
"type": "n8n-nodes-base.notion",
|
||||
"position": [
|
||||
2620,
|
||||
460
|
||||
],
|
||||
"parameters": {
|
||||
"pageId": {
|
||||
"__rl": true,
|
||||
"mode": "url",
|
||||
"value": "={{ $('Filter the table for the day\\'s post').item.json.url }}"
|
||||
},
|
||||
"options": {},
|
||||
"resource": "databasePage",
|
||||
"operation": "update",
|
||||
"propertiesUi": {
|
||||
"propertyValues": [
|
||||
{
|
||||
"key": "Status|select",
|
||||
"selectValue": "Published"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"notionApi": {
|
||||
"id": "faERNMuBrkAfVaJR",
|
||||
"name": "Notion Weck"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "397f3772-bb2b-4e58-99f8-2b62cc514b7a",
|
||||
"name": "Sticky Note3",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
760,
|
||||
120
|
||||
],
|
||||
"parameters": {
|
||||
"color": 3,
|
||||
"width": 567.6073693795047,
|
||||
"height": 137.6834217043934,
|
||||
"content": "## 1. Setup\nSet up your Notion and LinkedIn credentials.\nAttention to the LinkedIn credential: to post on your personal or company profile, you need to have a company page assigned to your profile. After that, you can choose where you want to post."
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"active": false,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"callerPolicy": "workflowsFromSameOwner",
|
||||
"executionOrder": "v1",
|
||||
"executionTimeout": 30,
|
||||
"saveManualExecutions": true
|
||||
},
|
||||
"versionId": "d6f51bb9-7320-4984-a009-b0f49073349a",
|
||||
"connections": {
|
||||
"Merge": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Publish on LinkedIn",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Download image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Format the post": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Schedule Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Filter the table for the day's post",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Publish on LinkedIn": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Update post status in notion database",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Aggregate the Notion blocks": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Format the post",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Download image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Fetch the content on the page": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Aggregate the Notion blocks",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Filter the table for the day's post": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Fetch the content on the page",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
678
workflows/Linkedin/1951_Linkedin_Webhook_Automate_Webhook.json
Normal file
678
workflows/Linkedin/1951_Linkedin_Webhook_Automate_Webhook.json
Normal file
@@ -0,0 +1,678 @@
|
||||
{
|
||||
"id": "pDLtBJkNSXXWSvB0",
|
||||
"meta": {
|
||||
"instanceId": "bc5ae5fe2056690823360ec27da902117e87ff22a0f9c9bb0448416fba4527f8"
|
||||
},
|
||||
"name": "Training Feedback Automation",
|
||||
"tags": [],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "6cdd7521-a16c-4e1a-9b18-c232660522c8",
|
||||
"name": "Airtable Trigger",
|
||||
"type": "n8n-nodes-base.airtableTrigger",
|
||||
"position": [
|
||||
160,
|
||||
680
|
||||
],
|
||||
"parameters": {
|
||||
"baseId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "app216gZPY8ax1Qgd"
|
||||
},
|
||||
"tableId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "tblaKkOK6RZ4cgXGI"
|
||||
},
|
||||
"pollTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyMinute"
|
||||
}
|
||||
]
|
||||
},
|
||||
"triggerField": "Created",
|
||||
"authentication": "airtableOAuth2Api",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"credentials": {
|
||||
"airtableOAuth2Api": {
|
||||
"id": "qYu4nditWNzeLITf",
|
||||
"name": "Airtable account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "faeb9069-2f25-419c-8192-5ed69a49d192",
|
||||
"name": "Webhook - Action Task Poor",
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"position": [
|
||||
180,
|
||||
140
|
||||
],
|
||||
"webhookId": "4ff46f8a-e1d0-4ad9-8dae-99de53838aaf",
|
||||
"parameters": {
|
||||
"path": "4ff46f8a-e1d0-4ad9-8dae-99de53838aaf",
|
||||
"options": {},
|
||||
"httpMethod": "POST"
|
||||
},
|
||||
"typeVersion": 1.1
|
||||
},
|
||||
{
|
||||
"id": "25f65aa6-9d0a-4a32-b2b9-49c2d6fb94cf",
|
||||
"name": "Switch1",
|
||||
"type": "n8n-nodes-base.switch",
|
||||
"position": [
|
||||
500,
|
||||
140
|
||||
],
|
||||
"parameters": {
|
||||
"rules": {
|
||||
"values": [
|
||||
{
|
||||
"outputKey": "Validated",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"operator": {
|
||||
"type": "string",
|
||||
"operation": "equals"
|
||||
},
|
||||
"leftValue": "={{ $('Webhook - Action Task Poor').item.json.body.actionName }}",
|
||||
"rightValue": "Validate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
},
|
||||
{
|
||||
"outputKey": "Other",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "94250338-cb2a-421c-813b-9d8d5d1e02ed",
|
||||
"operator": {
|
||||
"type": "string",
|
||||
"operation": "notEquals"
|
||||
},
|
||||
"leftValue": "={{ $('Webhook - Action Task Poor').item.json.body.actionName }}",
|
||||
"rightValue": "Validate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"typeVersion": 3
|
||||
},
|
||||
{
|
||||
"id": "50909553-8bea-471f-9030-f3d8898abce5",
|
||||
"name": "LinkedIn",
|
||||
"type": "n8n-nodes-base.linkedIn",
|
||||
"position": [
|
||||
1020,
|
||||
680
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=🌟 Feedback on Our Recent Training Session! 🌟\n\nWe are excited to share the positive feedback from our participants regarding our latest training session. Here are some highlights:\n\nFacilitator: {{ $json[\"fields\"][\"Facilitator name\"][0][\"name\"] }}\nCourse: {{ $json[\"fields\"][\"Course name\"][0] }}\n\nFeedback Details:\n\nContent: {{ $json[\"fields\"][\"Content\"] }}/5\nRelevance: {{ $json[\"fields\"][\"Relevant\"] }}/5\nOverall Satisfaction: {{ $json[\"fields\"][\"Satisfaction\"] }}/5\nRecommendation: {{ $json[\"fields\"][\"Recommend\"] }}/5\n\nA big thank you to {{ $json[\"fields\"][\"Facilitator name\"][0][\"name\"] }} for his excellent work as a facilitator and to all our participants for their valuable feedback. We are committed to continuously improving our training sessions to meet your expectations and needs.\n\n#Training #Feedback #ContinuousLearning #CustomerSatisfaction",
|
||||
"postAs": "organization",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"credentials": {
|
||||
"linkedInOAuth2Api": {
|
||||
"id": "4sXxHri0PRgxO48n",
|
||||
"name": "LinkedIn account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "b441873f-187c-4777-ab27-d7adf8450d8b",
|
||||
"name": "Poor - Send Email",
|
||||
"type": "n8n-nodes-base.emailSend",
|
||||
"position": [
|
||||
1580,
|
||||
320
|
||||
],
|
||||
"parameters": {
|
||||
"html": "=Dear [Recipient Name],\n\nWe would like to inform you that a new task has been created to address the recent training feedback we received. Below are the details of the task:\n\nTask Title: {{ $json[\"title\"] }}\n\nTask Description:\n{{ $json[\"description\"] }}\n\nTask Status: {{ $json[\"statusName\"] }}\n\nInstructions:\n{{ $json[\"instruction\"] }}\n\nActions Required:\n\n- {{ $json[\"task\"][\"actions\"][0][\"name\"] }}\nDescription:\n{{ $json[\"task\"][\"actions\"][0][\"description\"] }}\n\n- {{ $json[\"task\"][\"actions\"][1][\"name\"] }}\nDescription:\n{{ $json[\"task\"][\"actions\"][1][\"description\"] }}\n\n\nPlease address this task at your earliest convenience to ensure we promptly respond to the feedback and improve our training program accordingly.\n\nIf you have any questions or require further information, please do not hesitate to contact us.\n\nLink : https://demo.usertask.io/app/task/instance/form/{{ $json[\"code\"] }}\n\nBest regards,",
|
||||
"options": {},
|
||||
"subject": "New Task Created - Urgent: Training Feedback Requires Immediate Attention",
|
||||
"toEmail": "contact@usertask.io",
|
||||
"fromEmail": "contact@usertask.io"
|
||||
},
|
||||
"credentials": {
|
||||
"smtp": {
|
||||
"id": "CnHY3ZPBDwo5EnSH",
|
||||
"name": "SMTP account 2"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "0e9c5ee5-416b-4cb3-9797-417003bc74cd",
|
||||
"name": "Call Usertask - Create task",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1020,
|
||||
60
|
||||
],
|
||||
"parameters": {
|
||||
"url": "http://demo.usertask.io/api/task/create-instance",
|
||||
"method": "POST",
|
||||
"options": {},
|
||||
"jsonBody": "{\n \"taskCode\": \"tltJf90mJVEnpUZvuQBi\",\n \"callbackUrl\": \"https://n8n-hzd1.onrender.com/webhook/4ff46f8a-e1d0-4ad9-8dae-99de53838aaf\",\n \"description\":\"We have received a training feedback rating of 1 star. It is crucial to address this issue promptly.We recommend scheduling a meeting to discuss the feedback in detail and develop an action plan to improve the training program.\",\n \"instruction\":\"\",\n \"title\":\"Urgent: Training Feedback Requires Immediate Attention\"\n}",
|
||||
"sendBody": true,
|
||||
"sendHeaders": true,
|
||||
"specifyBody": "json",
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "X-API-KEY",
|
||||
"value": "22d1ce6fa3ae7039fe42d3ddf1ba55d8f5ee9e2c2e6b04788144fca080d1e170"
|
||||
},
|
||||
{
|
||||
"name": "X-CLIENT-ID",
|
||||
"value": "f3604b6d2d33af2006ecb0d4910871fa"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.1
|
||||
},
|
||||
{
|
||||
"id": "27ab7bd3-e3a8-4d87-b28f-767bff9ec0e1",
|
||||
"name": "Call Usertask - Create Task - Pair and good",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1020,
|
||||
420
|
||||
],
|
||||
"parameters": {
|
||||
"url": "http://demo.usertask.io/api/task/create-instance",
|
||||
"method": "POST",
|
||||
"options": {
|
||||
"response": {
|
||||
"response": {
|
||||
"fullResponse": true,
|
||||
"responseFormat": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"jsonBody": "{\n \"taskCode\": \"tltJf90mJVEnpUZvuQBi\",\n \"callbackUrl\": \"https://n8n-hzd1.onrender.com/webhook/4ff46f8a-e1d0-4ad9-8dae-99de53838aaf\",\n \"description\":\"We have received a training feedback rating of 1 star. It is crucial to address this issue promptly.We recommend scheduling a meeting to discuss the feedback in detail and develop an action plan to improve the training program.\",\n \"instruction\":\"\",\n \"title\":\"Urgent: Training Feedback Requires Immediate Attention\"\n}",
|
||||
"sendBody": true,
|
||||
"sendHeaders": true,
|
||||
"specifyBody": "json",
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "X-API-KEY",
|
||||
"value": "22d1ce6fa3ae7039fe42d3ddf1ba55d8f5ee9e2c2e6b04788144fca080d1e170"
|
||||
},
|
||||
{
|
||||
"name": "X-CLIENT-ID",
|
||||
"value": "f3604b6d2d33af2006ecb0d4910871fa"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.1
|
||||
},
|
||||
{
|
||||
"id": "ec55cbd8-e863-4dea-b2fc-1834f9d27f13",
|
||||
"name": "Send Email after WebHook",
|
||||
"type": "n8n-nodes-base.emailSend",
|
||||
"position": [
|
||||
760,
|
||||
-180
|
||||
],
|
||||
"parameters": {
|
||||
"html": "=Dear Trainer's and HR Manager's,\n\nWe have received a training feedback rating of 1 star. It is crucial to address this issue promptly.\n\nResponse : {{ $json[\"body\"][\"results\"][0][\"actionName\"] }}\n\nWe recommend scheduling a meeting to discuss the feedback in detail and develop an action plan to improve the training program.\n\nBest regards,",
|
||||
"options": {},
|
||||
"subject": "Urgent: Training Feedback Requires Immediate Attention",
|
||||
"toEmail": "contact@usertask.io",
|
||||
"fromEmail": "contact@usertask.io"
|
||||
},
|
||||
"credentials": {
|
||||
"smtp": {
|
||||
"id": "CnHY3ZPBDwo5EnSH",
|
||||
"name": "SMTP account 2"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "bd83083f-e1df-41e8-b7b3-9065fa610ee5",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
730.6369999001746,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 714.7562585267917,
|
||||
"height": 593.70786516854,
|
||||
"content": "## UserTask\n**Link** https://demo.usertask.io \n\n**Login**\ncontact@usertask.io\n**Password**\nQSDpo2x10?2020"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "27e89776-7258-44f5-ac8c-5926f38762b7",
|
||||
"name": "Call Usertask - Detail Task",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1300,
|
||||
320
|
||||
],
|
||||
"parameters": {
|
||||
"url": "=https://demo.usertask.io/api/task/instance/info/{{ $json[\"body\"][\"code\"] }}",
|
||||
"options": {
|
||||
"redirect": {
|
||||
"redirect": {}
|
||||
}
|
||||
},
|
||||
"sendHeaders": true,
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "X-API-KEY",
|
||||
"value": "22d1ce6fa3ae7039fe42d3ddf1ba55d8f5ee9e2c2e6b04788144fca080d1e170"
|
||||
},
|
||||
{
|
||||
"name": "X-CLIENT-ID",
|
||||
"value": "f3604b6d2d33af2006ecb0d4910871fa"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.1
|
||||
},
|
||||
{
|
||||
"id": "5576aba7-9051-465f-a095-47a52e35b151",
|
||||
"name": "Send Email - Information for marcketing",
|
||||
"type": "n8n-nodes-base.emailSend",
|
||||
"position": [
|
||||
1280,
|
||||
680
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"subject": "Task Created",
|
||||
"toEmail": "contact@usertask.io",
|
||||
"fromEmail": "contact@usertask.io"
|
||||
},
|
||||
"credentials": {
|
||||
"smtp": {
|
||||
"id": "CnHY3ZPBDwo5EnSH",
|
||||
"name": "SMTP account 2"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "074b8d06-f78a-4209-9172-d8b1a57c97fb",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-20,
|
||||
540
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 373.05722240092274,
|
||||
"height": 320.67415730337063,
|
||||
"content": "## AirTable \n**For exemple, use** Employee training management **template**. [Guide](https://www.airtable.com/templates/employee-training-management/expnOaGvlQDwuWKVk)\n\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "b742a10e-71b2-4022-8c16-53b826512bbe",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-20,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"color": 7,
|
||||
"width": 374.83146067415737,
|
||||
"height": 303.820224719101,
|
||||
"content": "## WebHook \nThe webhook allows retrieving the result of a Usertask. Tasks can be completed either via the API or through the Usertask form."
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "98cc7ca2-359a-4329-8910-14b6607daa87",
|
||||
"name": "Sticky Note3",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-11.470878578479415,
|
||||
-460
|
||||
],
|
||||
"parameters": {
|
||||
"width": 709.4232592367164,
|
||||
"height": 434.93437649014015,
|
||||
"content": "## Training Feedback Automation with Usertask and Airtable\nThis n8n workflow is designed to automate the management of training feedback by integrating Airtable, Usertask, and various notification actions. \n\nHere is a detailed description of each step in the workflow:\n\n- **Airtable Trigger**: Captures new or updated feedback entries from Airtable.\n- **Switch Node**: Evaluates the feedback rating and directs the workflow based on the rating.\n- **Webhook**: Retrieves the result of a Usertask task.\n- **Task Creation**:\n - Creates tasks in Usertask for poor feedback.\n - Creates follow-up tasks for fair to good feedback.\n - Documents positive feedback and posts recognition on LinkedIn for very good to excellent ratings.\n- **Notifications**:\n - Sends email notifications to responsible parties for urgent actions.\n - Sends congratulatory emails and posts on LinkedIn for positive feedback.\n\nVideo : [https://youtu.be/U14MhTcpqeY](https://youtu.be/U14MhTcpqeY)\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "f12d0516-43a2-4517-a633-60d809cd3413",
|
||||
"name": "Switch",
|
||||
"type": "n8n-nodes-base.switch",
|
||||
"position": [
|
||||
460,
|
||||
420
|
||||
],
|
||||
"parameters": {
|
||||
"rules": {
|
||||
"values": [
|
||||
{
|
||||
"outputKey": "Dissatisfaction",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "equals"
|
||||
},
|
||||
"leftValue": "={{ $json.fields.Content }}",
|
||||
"rightValue": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
},
|
||||
{
|
||||
"outputKey": "Fair",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "2d1c10b8-0418-4dcf-aa53-41f0b75ccc08",
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "equals"
|
||||
},
|
||||
"leftValue": "={{ $json.fields.Content }}",
|
||||
"rightValue": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
},
|
||||
{
|
||||
"outputKey": "Good",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "d2be2a3f-32ae-4578-a9aa-4a8f2b19f08f",
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "equals"
|
||||
},
|
||||
"leftValue": "={{ $json.fields.Content }}",
|
||||
"rightValue": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
},
|
||||
{
|
||||
"outputKey": "Very Good",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "4dd5b796-9180-47d8-9ebd-4164a5dfa0d7",
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "equals"
|
||||
},
|
||||
"leftValue": "={{ $json.fields.Content }}",
|
||||
"rightValue": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
},
|
||||
{
|
||||
"outputKey": "Excellent",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "312f4f14-a341-4dea-881c-3c85a9cea13c",
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "equals"
|
||||
},
|
||||
"leftValue": "={{ $json.fields.Content }}",
|
||||
"rightValue": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"typeVersion": 3
|
||||
},
|
||||
{
|
||||
"id": "6eb8d928-c331-49d5-830a-9442a367254b",
|
||||
"name": "Call Usertask - Create Task - Dissatisfaction",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1020,
|
||||
240
|
||||
],
|
||||
"parameters": {
|
||||
"url": "http://demo.usertask.io/api/task/create-instance",
|
||||
"method": "POST",
|
||||
"options": {
|
||||
"response": {
|
||||
"response": {
|
||||
"fullResponse": true,
|
||||
"responseFormat": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"jsonBody": "{\n \"taskCode\": \"tltJf90mJVEnpUZvuQBi\",\n \"callbackUrl\": \"https://n8n-hzd1.onrender.com/webhook/4ff46f8a-e1d0-4ad9-8dae-99de53838aaf\",\n \"description\":\"We have received a training feedback rating of 1 star. It is crucial to address this issue promptly.We recommend scheduling a meeting to discuss the feedback in detail and develop an action plan to improve the training program.\",\n \"instruction\":\"\",\n \"title\":\"Urgent: Training Feedback Requires Immediate Attention\"\n}",
|
||||
"sendBody": true,
|
||||
"sendHeaders": true,
|
||||
"specifyBody": "json",
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "X-API-KEY",
|
||||
"value": "22d1ce6fa3ae7039fe42d3ddf1ba55d8f5ee9e2c2e6b04788144fca080d1e170"
|
||||
},
|
||||
{
|
||||
"name": "X-CLIENT-ID",
|
||||
"value": "f3604b6d2d33af2006ecb0d4910871fa"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.1
|
||||
}
|
||||
],
|
||||
"active": true,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "955cc31e-3e7b-49b1-85c5-8f4604cbcc9a",
|
||||
"connections": {
|
||||
"Switch": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Call Usertask - Create Task - Dissatisfaction",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Call Usertask - Create Task - Pair and good",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Call Usertask - Create Task - Pair and good",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "LinkedIn",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "LinkedIn",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Switch1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send Email after WebHook",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Call Usertask - Create task",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"LinkedIn": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send Email - Information for marcketing",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Airtable Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Switch",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Webhook - Action Task Poor": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Switch1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Call Usertask - Detail Task": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Poor - Send Email",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Call Usertask - Create Task - Pair and good": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Call Usertask - Detail Task",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Call Usertask - Create Task - Dissatisfaction": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Call Usertask - Detail Task",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
564
workflows/Linkedin/2024_Linkedin_Telegram_Automate_Webhook.json
Normal file
564
workflows/Linkedin/2024_Linkedin_Telegram_Automate_Webhook.json
Normal file
@@ -0,0 +1,564 @@
|
||||
{
|
||||
"id": "yF1HNe2ucaE81fNl",
|
||||
"meta": {
|
||||
"instanceId": "52be616fc3b9990a95b5266574f084bd2127609e79ce7dbfc33a1224bcc79eee",
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"name": "Linkedin Automation",
|
||||
"tags": [],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "fa012332-1c95-4460-b1d1-9d54441c9179",
|
||||
"name": "Get List of records used",
|
||||
"type": "n8n-nodes-base.airtable",
|
||||
"position": [
|
||||
-40,
|
||||
-80
|
||||
],
|
||||
"parameters": {
|
||||
"base": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "appt6kHkRkLlUh033",
|
||||
"cachedResultUrl": "https://airtable.com/appt6kHkRkLlUh033",
|
||||
"cachedResultName": "Linkdin"
|
||||
},
|
||||
"table": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "tbliloartO26TD5TG",
|
||||
"cachedResultUrl": "https://airtable.com/appt6kHkRkLlUh033/tbliloartO26TD5TG",
|
||||
"cachedResultName": "Used Articles"
|
||||
},
|
||||
"options": {},
|
||||
"operation": "search"
|
||||
},
|
||||
"credentials": {
|
||||
"airtableTokenApi": {
|
||||
"id": "9bPeAvakB1tkDxsW",
|
||||
"name": "Airtable Personal Access Token account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1,
|
||||
"alwaysOutputData": true
|
||||
},
|
||||
{
|
||||
"id": "2d99b3b7-2fcd-46bf-8859-f41e94cb5ae1",
|
||||
"name": "Update the used node",
|
||||
"type": "n8n-nodes-base.airtable",
|
||||
"position": [
|
||||
200,
|
||||
600
|
||||
],
|
||||
"parameters": {
|
||||
"base": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "appt6kHkRkLlUh033",
|
||||
"cachedResultUrl": "https://airtable.com/appt6kHkRkLlUh033",
|
||||
"cachedResultName": "Linkdin"
|
||||
},
|
||||
"table": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "tbliloartO26TD5TG",
|
||||
"cachedResultUrl": "https://airtable.com/appt6kHkRkLlUh033/tbliloartO26TD5TG",
|
||||
"cachedResultName": "Used Articles"
|
||||
},
|
||||
"columns": {
|
||||
"value": {
|
||||
"id": "={{ $('download image for post').item.json.id }}",
|
||||
"value": "={{ $('download image for post').item.json.id }}"
|
||||
},
|
||||
"schema": [
|
||||
{
|
||||
"id": "id",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "id",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "value",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": false,
|
||||
"required": false,
|
||||
"displayName": "value",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
}
|
||||
],
|
||||
"mappingMode": "defineBelow",
|
||||
"matchingColumns": [],
|
||||
"attemptToConvertTypes": false,
|
||||
"convertFieldsToString": false
|
||||
},
|
||||
"options": {},
|
||||
"operation": "create"
|
||||
},
|
||||
"credentials": {
|
||||
"airtableTokenApi": {
|
||||
"id": "9bPeAvakB1tkDxsW",
|
||||
"name": "Airtable Personal Access Token account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "72abb016-8f58-4c4c-b492-9ba7a576441a",
|
||||
"name": "map used articls ids",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"position": [
|
||||
200,
|
||||
-80
|
||||
],
|
||||
"parameters": {
|
||||
"jsCode": "let values = $input.all().map(item => item.json.value);\n\nreturn [\n {\n json: {\n values: values\n }\n }\n ];"
|
||||
},
|
||||
"typeVersion": 2
|
||||
},
|
||||
{
|
||||
"id": "c49d5db2-d1c9-4444-8fa8-f39197e2a472",
|
||||
"name": "filter only unused Ids",
|
||||
"type": "n8n-nodes-base.filter",
|
||||
"position": [
|
||||
640,
|
||||
-80
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"conditions": {
|
||||
"options": {
|
||||
"version": 2,
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "934a4ab8-bc6b-4d1b-b050-c1f19a03cc9f",
|
||||
"operator": {
|
||||
"type": "array",
|
||||
"operation": "notContains",
|
||||
"rightType": "any"
|
||||
},
|
||||
"leftValue": "={{ $('map used articls ids').item.json.values }}",
|
||||
"rightValue": "={{ $json.articles }}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "0b390b7d-8729-48e5-aadc-5aa9da8c7139",
|
||||
"name": "get random tags",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"position": [
|
||||
-280,
|
||||
-80
|
||||
],
|
||||
"parameters": {
|
||||
"jsCode": "const devToTags = [\n \"android\",\n \"androiddev\",\n \"kotlin\",\n \"jetpack-compose\",\n \"android-appdevelopment\",\n \"app-development\"\n];\n\n\nfunction getRandomValuesAsObjects(list, count) {\n const randomValues = [];\n for (let i = 0; i < count; i++) {\n const randomIndex = Math.floor(Math.random() * list.length);\n randomValues.push({ json: { value: list[randomIndex] } });\n }\n return randomValues;\n}\n\nreturn getRandomValuesAsObjects(devToTags, 1);\n"
|
||||
},
|
||||
"typeVersion": 2
|
||||
},
|
||||
{
|
||||
"id": "6b16bc15-8d82-4aa0-9ee2-5a10f070d106",
|
||||
"name": "sent the status",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"position": [
|
||||
520,
|
||||
600
|
||||
],
|
||||
"webhookId": "9373d46a-d5ad-40f4-93c0-7a44ff5fea37",
|
||||
"parameters": {
|
||||
"text": "=Linkdin Post Sent Successfully \n\n{{ $('If').item.json.title }}\n\nDb Status Id {{ $json.id }}",
|
||||
"chatId": "1199262493",
|
||||
"replyMarkup": "inlineKeyboard",
|
||||
"additionalFields": {
|
||||
"appendAttribution": false
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "R8nJZScHqw02haLU",
|
||||
"name": "Mr.4rogrammer bot"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.2
|
||||
},
|
||||
{
|
||||
"id": "99c5ed96-4220-46b0-9a2a-628963393894",
|
||||
"name": "Morning 9 Clock",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"position": [
|
||||
-560,
|
||||
-80
|
||||
],
|
||||
"parameters": {
|
||||
"rule": {
|
||||
"interval": [
|
||||
{
|
||||
"field": "cronExpression",
|
||||
"expression": "0 9,19 * * *"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 1.2
|
||||
},
|
||||
{
|
||||
"id": "c81c749a-e21b-4ba6-beae-2b8a21523c06",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-560,
|
||||
-600
|
||||
],
|
||||
"parameters": {
|
||||
"width": 920,
|
||||
"height": 400,
|
||||
"content": "# 📢 Auto-Post Medium Articles to LinkedIn with Telegram Alerts\n\nThis n8n workflow automates your LinkedIn posting by fetching articles from [medium.com](medium.com) twice a day (9:00 AM and 7:00 PM), ensuring consistent content sharing without manual effort.\n\nTo prevent duplicates, it stores posted article IDs in Airtable. It also sends a Telegram message after every successful post, so you stay updated.\n\n---\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "61171a34-53a3-448a-886c-b0cc83b75b33",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
400,
|
||||
-520
|
||||
],
|
||||
"parameters": {
|
||||
"width": 580,
|
||||
"height": 240,
|
||||
"content": "\n## ✅ Features\n\n- 🕒 Runs twice daily at 9:00 AM and 7:00 PM (customizable)\n- 📰 Fetches latest medium.com articles by tag\n- 📂 Uses Airtable to avoid reposting the same article\n- 📢 Posts to your LinkedIn profile or company page\n- 📬 Sends a Telegram notification after successful posting\n- ⚙️ Fully customizable schedule, tags, and post format"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "c6712f11-2852-49af-8fb9-235da0e4685c",
|
||||
"name": "fetch article ids from tag",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
420,
|
||||
-80
|
||||
],
|
||||
"parameters": {
|
||||
"url": "=https://medium2.p.rapidapi.com/search/articles?query={{ $('get random tags').first().json.value }}",
|
||||
"options": {},
|
||||
"sendHeaders": true,
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-rapidapi-host",
|
||||
"value": "medium2.p.rapidapi.com"
|
||||
},
|
||||
{
|
||||
"name": "x-rapidapi-key",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.2
|
||||
},
|
||||
{
|
||||
"id": "6382e23e-e214-48b4-8d93-06fc2c74e7cc",
|
||||
"name": "Fetch Medium post using Article Id",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
880,
|
||||
-80
|
||||
],
|
||||
"parameters": {
|
||||
"url": "=https://medium2.p.rapidapi.com/article/{{ $json.articles.randomItem() }}",
|
||||
"options": {},
|
||||
"sendHeaders": true,
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-rapidapi-host",
|
||||
"value": "medium2.p.rapidapi.com"
|
||||
},
|
||||
{
|
||||
"name": "x-rapidapi-key",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.2
|
||||
},
|
||||
{
|
||||
"id": "eb92a4b3-d468-4d0f-8488-e6edb122b1db",
|
||||
"name": "If",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"position": [
|
||||
-200,
|
||||
260
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"conditions": {
|
||||
"options": {
|
||||
"version": 2,
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "69a60b53-f719-44e8-9ca4-97b99205a253",
|
||||
"operator": {
|
||||
"type": "string",
|
||||
"operation": "notEmpty",
|
||||
"singleValue": true
|
||||
},
|
||||
"leftValue": "={{ $json.image_url }}",
|
||||
"rightValue": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "792507fc-f956-4bc7-9c56-80f1078643a1",
|
||||
"name": "make Linkedin post",
|
||||
"type": "n8n-nodes-base.linkedIn",
|
||||
"position": [
|
||||
740,
|
||||
240
|
||||
],
|
||||
"parameters": {
|
||||
"text": "={{ $('Fetch Medium post content').item.json.content.substring(0, 600) }} ...\n\nArticle link : https://freedium.cfd/{{ $('If').item.json.url }}\n\n#AndroidDevelopment #MobileAppDevelopment #AppDevelopment #Programming #SoftwareEngineering #TechCommunity #DeveloperLife #Kotlin #LinkedInDevelopers \n#Mr4rogrammer #isharewhatilearn",
|
||||
"person": "BQYGc4bH9N",
|
||||
"additionalFields": {
|
||||
"title": "=💫 {{ $('If').item.json.title }} ⭐",
|
||||
"visibility": "PUBLIC"
|
||||
},
|
||||
"shareMediaCategory": "IMAGE"
|
||||
},
|
||||
"credentials": {
|
||||
"linkedInOAuth2Api": {
|
||||
"id": "TODMZHWKWUyYl0qb",
|
||||
"name": "LinkedIn account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "b5026d10-0bcf-4ef4-a42e-0d8162a7eccc",
|
||||
"name": "Fetch Medium post content",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
100,
|
||||
240
|
||||
],
|
||||
"parameters": {
|
||||
"url": "=https://medium2.p.rapidapi.com/article/{{$json.id}}/content",
|
||||
"options": {},
|
||||
"sendHeaders": true,
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-rapidapi-host",
|
||||
"value": "medium2.p.rapidapi.com"
|
||||
},
|
||||
{
|
||||
"name": "x-rapidapi-key",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.2
|
||||
},
|
||||
{
|
||||
"id": "d25bf5d7-0258-4f07-b0b7-54ace75ef697",
|
||||
"name": "download image for post",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
420,
|
||||
240
|
||||
],
|
||||
"parameters": {
|
||||
"url": "={{ $('If').item.json.image_url }}",
|
||||
"options": {
|
||||
"allowUnauthorizedCerts": false
|
||||
},
|
||||
"sendHeaders": true,
|
||||
"headerParameters": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.2,
|
||||
"alwaysOutputData": false
|
||||
}
|
||||
],
|
||||
"active": false,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"timezone": "Asia/Kolkata",
|
||||
"callerPolicy": "workflowsFromSameOwner",
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "cc2275e5-a8d2-468c-be91-5e14ad568e3a",
|
||||
"connections": {
|
||||
"If": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Fetch Medium post content",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "get random tags",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"get random tags": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get List of records used",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Morning 9 Clock": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "get random tags",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"make Linkedin post": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Update the used node",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Update the used node": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "sent the status",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"map used articls ids": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "fetch article ids from tag",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"filter only unused Ids": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Fetch Medium post using Article Id",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"download image for post": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "make Linkedin post",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get List of records used": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "map used articls ids",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Fetch Medium post content": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "download image for post",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"fetch article ids from tag": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "filter only unused Ids",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Fetch Medium post using Article Id": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "If",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user