feat: add folder support for workflows (fixes #70)
This commit is contained in:
@@ -0,0 +1,330 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"name": "Set",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"position": [
|
||||
630,
|
||||
990
|
||||
],
|
||||
"parameters": {
|
||||
"values": {
|
||||
"number": [
|
||||
{
|
||||
"name": "deal_value",
|
||||
"value": "={{$json[\"properties\"][\"amount\"][\"value\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "deal_id",
|
||||
"value": "={{$json[\"dealId\"]}}"
|
||||
}
|
||||
],
|
||||
"string": [
|
||||
{
|
||||
"name": "deal_name",
|
||||
"value": "={{$json[\"properties\"][\"dealname\"][\"value\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "deal_date",
|
||||
"value": "={{$json[\"properties\"][\"closedate\"][\"timestamp\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "deal_description",
|
||||
"value": "={{$json[\"properties\"][\"description\"][\"value\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "deal_type",
|
||||
"value": "={{$json[\"properties\"][\"dealtype\"][\"value\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "deal_stage",
|
||||
"value": "={{$json[\"properties\"][\"dealstage\"][\"value\"]}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {},
|
||||
"keepOnlySet": true
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Switch",
|
||||
"type": "n8n-nodes-base.switch",
|
||||
"position": [
|
||||
830,
|
||||
740
|
||||
],
|
||||
"parameters": {
|
||||
"rules": {
|
||||
"rules": [
|
||||
{
|
||||
"value2": "closedwon"
|
||||
},
|
||||
{
|
||||
"output": 1,
|
||||
"value2": "presentationscheduled"
|
||||
},
|
||||
{
|
||||
"output": 2,
|
||||
"value2": "closedlost"
|
||||
}
|
||||
]
|
||||
},
|
||||
"value1": "={{$node[\"Hubspot\"].json[\"properties\"][\"dealstage\"][\"value\"]}}",
|
||||
"dataType": "string"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"position": [
|
||||
830,
|
||||
1140
|
||||
],
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"number": [
|
||||
{
|
||||
"value1": "={{$json[\"deal_value\"]}}",
|
||||
"value2": 500,
|
||||
"operation": "larger"
|
||||
}
|
||||
],
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"deal_type\"]}}",
|
||||
"value2": "newbusiness"
|
||||
},
|
||||
{
|
||||
"value1": "={{$json[\"deal_stage\"]}}",
|
||||
"value2": "closedlost|closedwon",
|
||||
"operation": "notEqual"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "high-priority",
|
||||
"type": "n8n-nodes-base.hubspot",
|
||||
"position": [
|
||||
1030,
|
||||
1040
|
||||
],
|
||||
"parameters": {
|
||||
"stageId": "1",
|
||||
"resource": "ticket",
|
||||
"pipelineId": "0",
|
||||
"ticketName": "=Deal: {{$json[\"deal_name\"]}}",
|
||||
"additionalFields": {
|
||||
"priority": "HIGH",
|
||||
"description": "={{$json[\"deal_description\"]}}",
|
||||
"ticketOwnerId": 12345
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"hubspotApi": "hubspot_nodeqa"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "low-priority",
|
||||
"type": "n8n-nodes-base.hubspot",
|
||||
"position": [
|
||||
1030,
|
||||
1240
|
||||
],
|
||||
"parameters": {
|
||||
"stageId": "1",
|
||||
"resource": "ticket",
|
||||
"pipelineId": "0",
|
||||
"ticketName": "=Deal: {{$json[\"deal_name\"]}}",
|
||||
"additionalFields": {
|
||||
"priority": "MEDIUM",
|
||||
"description": "={{$json[\"deal_description\"]}}"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"hubspotApi": "hubspot_nodeqa"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "#closedwon",
|
||||
"type": "n8n-nodes-base.slack",
|
||||
"position": [
|
||||
1030,
|
||||
590
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=We successfully closed the deal {{$node[\"Set\"].json[\"deal_name\"]}}!",
|
||||
"channel": "deals",
|
||||
"attachments": [],
|
||||
"otherOptions": {}
|
||||
},
|
||||
"credentials": {
|
||||
"slackApi": "slack_nodeqa"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Airtable",
|
||||
"type": "n8n-nodes-base.airtable",
|
||||
"position": [
|
||||
1030,
|
||||
890
|
||||
],
|
||||
"parameters": {
|
||||
"table": "lost_deals",
|
||||
"fields": [
|
||||
"deal_name",
|
||||
"deal_id",
|
||||
"deal_type"
|
||||
],
|
||||
"options": {},
|
||||
"operation": "append",
|
||||
"application": "appqwertz",
|
||||
"addAllFields": false
|
||||
},
|
||||
"credentials": {
|
||||
"airtableApi": "airtable_nodeqa"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Google Slides",
|
||||
"type": "n8n-nodes-base.googleSlides",
|
||||
"position": [
|
||||
1030,
|
||||
740
|
||||
],
|
||||
"parameters": {
|
||||
"title": "=Presentation for deal {{$node[\"Set\"].json[\"deal_name\"]}}",
|
||||
"authentication": "oAuth2"
|
||||
},
|
||||
"credentials": {
|
||||
"googleSlidesOAuth2Api": "slides"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Hubspot Trigger",
|
||||
"type": "n8n-nodes-base.hubspotTrigger",
|
||||
"position": [
|
||||
240,
|
||||
990
|
||||
],
|
||||
"webhookId": "12345",
|
||||
"parameters": {
|
||||
"eventsUi": {
|
||||
"eventValues": [
|
||||
{
|
||||
"name": "deal.creation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"additionalFields": {}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Hubspot",
|
||||
"type": "n8n-nodes-base.hubspot",
|
||||
"position": [
|
||||
440,
|
||||
990
|
||||
],
|
||||
"parameters": {
|
||||
"dealId": "={{$json[\"dealId\"]}}",
|
||||
"operation": "get",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"IF": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "high-priority",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "low-priority",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Set": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Switch",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "IF",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Switch": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "#closedwon",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Google Slides",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Airtable",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Hubspot": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Set",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Hubspot Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Hubspot",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,473 @@
|
||||
{
|
||||
"id": "2qIFnWXdHJJs4oBk",
|
||||
"meta": {
|
||||
"instanceId": "6c586999cefcd4ec9b2ab69e3f6b7974d96831b39a984af15104588e20b2737a",
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"name": "DSP Certificate w/ Google Forms",
|
||||
"tags": [],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1f3a1bb2-1e5b-4696-aafc-5b3267d76cbf",
|
||||
"name": "Google Sheets Trigger",
|
||||
"type": "n8n-nodes-base.googleSheetsTrigger",
|
||||
"position": [
|
||||
-100,
|
||||
-20
|
||||
],
|
||||
"parameters": {
|
||||
"event": "rowAdded",
|
||||
"options": {},
|
||||
"pollTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyMinute"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sheetName": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": 1715309269,
|
||||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1WqhSc4sx6GMupZgFo7xKoegXVo3fJVhqrovCQPa1esM/edit#gid=1715309269",
|
||||
"cachedResultName": "Form Responses 1"
|
||||
},
|
||||
"documentId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "1WqhSc4sx6GMupZgFo7xKoegXVo3fJVhqrovCQPa1esM"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"googleSheetsTriggerOAuth2Api": {
|
||||
"id": "LPj2gg4OdDdyokS7",
|
||||
"name": "Google Sheets (jkp@kajonkietsuksa.ac.th)"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "385f6b0f-2db0-4a44-816c-c6f6c8ccb493",
|
||||
"name": "No Operation, do nothing",
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"position": [
|
||||
620,
|
||||
180
|
||||
],
|
||||
"parameters": {},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "58a77733-99f1-4884-b955-0a6f6c983cfc",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-240,
|
||||
-340
|
||||
],
|
||||
"parameters": {
|
||||
"width": 300,
|
||||
"height": 180,
|
||||
"content": "### 1) Start here\n* Create a Google Form and then enable quiz mode.\n* Publish it, submit 1 text data.\n* In response section, you'll see \"Link to Google Sheet\" option.\n* Press, and it will create a new sheet."
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "aeef0ccc-3031-40d0-a627-5f21ade148b1",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
320,
|
||||
-140
|
||||
],
|
||||
"parameters": {
|
||||
"width": 180,
|
||||
"content": "### 4) Passing Score\n* Adjust your passing score here"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "c21dbdb5-ed87-4aac-bbc7-338aaed830ba",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-240,
|
||||
-100
|
||||
],
|
||||
"parameters": {
|
||||
"height": 180,
|
||||
"content": "### 2) Trigger Node\n* Replace your Google Sheet id's in this node."
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "d2b15c40-d38a-4bec-97c8-d4b35e3a69fa",
|
||||
"name": "Sticky Note3",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
40,
|
||||
-100
|
||||
],
|
||||
"parameters": {
|
||||
"width": 260,
|
||||
"height": 180,
|
||||
"content": "### 3) Extract Node\n* Select the data we want to use to proceed.\n* For this case, i'll select only Name, Email, Score (Because this is only what we need)"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "79957ca7-ac5f-4f5b-b921-ddec3cb9f88b",
|
||||
"name": "Extract essential data",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"position": [
|
||||
120,
|
||||
60
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"assignments": {
|
||||
"assignments": [
|
||||
{
|
||||
"id": "7cdc9108-ab77-4904-a74b-29677b06cc81",
|
||||
"name": "respondentName",
|
||||
"type": "string",
|
||||
"value": "={{ $json['ชื่อ (เป็นภาษาอังกฤษ)'] }}"
|
||||
},
|
||||
{
|
||||
"id": "1800b27a-6cbc-4b82-a17a-87d7d1e7a66e",
|
||||
"name": "respondentEmail",
|
||||
"type": "string",
|
||||
"value": "={{ $json['Email Address'] }}"
|
||||
},
|
||||
{
|
||||
"id": "36cb99ca-7c98-41b5-a2a4-a03ac8d83189",
|
||||
"name": "respondentScore",
|
||||
"type": "number",
|
||||
"value": "={{ $json.Score }}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 3.4
|
||||
},
|
||||
{
|
||||
"id": "912838e0-6b35-47a1-8935-dc90b4c59ecb",
|
||||
"name": "Score Checker",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"position": [
|
||||
360,
|
||||
-20
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"conditions": {
|
||||
"options": {
|
||||
"version": 2,
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "286a95ee-1edc-4310-af22-d161e1f04a27",
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "gt"
|
||||
},
|
||||
"leftValue": "={{ $json.respondentScore }}",
|
||||
"rightValue": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
{
|
||||
"id": "9c9e308f-ce90-425d-aafc-08711cbf95df",
|
||||
"name": "Sticky Note4",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
600,
|
||||
120
|
||||
],
|
||||
"parameters": {
|
||||
"width": 260,
|
||||
"content": "### 4.1) Score < passing criteria"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "f794c7a3-47af-4166-9504-8265837f61e6",
|
||||
"name": "Sticky Note5",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
520,
|
||||
-340
|
||||
],
|
||||
"parameters": {
|
||||
"width": 260,
|
||||
"height": 200,
|
||||
"content": "### 4.2) Score > passing criteria\n* Create new Google Slide \n* Decorate it as you desired (This will be certificate's template)\n* Use [ name ] to be a placeholder for user's name\n* Replace it with your Google Slide's id"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "9a2954e3-59fd-4472-931f-9eeb362e627b",
|
||||
"name": "Sticky Note6",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
820,
|
||||
-400
|
||||
],
|
||||
"parameters": {
|
||||
"width": 260,
|
||||
"content": "### 5) Replace text\n* This node will replace [ name ] with user's input name.\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "baa88ba8-c1c6-40d7-b4c0-1e70397d7e68",
|
||||
"name": "Sticky Note7",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
940,
|
||||
-80
|
||||
],
|
||||
"parameters": {
|
||||
"width": 260,
|
||||
"content": "### 6) To PDF\n* Change file name as you desire."
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "0d4b0fad-046b-4810-9d21-2c30135df6b0",
|
||||
"name": "Copy from your template",
|
||||
"type": "n8n-nodes-base.googleDrive",
|
||||
"position": [
|
||||
620,
|
||||
-160
|
||||
],
|
||||
"parameters": {
|
||||
"name": "={{ $json.respondentName }}'s Certificate",
|
||||
"fileId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "1J8PxjjspVs7075EfIX6pnNU-TmqtzVV9ymeHoKpbwP0"
|
||||
},
|
||||
"driveId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "My Drive"
|
||||
},
|
||||
"options": {},
|
||||
"folderId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "1xMJU-6eiXL53NDgjic2SXecTo6GeUJ-o",
|
||||
"cachedResultUrl": "https://drive.google.com/drive/folders/1xMJU-6eiXL53NDgjic2SXecTo6GeUJ-o",
|
||||
"cachedResultName": "KS Google Form -> Certificate System"
|
||||
},
|
||||
"operation": "copy",
|
||||
"sameFolder": false
|
||||
},
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "2k4spLmVESgxckkx",
|
||||
"name": "jkp@kajonkietsuksa.ac.th"
|
||||
}
|
||||
},
|
||||
"typeVersion": 3
|
||||
},
|
||||
{
|
||||
"id": "30407819-7998-4ba1-b2a0-bde7ba91747c",
|
||||
"name": "Replace text",
|
||||
"type": "n8n-nodes-base.googleSlides",
|
||||
"position": [
|
||||
880,
|
||||
-300
|
||||
],
|
||||
"parameters": {
|
||||
"textUi": {
|
||||
"textValues": [
|
||||
{
|
||||
"text": "[ NAME ]",
|
||||
"replaceText": "={{ $('Score Checker').item.json.respondentName }}",
|
||||
"pageObjectIds": [
|
||||
"p"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {},
|
||||
"operation": "replaceText",
|
||||
"presentationId": "={{ $json.id }}"
|
||||
},
|
||||
"credentials": {
|
||||
"googleSlidesOAuth2Api": {
|
||||
"id": "1oyCPsdPLod92Wlp",
|
||||
"name": "Google Slides account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2
|
||||
},
|
||||
{
|
||||
"id": "62f1ab2e-0471-480b-9a90-587a9ffb18d6",
|
||||
"name": "Convert to PDF",
|
||||
"type": "n8n-nodes-base.googleDrive",
|
||||
"position": [
|
||||
960,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"fileId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $json.presentationId }}"
|
||||
},
|
||||
"options": {
|
||||
"fileName": "={{ $('Score Checker').item.json.respondentName }}'s Certificate",
|
||||
"googleFileConversion": {
|
||||
"conversion": {
|
||||
"slidesToFormat": "application/pdf"
|
||||
}
|
||||
}
|
||||
},
|
||||
"operation": "download"
|
||||
},
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "2k4spLmVESgxckkx",
|
||||
"name": "jkp@kajonkietsuksa.ac.th"
|
||||
}
|
||||
},
|
||||
"typeVersion": 3,
|
||||
"alwaysOutputData": false
|
||||
},
|
||||
{
|
||||
"id": "08516c84-5257-4875-8c2f-9b6a4428bfad",
|
||||
"name": "Send to user's email",
|
||||
"type": "n8n-nodes-base.gmail",
|
||||
"position": [
|
||||
1360,
|
||||
0
|
||||
],
|
||||
"webhookId": "f204ef80-937c-4f7b-8eb5-0699eb13c16a",
|
||||
"parameters": {
|
||||
"sendTo": "={{ $('Score Checker').item.json.respondentEmail }}",
|
||||
"message": "=Congratulations on passing the quiz! Attached is your certificate.",
|
||||
"options": {
|
||||
"attachmentsUi": {
|
||||
"attachmentsBinary": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"appendAttribution": false
|
||||
},
|
||||
"subject": "Here's your certificate!!"
|
||||
},
|
||||
"credentials": {
|
||||
"gmailOAuth2": {
|
||||
"id": "qogKxJFIxmrd6rcB",
|
||||
"name": "Gmail account (jkp@kajonkietsuksa.ac.th)"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2.1
|
||||
},
|
||||
{
|
||||
"id": "ae4cd0de-e06d-4200-af17-f6e9953ccba7",
|
||||
"name": "Sticky Note8",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1260,
|
||||
-100
|
||||
],
|
||||
"parameters": {
|
||||
"width": 260,
|
||||
"content": "### 7) Send email\n* Send to user's email\n* Customize your message here.\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"active": true,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "54bf009a-3f95-446d-95a6-825496592a6f",
|
||||
"connections": {
|
||||
"Replace text": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Convert to PDF",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Score Checker": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Copy from your template",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Convert to PDF": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send to user's email",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Google Sheets Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Extract essential data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Extract essential data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Score Checker",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Copy from your template": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Replace text",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,885 @@
|
||||
{
|
||||
"id": "eF84e2NyJWTCVClW",
|
||||
"meta": {
|
||||
"instanceId": "5ce52989094be90be3b3bdd9ed9cee1d7ce1fcecaa598afaec4a50646d32e291",
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"name": "Create Custom Presentations per Lead",
|
||||
"tags": [
|
||||
{
|
||||
"id": "fSDcaaN3w5sV5e3S",
|
||||
"name": "Templates",
|
||||
"createdAt": "2025-02-23T15:20:47.262Z",
|
||||
"updatedAt": "2025-02-23T15:20:47.262Z"
|
||||
},
|
||||
{
|
||||
"id": "iMiiPG3ObM1yILch",
|
||||
"name": "SD - Sales",
|
||||
"createdAt": "2025-02-23T15:27:45.789Z",
|
||||
"updatedAt": "2025-02-23T15:28:28.561Z"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "4cc04b1c-d97d-4d5a-b614-ba22b7b447bd",
|
||||
"name": "Download by ID",
|
||||
"type": "n8n-nodes-base.googleDrive",
|
||||
"position": [
|
||||
-280,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"fileId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $json.id }}"
|
||||
},
|
||||
"options": {},
|
||||
"operation": "download"
|
||||
},
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "J7noNRzf26R3DpFF",
|
||||
"name": "Jim Privat"
|
||||
}
|
||||
},
|
||||
"typeVersion": 3
|
||||
},
|
||||
{
|
||||
"id": "8d550abf-a5f8-424d-8bfb-d9a9732eb93f",
|
||||
"name": "MoveToLeadListFolder",
|
||||
"type": "n8n-nodes-base.googleDrive",
|
||||
"position": [
|
||||
1060,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"fileId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $('Create new Sheet').first().json.spreadsheetId }}"
|
||||
},
|
||||
"driveId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "My Drive"
|
||||
},
|
||||
"folderId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "=1-oMQTyijYXNmt-Dwh748JFjlDZVCu6ii"
|
||||
},
|
||||
"operation": "move"
|
||||
},
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "J7noNRzf26R3DpFF",
|
||||
"name": "Jim Privat"
|
||||
}
|
||||
},
|
||||
"typeVersion": 3
|
||||
},
|
||||
{
|
||||
"id": "4872b5ec-6dda-4920-b6e2-120bdc273c00",
|
||||
"name": "Add Presentation ID to Lead List",
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"position": [
|
||||
1740,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"columns": {
|
||||
"value": {
|
||||
"Email": "={{ $('Get all Leads').item.json.Email }}",
|
||||
"PresentationID": "={{ $json.presentationId }}"
|
||||
},
|
||||
"schema": [
|
||||
{
|
||||
"id": "First Name",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "First Name",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Last Name",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Last Name",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Full Name",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Full Name",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Title",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Title",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Email",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Email",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Company",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Company",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Contact Location",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Contact Location",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Employees",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Employees",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Phone",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Phone",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Industry",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Industry",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Country",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Country",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "State",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "State",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "City",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "City",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "PresentationID",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "PresentationID",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Keywords",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"required": false,
|
||||
"displayName": "Keywords",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "row_number",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"readOnly": true,
|
||||
"required": false,
|
||||
"displayName": "row_number",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
}
|
||||
],
|
||||
"mappingMode": "defineBelow",
|
||||
"matchingColumns": [
|
||||
"Email"
|
||||
]
|
||||
},
|
||||
"options": {},
|
||||
"operation": "update",
|
||||
"sheetName": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $('Create new Sheet').first().json.sheets[0].properties.sheetId }}"
|
||||
},
|
||||
"documentId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $('Create new Sheet').first().json.spreadsheetId }}"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"googleSheetsOAuth2Api": {
|
||||
"id": "tO62CXNbmAYSCBIY",
|
||||
"name": "Midgard"
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.5
|
||||
},
|
||||
{
|
||||
"id": "afe225e3-fb82-4091-8310-6645d883c54d",
|
||||
"name": "Get all Leads",
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"position": [
|
||||
840,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"sheetName": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $('Create new Sheet').first().json.sheets[0].properties.sheetId }}"
|
||||
},
|
||||
"documentId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $('Create new Sheet').first().json.spreadsheetId }}"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"googleSheetsOAuth2Api": {
|
||||
"id": "tO62CXNbmAYSCBIY",
|
||||
"name": "Midgard"
|
||||
}
|
||||
},
|
||||
"executeOnce": true,
|
||||
"typeVersion": 4.5
|
||||
},
|
||||
{
|
||||
"id": "635c62cf-4369-442b-8fd7-be2e4caa6ebc",
|
||||
"name": "Create new Sheet",
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"position": [
|
||||
0,
|
||||
40
|
||||
],
|
||||
"parameters": {
|
||||
"title": "=Leads_{{ $now.setZone('Europe/Berlin').toFormat('yyyy-dd-MM') }}",
|
||||
"options": {},
|
||||
"resource": "spreadsheet",
|
||||
"sheetsUi": {
|
||||
"sheetValues": [
|
||||
{
|
||||
"title": "sample_data"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"googleSheetsOAuth2Api": {
|
||||
"id": "tO62CXNbmAYSCBIY",
|
||||
"name": "Midgard"
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.5
|
||||
},
|
||||
{
|
||||
"id": "d55c0f32-b74a-484a-b759-9ca1c4cf8d65",
|
||||
"name": "Merge Data for new Lead Document",
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"position": [
|
||||
580,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"columns": {
|
||||
"value": {},
|
||||
"schema": [
|
||||
{
|
||||
"id": "First Name",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "First Name",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Last Name",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Last Name",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Full Name",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Full Name",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Title",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Title",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Email",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Email",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Company",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Company",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Contact Location",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Contact Location",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Employees",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Employees",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Phone",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Phone",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Industry",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Industry",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Country",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Country",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "State",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "State",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "City",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "City",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "Keywords",
|
||||
"type": "string",
|
||||
"display": true,
|
||||
"removed": false,
|
||||
"required": false,
|
||||
"displayName": "Keywords",
|
||||
"defaultMatch": false,
|
||||
"canBeUsedToMatch": true
|
||||
}
|
||||
],
|
||||
"mappingMode": "autoMapInputData",
|
||||
"matchingColumns": []
|
||||
},
|
||||
"options": {
|
||||
"useAppend": true
|
||||
},
|
||||
"operation": "append",
|
||||
"sheetName": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $('Create new Sheet').first().json.sheets[0].properties.sheetId }}"
|
||||
},
|
||||
"documentId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "={{ $('Create new Sheet').first().json.spreadsheetId }}"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"googleSheetsOAuth2Api": {
|
||||
"id": "tO62CXNbmAYSCBIY",
|
||||
"name": "Midgard"
|
||||
}
|
||||
},
|
||||
"typeVersion": 4.5
|
||||
},
|
||||
{
|
||||
"id": "9d93741a-93b2-4556-9f2e-2d40617c69ac",
|
||||
"name": "New Leads Arrived",
|
||||
"type": "n8n-nodes-base.googleDriveTrigger",
|
||||
"position": [
|
||||
-800,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"event": "fileCreated",
|
||||
"options": {},
|
||||
"pollTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyMinute"
|
||||
}
|
||||
]
|
||||
},
|
||||
"triggerOn": "specificFolder",
|
||||
"folderToWatch": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "1GYT9Z8_BnqqY9dqsMpFWJqjeNVsq_xTY",
|
||||
"cachedResultUrl": "https://drive.google.com/drive/folders/1GYT9Z8_BnqqY9dqsMpFWJqjeNVsq_xTY",
|
||||
"cachedResultName": "__cmath"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "J7noNRzf26R3DpFF",
|
||||
"name": "Jim Privat"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "174ff078-e06a-47c3-93c2-441667e0f8e5",
|
||||
"name": "File Type?",
|
||||
"type": "n8n-nodes-base.switch",
|
||||
"position": [
|
||||
-560,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"rules": {
|
||||
"values": [
|
||||
{
|
||||
"outputKey": "csv",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"version": 2,
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"operator": {
|
||||
"type": "string",
|
||||
"operation": "equals"
|
||||
},
|
||||
"leftValue": "={{ $json.mimeType }}",
|
||||
"rightValue": "text/csv"
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
},
|
||||
{
|
||||
"outputKey": "xlsx",
|
||||
"conditions": {
|
||||
"options": {
|
||||
"version": 2,
|
||||
"leftValue": "",
|
||||
"caseSensitive": true,
|
||||
"typeValidation": "strict"
|
||||
},
|
||||
"combinator": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"id": "c2f2fb50-a750-4870-aff7-11df142a9be5",
|
||||
"operator": {
|
||||
"name": "filter.operator.equals",
|
||||
"type": "string",
|
||||
"operation": "equals"
|
||||
},
|
||||
"leftValue": "={{ $json.mimeType }}",
|
||||
"rightValue": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"renameOutput": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"typeVersion": 3.2
|
||||
},
|
||||
{
|
||||
"id": "23d71fb1-c8f2-4144-a40e-be378aa2043a",
|
||||
"name": "Combine Empty New Document with CSV Data",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"position": [
|
||||
300,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"mode": "chooseBranch",
|
||||
"useDataOfInput": 2
|
||||
},
|
||||
"typeVersion": 3
|
||||
},
|
||||
{
|
||||
"id": "195d7ed6-7dc0-4f49-8256-f47b4c8d426b",
|
||||
"name": "Create Custom Presentation",
|
||||
"type": "n8n-nodes-base.googleSlides",
|
||||
"position": [
|
||||
1520,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"textUi": {
|
||||
"textValues": [
|
||||
{
|
||||
"text": "{COMPANYNAME}",
|
||||
"replaceText": "={{ $('Get all Leads').item.json.Company }}"
|
||||
},
|
||||
{
|
||||
"text": "{Testdurchgestrichen}",
|
||||
"replaceText": "={{ $('Get all Leads').item.json['Full Name'] }}"
|
||||
},
|
||||
{
|
||||
"text": "{nichtdurchgestrichen}",
|
||||
"replaceText": "={{ $('Get all Leads').item.json['First Name'] }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {},
|
||||
"operation": "replaceText",
|
||||
"presentationId": "={{ $json.id }}"
|
||||
},
|
||||
"credentials": {
|
||||
"googleSlidesOAuth2Api": {
|
||||
"id": "e9cejsZpBHAaXKv0",
|
||||
"name": "GSlides Midgard"
|
||||
}
|
||||
},
|
||||
"typeVersion": 2
|
||||
},
|
||||
{
|
||||
"id": "97d47391-20ea-4db7-bdf6-22eebc22a9dd",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
980,
|
||||
60
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"width": 960,
|
||||
"height": 340,
|
||||
"content": "# Duplicate Template and Create Custom Presentations"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "acded411-6cdf-489a-bb14-c7c14cdaee23",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
-320,
|
||||
-120
|
||||
],
|
||||
"parameters": {
|
||||
"color": 4,
|
||||
"width": 1300,
|
||||
"height": 520,
|
||||
"content": "# Create New Google Sheets and Insert Data from CSV file"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "9dd9e32a-5c1b-4faf-8054-63b66f5dd24e",
|
||||
"name": "Extract Information from CSV file",
|
||||
"type": "n8n-nodes-base.extractFromFile",
|
||||
"position": [
|
||||
0,
|
||||
220
|
||||
],
|
||||
"parameters": {
|
||||
"options": {
|
||||
"encoding": "utf-8",
|
||||
"delimiter": ",",
|
||||
"headerRow": true
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"id": "0329eabe-dee1-41fd-a7eb-017343523e40",
|
||||
"name": "Copy Presentation Template",
|
||||
"type": "n8n-nodes-base.googleDrive",
|
||||
"position": [
|
||||
1300,
|
||||
160
|
||||
],
|
||||
"parameters": {
|
||||
"name": "={{ $('Get all Leads').item.json.Company }} X MYCOMPANYNAME_{{ $now.setZone('Europe/Berlin').toFormat('yyyy-dd-MM') }}",
|
||||
"fileId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "1FtMBECbZY-9gSW6L6DtioOOJv-V9LXduEjZO0pp-NmA",
|
||||
"cachedResultUrl": "https://docs.google.com/presentation/d/1FtMBECbZY-9gSW6L6DtioOOJv-V9LXduEjZO0pp-NmA/edit?usp=drivesdk",
|
||||
"cachedResultName": "Stardawn Updated"
|
||||
},
|
||||
"driveId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "My Drive"
|
||||
},
|
||||
"options": {},
|
||||
"folderId": {
|
||||
"__rl": true,
|
||||
"mode": "list",
|
||||
"value": "1Yu2s72rgOJlz1-tMuzlaeN8UZezYftRT",
|
||||
"cachedResultUrl": "https://drive.google.com/drive/folders/1Yu2s72rgOJlz1-tMuzlaeN8UZezYftRT",
|
||||
"cachedResultName": "Custom Presentations"
|
||||
},
|
||||
"operation": "copy",
|
||||
"sameFolder": false
|
||||
},
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "J7noNRzf26R3DpFF",
|
||||
"name": "Jim Privat"
|
||||
}
|
||||
},
|
||||
"typeVersion": 3
|
||||
}
|
||||
],
|
||||
"active": false,
|
||||
"pinData": {},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "bd03e5b5-be73-444f-a1e6-f037db77a01b",
|
||||
"connections": {
|
||||
"File Type?": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Download by ID",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get all Leads": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "MoveToLeadListFolder",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Download by ID": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Extract Information from CSV file",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Create new Sheet",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create new Sheet": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Combine Empty New Document with CSV Data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"New Leads Arrived": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "File Type?",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"MoveToLeadListFolder": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Copy Presentation Template",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Copy Presentation Template": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Create Custom Presentation",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Create Custom Presentation": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Add Presentation ID to Lead List",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge Data for new Lead Document": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get all Leads",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Extract Information from CSV file": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Combine Empty New Document with CSV Data",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Combine Empty New Document with CSV Data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge Data for new Lead Document",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user