{
  "workflow": {
    "id": 3204,
    "name": "🚚 Automate delivery confirmation with Telegram Bot, Google Drive and Gmail",
    "views": 2952,
    "recentViews": 0,
    "totalViews": 2952,
    "createdAt": "2025-03-17T20:51:18.971Z",
    "description": "*Tags: Supply Chain Management, Logistics, Transportation*\n\n### Context\nHey! I'm [Samir](https://samirsaci.com), a **Supply Chain Engineer and Data Scientist from Paris** founder of \n[LogiGreen Consulting](https://www.logi-green.com/)\n\nWe design tools to help **small and medium businesses** in **improving their logistics processes** using data analytics and **automation**.\n\n&gt; Let's use N8N to make supply chains **more efficient and sustainable Supply Chains!**\n\n📬 For business inquiries, you can add me on [Here](https://www.linkedin.com/in/samir-saci)\n\n### Who is this template for?\nThis workflow template is designed for **logistics operations** that cannot rely on a **Transportation Management System** to **record proofs of deliveries**.\n\n[![Example of Logistic Operations](https://www.samirsaci.com/content/images/size/w1000/2025/03/image-19.png)](https://youtu.be/9NS4RYaOwJ8)\n\n### What is a delivery confirmation?\nThis workflow uses a **Telegram bot** to automatically notify **logistics teams** by email when a **shipment is delivered**.\n\n[![Example of Delivery Notice](https://www.samirsaci.com/content/images/2025/03/image-7.png)](https://youtu.be/9NS4RYaOwJ8)\n\nDrivers (equipped with their smartphones) can **record their arrival** with all the necessary information for accurate distribution planning.\n\n### How do we notify the delivery?\nLet us imagine a truck driver arriving at the destination; he can contact the bot to be guided on how to record the delivery.\n\n[![Screens of Telegram Discussion](https://www.samirsaci.com/content/images/size/w1000/2025/03/image-6.png)](https://youtu.be/9NS4RYaOwJ8)\n\n0. **User Guide**: the first bot's message is a brief explanation of the process \n1. **Record Shipment Number**: the bot asks the driver to share the shipment number and record it\n2. **Collect GPS Location**: the bot asks the driver to share its GPS location and record them\n3. **Picture of the Shipment**: the bot asks for a picture of the shipment and saves it in Google Drive\n4. **Send Confirmation**: after data collection, the bot proposes to send a confirmation to the logistics management team\n\nAn email is then automatically sent by the N8N workflow including all the information recorded by the flow and a picture of the shipment.\n\n[![Example of Notification via Email](https://www.samirsaci.com/content/images/2025/03/image-5.png)](https://youtu.be/9NS4RYaOwJ8)\n\n### Prerequisite\nThis workflow does not require any additional paying subscription.\n\n- A **Google Drive Account** with a folder including a Google Sheet\n- API Credentials: **Google Drive API**, **Google Sheets API** and **Gmail API**\n- A Telegram Bot with its API token from BotFather\n- A Google sheet to store the shipment records with these five columns prepared: **shipmentNumber, recordTime, gpsLattitude, gpsLongitude, cargoPicture, deliveryTime**\n\n### Next Steps\nFollow the **sticky notes** to set up the parameters inside each node and get ready to improve your logistics operations!\n\nI have detailed the steps in a **short tutorial** 👇\n[![image.png](https://www.samirsaci.com/content/images/2025/04/Telegram-Shipment-Tracking.png)](https://youtu.be/9NS4RYaOwJ8)\n 🎥 [Check My Tutorial](https://youtu.be/9NS4RYaOwJ8)\n\n🚀 Interested in applications of N8N for Logistics & Supply Chain Management? Let's connect on [Linkedin](www.linkedin.com/in/samir-saci)\n\n### Notes\n- This workflow can be adapted to add more functionalities. I explain how in the video.\n- The bot can handle multiple drivers at the same time.\n- If you want to learn more about the original tool designed with Python: 🚚 [Blog Article about Telegram Shipment Tracking Bot](https://www.samirsaci.com/build-a-shipment-tracking-tool-using-a-telegram-bot/)\n\n*This workflow has been created with N8N  1.82.1*\n*Submitted: March 17th, 2025*",
    "workflow": {
      "meta": {
        "instanceId": "",
        "templateCredsSetupCompleted": true
      },
      "nodes": [
        {
          "id": "6e389be7-2612-47f8-b1e0-d3ebe3375bed",
          "name": "Sticky Note3",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -960,
            -1296
          ],
          "parameters": {
            "width": 780,
            "height": 492,
            "content": "### 5. Do you need more details?\n@[youtube](9NS4RYaOwJ8)"
          },
          "typeVersion": 1
        },
        {
          "id": "f37dc087-fa58-41f9-9645-f74d95c3a151",
          "name": "Telegram Trigger",
          "type": "n8n-nodes-base.telegramTrigger",
          "position": [
            -768,
            -1536
          ],
          "webhookId": "97a26e94-6de8-4d44-9cda-631ad869119d",
          "parameters": {
            "updates": [
              "message"
            ],
            "additionalFields": {}
          },
          "notesInFlow": true,
          "typeVersion": 1
        },
        {
          "id": "352ad4d6-c788-47b4-a4d1-83f8ed0fe770",
          "name": "Check State",
          "type": "n8n-nodes-base.switch",
          "position": [
            -352,
            -272
          ],
          "parameters": {
            "rules": {
              "values": [
                {
                  "outputKey": "1",
                  "conditions": {
                    "options": {
                      "version": 2,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "f5b2d141-7bd2-4656-b9c7-d2b562b2406e",
                        "operator": {
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $json.state }}",
                        "rightValue": "waitingShipmentNumber"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "2",
                  "conditions": {
                    "options": {
                      "version": 2,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "1a145782-de66-496c-aa5e-5fa5b93614f9",
                        "operator": {
                          "name": "filter.operator.equals",
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $json.state }}",
                        "rightValue": "waitingGPS"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "3",
                  "conditions": {
                    "options": {
                      "version": 2,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "22f4f461-5973-4cba-9341-e077dd7b3fa1",
                        "operator": {
                          "name": "filter.operator.equals",
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $json.state }}",
                        "rightValue": "waitingPhoto"
                      }
                    ]
                  },
                  "renameOutput": true
                }
              ]
            },
            "options": {
              "fallbackOutput": "extra"
            }
          },
          "notesInFlow": true,
          "typeVersion": 3.2
        },
        {
          "id": "8f657eb7-d175-4adb-9fc8-b170f77721bb",
          "name": "Clear State",
          "type": "n8n-nodes-base.code",
          "position": [
            640,
            -1136
          ],
          "parameters": {
            "jsCode": "let workflowStaticData = $getWorkflowStaticData('global');\nif (workflowStaticData.telegramStates) {\n    delete workflowStaticData.telegramStates[$('Telegram Trigger').first().json.message.chat.id.toString()];\n}\n\nreturn $input.all();"
          },
          "typeVersion": 2
        },
        {
          "id": "392e6496-38d6-4d44-b4f2-a5c31a935b89",
          "name": "Sticky Note5",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -112,
            -768
          ],
          "parameters": {
            "color": 7,
            "width": 1013,
            "height": 1189,
            "content": "\n### 3. Driver's Input Collection Block\nBased on the state flag value, the workflow process the input expected from the driver.\n\nThe **waiting conditions** code node is filtering the request based on the workplace state variable value\n- **If the value is waitingXXX**: the output from the driver is processed, a value is recorded in a code node and a confirmation message is sent to the driver (including the next command to follow)\n- **If the value does not start with waiting**: a message with instructions is sent to the driver\n\n#### How to setup?\n- **Telegram Message Nodes:** set up your telegram bot credentials\n[Learn more about the Telegram Message Node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.telegram/)\n- **Google Drive Nodes**:\n   1. Add your Google Drive API credentials to access your drive\n   2. Select the folder using the list, an URL or an ID\n   3. Select the sheet in which the vocabulary list is stored\n  [Learn more about the Google Drive Node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googledrive/?utm_source=n8n_app&utm_medium=node_settings_modal-credential_link&utm_campaign=n8n-nodes-base.googleDrive)"
          },
          "typeVersion": 1
        },
        {
          "id": "30cfaacc-3a71-4ce5-8dd3-251f886cf2c1",
          "name": "Sticky Note6",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -112,
            -2048
          ],
          "parameters": {
            "color": 7,
            "width": 993,
            "height": 1149,
            "content": "### 2. Driver's Input Command Block\nThe switch command tunnels the flow based on the command:\n  1. The code nodes named waitingXXX are storing a state flag to wait for the user input\n  2. Telegram Message Nodes are asking users for the expected input\n\nIf the command is **/sendConfirmation**:\n- A proof of delivery is sent to the logistics team by the Gmail Node\n- Shipment information are recorded in the Google Sheet\n- A confirmation is sent to the driver by the Telegram Node\n\n#### How to setup?\n- **Telegram Message Nodes:** set up your telegram bot credentials\n[Learn more about the Telegram Message Node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.telegram/)\n- **Send Email with Gmail Node**: set up the node to send the confirmation to the delivery team\n[Learn more about the Gmail Email Node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.gmail)\n  1. Add the email of the recipient **To**\n  2. Add your Gmail API credentials\n  3. Change the **Send Name**\n\n"
          },
          "typeVersion": 1
        },
        {
          "id": "605e6f4a-d66e-4d8c-889a-f925f33714b9",
          "name": "addGPS",
          "type": "n8n-nodes-base.telegram",
          "position": [
            192,
            -1472
          ],
          "webhookId": "f50b0e4e-8a6b-4af8-bdb3-becec1f6ccaf",
          "parameters": {
            "text": "=📍 Please share your GPS location by clicking the 📎 attachment button.",
            "chatId": "={{ $json.message.chat.id }}",
            "forceReply": {
              "force_reply": true
            },
            "replyMarkup": "forceReply",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1.2
        },
        {
          "id": "3a9b5676-61c0-4dee-a73b-02e2b7449049",
          "name": "Welcome Message",
          "type": "n8n-nodes-base.telegram",
          "position": [
            -64,
            -1056
          ],
          "webhookId": "5c54b2fa-f6ef-44ea-90db-af1822586d0f",
          "parameters": {
            "text": "=Hello {{ $json.message.chat.first_name }}! 👋  \nI am **LogiGreenTrack**, your delivery tracking assistant. 🚛📦  \n\nYou can use the following commands:  \n\n🚚 /addShipment - Start a new shipment tracking process.\nℹ️ /help - Get more information about how to use LogiTrack.\n\nWhen you start a new shipment, I will guide you through these simple steps:  \n1️⃣ Provide the **delivery number**. \n2️⃣ Share your **GPS location**.   \n3️⃣ Upload a **picture** of the shipment.  \n\nYour data will be stored safely in our system for tracking. ✅  \n\nType a command to get started! 🚀",
            "chatId": "={{ $json.message.chat.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1.2
        },
        {
          "id": "1c8546ce-597b-43e1-bfe1-08af2c5fdedc",
          "name": "Command?",
          "type": "n8n-nodes-base.if",
          "position": [
            -576,
            -1536
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "version": 2,
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "and",
              "conditions": [
                {
                  "id": "70ac1322-2ef4-46b4-9090-7c3c93bf546f",
                  "operator": {
                    "type": "object",
                    "operation": "exists",
                    "singleValue": true
                  },
                  "leftValue": "={{ $json.message.entities[0] }}",
                  "rightValue": "/start"
                }
              ]
            }
          },
          "typeVersion": 2.2
        },
        {
          "id": "644b468b-4ee0-45a7-b885-7cb53c6466df",
          "name": "Store GPS Location",
          "type": "n8n-nodes-base.set",
          "position": [
            -64,
            -96
          ],
          "parameters": {
            "options": {},
            "assignments": {
              "assignments": [
                {
                  "id": "03403259-8673-4a0b-b238-da2d4f311e59",
                  "name": "latitude",
                  "type": "string",
                  "value": "={{ $('Telegram Trigger').item.json.message.location.latitude }}"
                },
                {
                  "id": "762d4db4-f4d0-414e-9937-d4e7ea36fab7",
                  "name": "longitude",
                  "type": "string",
                  "value": "={{ $('Telegram Trigger').item.json.message.location.longitude }}"
                }
              ]
            }
          },
          "typeVersion": 3.4
        },
        {
          "id": "68f6bba9-b21b-42a1-bd0c-400ebb543f7e",
          "name": "addGPS result",
          "type": "n8n-nodes-base.telegram",
          "position": [
            272,
            -96
          ],
          "webhookId": "2a31bd25-91a1-449f-b018-b88eabaa4daf",
          "parameters": {
            "text": "=Record GPS Coordinates: [{\"latitude\": {{ $json.latitude }}, \"longitude\": {{ $json.longitude }}}].  \nPlease continue with 📸 /sendPhoto to upload a picture of the shipment.",
            "chatId": "={{ $('Telegram Trigger').first().json.message.chat.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1
        },
        {
          "id": "0ddfb36e-b292-43da-bed8-6f49beda3e37",
          "name": "addShipmentNumber",
          "type": "n8n-nodes-base.telegram",
          "position": [
            192,
            -1616
          ],
          "webhookId": "fb230af6-f0e6-4e0b-bcf6-72a0b82e4322",
          "parameters": {
            "text": "📦 Please enter the delivery number for this shipment.",
            "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
            "forceReply": {
              "force_reply": true
            },
            "replyMarkup": "forceReply",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1.2
        },
        {
          "id": "6eda2dd5-bc4b-4810-ae4f-d22479dd3f39",
          "name": "Shipment Number",
          "type": "n8n-nodes-base.set",
          "position": [
            -96,
            -288
          ],
          "parameters": {
            "options": {},
            "assignments": {
              "assignments": [
                {
                  "id": "aa417d79-9da9-48e1-ab32-df034db44a1c",
                  "name": "shipmentNumber",
                  "type": "string",
                  "value": "={{ $('Command?').item.json.message.text }}"
                }
              ]
            }
          },
          "notesInFlow": true,
          "typeVersion": 3.4
        },
        {
          "id": "c519e20b-3bdf-4959-ae33-9600fba5a677",
          "name": "addShipmentNumber result",
          "type": "n8n-nodes-base.telegram",
          "position": [
            272,
            -288
          ],
          "webhookId": "2f97d0e7-315e-4a65-ba9a-171f35d51e27",
          "parameters": {
            "text": "=Recorded Shipment Number: {{ $json.shipmentNumber }}. \nNext step:📍 /addGPS - Add your GPS location",
            "chatId": "={{ $('Telegram Trigger').first().json.message.chat.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1
        },
        {
          "id": "4083f590-97ee-47f4-ae53-dfe8395fca80",
          "name": "Store Shipment",
          "type": "n8n-nodes-base.code",
          "position": [
            96,
            -400
          ],
          "parameters": {
            "jsCode": "let workflowData = $getWorkflowStaticData('global');\nworkflowData.shipmentNumber = $input.first().json.shipmentNumber;\nreturn $json;"
          },
          "typeVersion": 2
        },
        {
          "id": "c94f56bf-6a12-40cf-a63f-6f66e39ade86",
          "name": "Store GPS",
          "type": "n8n-nodes-base.code",
          "position": [
            96,
            -192
          ],
          "parameters": {
            "jsCode": "let workflowData = $getWorkflowStaticData('global');\nworkflowData.gpsLatitude = $input.first().json.latitude\nworkflowData.gpsLongitude = $input.first().json.longitude\nreturn $json;"
          },
          "typeVersion": 2
        },
        {
          "id": "ccff48e1-6b32-4e85-a152-2c452d7dd6f4",
          "name": "Load Workspace Data",
          "type": "n8n-nodes-base.code",
          "position": [
            -64,
            -1200
          ],
          "parameters": {
            "jsCode": "let workflowData = $getWorkflowStaticData('global');\n\nreturn [\n    {\n        json: {\n            shipmentNumber: workflowData.shipmentNumber || \"Not available\",\n            gpsLatitude: workflowData.gpsLatitude || \"Not available\",\n            gpsLongitude: workflowData.gpsLongitude || \"Not available\",\n            publicImageLink: workflowData.publicImageLink || \"Not available\",\n            deliveryTime: workflowData.deliveryTime || \"Not available\",\n            fileName: workflowData.fileName || \"Not available\"\n        }\n    }\n];"
          },
          "typeVersion": 2
        },
        {
          "id": "9526eb80-037e-489d-acad-7329249db4d2",
          "name": "waitingShipmentNumber",
          "type": "n8n-nodes-base.code",
          "position": [
            -64,
            -1616
          ],
          "parameters": {
            "jsCode": "let workflowStaticData = $getWorkflowStaticData('global');\nif (!workflowStaticData.telegramStates) {\n    workflowStaticData.telegramStates = {};\n}\nworkflowStaticData.telegramStates[$json.message.chat.id.toString()] = { waitingShipmentNumber: true };\nreturn $input.all();"
          },
          "typeVersion": 2
        },
        {
          "id": "cdfdb5bf-8138-4d66-bdf4-b7e6a28c5732",
          "name": "waitingGPS",
          "type": "n8n-nodes-base.code",
          "position": [
            -64,
            -1472
          ],
          "parameters": {
            "jsCode": "let workflowStaticData = $getWorkflowStaticData('global');\nif (!workflowStaticData.telegramStates) {\n    workflowStaticData.telegramStates = {};\n}\nworkflowStaticData.telegramStates[$json.message.chat.id.toString()] = { waitingGPS: true };\nreturn $input.all();"
          },
          "typeVersion": 2
        },
        {
          "id": "eea60e18-94b6-48a7-9510-73b11d46bed5",
          "name": "Instructions",
          "type": "n8n-nodes-base.telegram",
          "position": [
            -64,
            256
          ],
          "webhookId": "53fbb69e-8271-4e59-bcbc-deccb79c47a8",
          "parameters": {
            "text": "=Hello {{ $json.message.chat.first_name }}! 👋  \nI am **LogiGreenTrack**, your delivery tracking assistant. 🚛📦  \n\nYou can use the following commands:  \n\n🚚 /addShipment - Start a new shipment tracking process.\nℹ️ /help - Get more information about how to use LogiTrack.\n\nWhen you start a new shipment, I will guide you through these simple steps:  \n1️⃣ Provide the **delivery number**. \n2️⃣ Share your **GPS location**.   \n3️⃣ Upload a **picture** of the shipment.  \n\nYour data will be stored safely in our system for tracking. ✅  \n\nType a command to get started! 🚀",
            "chatId": "={{ $('Telegram Trigger').first().json.message.chat.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1
        },
        {
          "id": "4416bb2e-fbd1-4960-92b0-dde93ffa6cba",
          "name": "waitingPhoto",
          "type": "n8n-nodes-base.code",
          "position": [
            -64,
            -1328
          ],
          "parameters": {
            "jsCode": "let workflowStaticData = $getWorkflowStaticData('global');\nif (!workflowStaticData.telegramStates) {\n    workflowStaticData.telegramStates = {};\n}\nworkflowStaticData.telegramStates[$json.message.chat.id.toString()] = { waitingPhoto: true };\nreturn $input.all();"
          },
          "typeVersion": 2
        },
        {
          "id": "9859fa25-e178-410a-b08b-64395bb0e332",
          "name": "Waiting Conditions",
          "type": "n8n-nodes-base.code",
          "position": [
            -544,
            -256
          ],
          "parameters": {
            "jsCode": "let globalData = $getWorkflowStaticData('global');\nlet state = \"none\"; // Default state\n\nif (globalData && globalData.telegramStates) {\n    let chatData = globalData.telegramStates[$json.message.chat.id.toString()];\n    if (chatData) {\n        if (chatData.waitingShipmentNumber === true) {\n            state = \"waitingShipmentNumber\";\n        } else if (chatData.waitingGPS === true) {\n            state = \"waitingGPS\";\n        } else if (chatData.waitingPhoto === true) {\n            state = \"waitingPhoto\";\n        }\n    }\n}\nreturn { state };"
          },
          "typeVersion": 2
        },
        {
          "id": "e96e654d-a891-43f8-9a67-96719c8ef0fc",
          "name": "addPhoto result",
          "type": "n8n-nodes-base.telegram",
          "position": [
            656,
            96
          ],
          "webhookId": "4f77a501-82b8-4046-8ac4-027c0874a7ae",
          "parameters": {
            "text": "=Photo saved in a file named using shipment number. \nPlease continue with 📩 /sendConfirmation to send a proof of delivery via email to the logistics team.\n",
            "chatId": "={{ $('Telegram Trigger').first().json.message.chat.id }}",
            "additionalFields": {
              "parse_mode": "HTML",
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1
        },
        {
          "id": "aae6735e-16d4-42c6-8099-4e083ee4b8ff",
          "name": "sendPhoto",
          "type": "n8n-nodes-base.telegram",
          "position": [
            192,
            -1328
          ],
          "webhookId": "aef2449a-c6bf-4956-a986-dce76deae089",
          "parameters": {
            "text": "=Please take a **photo of the shipment** and upload it here by clicking the 📎 attachment button.",
            "chatId": "={{ $json.message.chat.id }}",
            "forceReply": {
              "force_reply": true
            },
            "replyMarkup": "forceReply",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1.2
        },
        {
          "id": "cf1840a4-1d3d-4842-a7e8-dece958ea77b",
          "name": "Upload Picture",
          "type": "n8n-nodes-base.googleDrive",
          "position": [
            112,
            96
          ],
          "parameters": {
            "name": "=",
            "driveId": {
              "__rl": true,
              "mode": "list",
              "value": "My Drive",
              "cachedResultUrl": "https://drive.google.com/drive/my-drive",
              "cachedResultName": "My Drive"
            },
            "options": {},
            "folderId": {
              "__rl": true,
              "mode": "url",
              "value": "https://drive.google.com/drive/folders/<FILE_ID>"
            }
          },
          "typeVersion": 3
        },
        {
          "id": "4d3e65f8-ad3b-4056-842d-86cbc32f1da1",
          "name": "Save Public Image Link",
          "type": "n8n-nodes-base.code",
          "position": [
            480,
            96
          ],
          "parameters": {
            "jsCode": "let workflowData = $getWorkflowStaticData('global');\n\n// Extract the file link from Google Drive node\nlet fileLink = $('Upload Picture').first().json.webContentLink || \"No link available\";\nlet fileId = $('Upload Picture').first().json.id || \"No ID available\";\n// Public Link\nlet publicImageLink = `https://drive.google.com/uc?export=view&id=${fileId}`;\nlet deliveryTime = $now\n\n// Store the link in static data\nworkflowData.fileLink = fileLink;\nworkflowData.publicImageLink = publicImageLink;\nworkflowData.deliveryTime = deliveryTime\nreturn {\n    fileLink: fileLink,\n    publicImageLink: publicImageLink,\n    deliveryTime: deliveryTime\n};"
          },
          "typeVersion": 2
        },
        {
          "id": "4a7e36b9-5dc2-4b1a-8094-16716ec5ecd0",
          "name": "Confirmation Driver",
          "type": "n8n-nodes-base.telegram",
          "position": [
            192,
            -1056
          ],
          "webhookId": "012fbfba-9133-4446-b4cd-bbce5b7064f5",
          "parameters": {
            "text": "=<b>📦 Shipment Details</b>\n\n<b>Shipment Number:</b> {{ $json.shipmentNumber }}\n\n<b>📍 Location:</b>  \nLat: <code>{{ $json.gpsLatitude }}</code>  \nLong: <code>{{ $json.gpsLongitude }}</code>  \n\n🖼️ <b>Shipment Photo:</b>  \n<a href=\"{{ $json.fileLink }}\">📷 View Image</a>",
            "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
            "additionalFields": {
              "parse_mode": "HTML",
              "appendAttribution": false
            }
          },
          "notesInFlow": true,
          "typeVersion": 1.2
        },
        {
          "id": "0718a55f-8747-496b-b8e0-479d1f630a11",
          "name": "Distribution Team Confirmation",
          "type": "n8n-nodes-base.gmail",
          "position": [
            464,
            -1136
          ],
          "webhookId": "85e72ad7-effa-4445-911b-90e5f13efa41",
          "parameters": {
            "sendTo": "user@example.com",
            "message": "=<h2>📦 Delivery Confirmation</h2>\n\n<p><b>Shipment Number:</b> {{ $json.shipmentNumber }}</p>\n\n<p>📍 <b>Delivery Location:</b><br>\nLat: <code>{{ $json.gpsLatitude }}</code><br>\nLong: <code>{{ $json.gpsLongitude }}</code>\n</p>\n\n<p>⏳ <b>Delivery Time:</b> {{ $json.deliveryTime }}</p>\n\n<p>🖼️ <b>Shipment Photo:</b><br>\n<img src=\"{{ $json.publicImageLink }}\" width=\"400\">\n</p>\n\n<p>✅ This shipment has been successfully delivered by {{ $('Switch Command').item.json.message.chat.first_name }} (Driver ID: {{ $('Switch Command').item.json.message.chat.username }}).</p>\n",
            "options": {
              "senderName": "LogiGreenTrack Solution",
              "appendAttribution": false
            },
            "subject": "=Delivery Confirmation: {{ $json.shipmentNumber }}"
          },
          "notesInFlow": true,
          "typeVersion": 2.1
        },
        {
          "id": "b503b11d-3101-4b99-866f-978e30b6b236",
          "name": "Extract FileName",
          "type": "n8n-nodes-base.set",
          "position": [
            160,
            272
          ],
          "parameters": {
            "options": {},
            "assignments": {
              "assignments": [
                {
                  "id": "ebee599b-f2d8-4b64-b8a5-eac8bdd698bb",
                  "name": "fileName",
                  "type": "string",
                  "value": "={{ $binary.data.fileName }}"
                }
              ]
            }
          },
          "notesInFlow": true,
          "typeVersion": 3.4
        },
        {
          "id": "86f71ce5-d921-42af-887b-de0d5ce4d914",
          "name": "Store fileName",
          "type": "n8n-nodes-base.code",
          "position": [
            336,
            272
          ],
          "parameters": {
            "jsCode": "let workflowData = $getWorkflowStaticData('global');\nworkflowData.fileName = $input.first().json.fileName\nreturn $json;\n"
          },
          "typeVersion": 2
        },
        {
          "id": "b72dccfe-8e7b-4385-a388-c4900623ada1",
          "name": "Get Picture",
          "type": "n8n-nodes-base.telegram",
          "position": [
            -64,
            96
          ],
          "webhookId": "09e9f612-0040-416a-8cbe-51d041d17436",
          "parameters": {
            "fileId": "={{ $('Telegram Trigger').item.json.message.photo[3].file_id }}",
            "resource": "file",
            "additionalFields": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "877d40cb-38b0-4aa7-ae26-dafb48aa7ff4",
          "name": "Share Picture",
          "type": "n8n-nodes-base.googleDrive",
          "position": [
            304,
            96
          ],
          "parameters": {
            "fileId": {
              "__rl": true,
              "mode": "id",
              "value": "={{ $json.id }}"
            },
            "options": {},
            "operation": "share",
            "permissionsUi": {
              "permissionsValues": {
                "role": "reader",
                "type": "anyone",
                "allowFileDiscovery": true
              }
            }
          },
          "typeVersion": 3
        },
        {
          "id": "80b3a688-c395-49e1-8e51-fa13570316d7",
          "name": "Initiate Workflow Data",
          "type": "n8n-nodes-base.code",
          "notes": "You only need to run the initialization step once per workflow, regardless of the number of Telegram chat IDs. The initialization creates the telegramStates object within the global static data of the workflow. Once that object exists, the workflow will use it to store the state for any chat ID.",
          "position": [
            -1248,
            -1840
          ],
          "parameters": {
            "jsCode": "let workflowStaticData = $getWorkflowStaticData('global');\nif (!workflowStaticData.telegramStates) {\n    workflowStaticData.telegramStates = {}; \n}\nreturn workflowStaticData;"
          },
          "notesInFlow": false,
          "typeVersion": 2
        },
        {
          "id": "9dae14d9-a37d-44c9-8d66-f27a073ab22c",
          "name": "Sticky Note",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -1312,
            -2048
          ],
          "parameters": {
            "width": 440,
            "height": 380,
            "content": "### 0. Initiate Workplace Static Data\nRun it **once** before activating the workflow to initialize workspace data that will be used to **store state flags** and **outputs from users**.\n\n#### How to setup?\n- **Code Node:** do not change anything, just run it\n  [Learn more about the code node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.code)\n"
          },
          "typeVersion": 1
        },
        {
          "id": "e01ad549-e55a-45fa-9010-baaa74cad7df",
          "name": "Switch Command",
          "type": "n8n-nodes-base.switch",
          "position": [
            -368,
            -1536
          ],
          "parameters": {
            "rules": {
              "values": [
                {
                  "outputKey": "1",
                  "conditions": {
                    "options": {
                      "version": 2,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "f2c10700-113d-4062-8c00-af59ccbe3b6f",
                        "operator": {
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $json.message.text }}",
                        "rightValue": "/addShipment"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "2",
                  "conditions": {
                    "options": {
                      "version": 2,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "d09b6282-e9f8-4e43-b3db-9edae88cd634",
                        "operator": {
                          "name": "filter.operator.equals",
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $json.message.text }}",
                        "rightValue": "/addGPS"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "3",
                  "conditions": {
                    "options": {
                      "version": 2,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "2637a054-0892-411c-b659-b878219a26ab",
                        "operator": {
                          "name": "filter.operator.equals",
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $json.message.text }}",
                        "rightValue": "/sendPhoto"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "4",
                  "conditions": {
                    "options": {
                      "version": 2,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "5f3223e6-da0a-4056-8843-7778cf9de0a7",
                        "operator": {
                          "name": "filter.operator.equals",
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $json.message.text }}",
                        "rightValue": "/sendConfirmation"
                      }
                    ]
                  },
                  "renameOutput": true
                }
              ]
            },
            "options": {
              "fallbackOutput": "extra"
            }
          },
          "notesInFlow": true,
          "typeVersion": 3.2
        },
        {
          "id": "02b53747-c391-4a7d-ae65-dee74c504d73",
          "name": "Sticky Note1",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -816,
            -2048
          ],
          "parameters": {
            "color": 7,
            "width": 620,
            "height": 740,
            "content": "### 1. Workflow Trigger with Telegram Message\nThe workflow is triggered by a user message. The second is checking if the message is a command (starting with \"/\") to route it to the proper block.\n\n#### How to setup?\n- **Telegram Trigger Node:** set up your telegram bot credentials\n[Learn more about the Telegram Trigger Node](https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.telegramtrigger/)\n"
          },
          "typeVersion": 1
        },
        {
          "id": "b294c73c-8b35-4def-8a3d-da2573a74d4c",
          "name": "Load Delivery Information",
          "type": "n8n-nodes-base.googleSheets",
          "position": [
            192,
            -1200
          ],
          "parameters": {
            "columns": {
              "value": {
                "recordTime": "={{ $now }}",
                "gpsLatitude": "={{ $json.gpsLatitude }}",
                "cargoPicture": "={{ $json.publicImageLink }}",
                "deliveryTime": "={{ $json.deliveryTime }}",
                "gpsLongitude": "={{ $json.gpsLongitude }}",
                "shipmentNumber": "={{ $json.shipmentNumber }}"
              },
              "schema": [
                {
                  "id": "shipmentNumber",
                  "type": "string",
                  "display": true,
                  "required": false,
                  "displayName": "shipmentNumber",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "recordTime",
                  "type": "string",
                  "display": true,
                  "required": false,
                  "displayName": "recordTime",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "gpsLatitude",
                  "type": "string",
                  "display": true,
                  "required": false,
                  "displayName": "gpsLatitude",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "gpsLongitude",
                  "type": "string",
                  "display": true,
                  "required": false,
                  "displayName": "gpsLongitude",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "cargoPicture",
                  "type": "string",
                  "display": true,
                  "required": false,
                  "displayName": "cargoPicture",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "deliveryTime",
                  "type": "string",
                  "display": true,
                  "required": false,
                  "displayName": "deliveryTime",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                }
              ],
              "mappingMode": "defineBelow",
              "matchingColumns": [],
              "attemptToConvertTypes": false,
              "convertFieldsToString": false
            },
            "options": {},
            "operation": "append",
            "sheetName": {
              "__rl": true,
              "mode": "list",
              "value": "gid=0",
              "cachedResultUrl": "https://docs.google.com/spreadsheets/d/<FILE_ID>/edit#gid=0",
              "cachedResultName": "="
            },
            "documentId": {
              "__rl": true,
              "mode": "list",
              "value": "=",
              "cachedResultUrl": "https://docs.google.com/spreadsheets/d/<FILE_ID>/edit?usp=drivesdk",
              "cachedResultName": "="
            }
          },
          "notesInFlow": true,
          "typeVersion": 4.5
        }
      ],
      "pinData": {},
      "connections": {
        "Command?": {
          "main": [
            [
              {
                "node": "Switch Command",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Waiting Conditions",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "waitingGPS": {
          "main": [
            [
              {
                "node": "addGPS",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Check State": {
          "main": [
            [
              {
                "node": "Shipment Number",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Store GPS Location",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Get Picture",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Instructions",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Get Picture": {
          "main": [
            [
              {
                "node": "Upload Picture",
                "type": "main",
                "index": 0
              },
              {
                "node": "Extract FileName",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "waitingPhoto": {
          "main": [
            [
              {
                "node": "sendPhoto",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Share Picture": {
          "main": [
            [
              {
                "node": "Save Public Image Link",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Switch Command": {
          "main": [
            [
              {
                "node": "waitingShipmentNumber",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "waitingGPS",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "waitingPhoto",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Load Workspace Data",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Welcome Message",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Upload Picture": {
          "main": [
            [
              {
                "node": "Share Picture",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Shipment Number": {
          "main": [
            [
              {
                "node": "addShipmentNumber result",
                "type": "main",
                "index": 0
              },
              {
                "node": "Store Shipment",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Extract FileName": {
          "main": [
            [
              {
                "node": "Store fileName",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Telegram Trigger": {
          "main": [
            [
              {
                "node": "Command?",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Store GPS Location": {
          "main": [
            [
              {
                "node": "addGPS result",
                "type": "main",
                "index": 0
              },
              {
                "node": "Store GPS",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Waiting Conditions": {
          "main": [
            [
              {
                "node": "Check State",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Load Workspace Data": {
          "main": [
            [
              {
                "node": "Load Delivery Information",
                "type": "main",
                "index": 0
              },
              {
                "node": "Confirmation Driver",
                "type": "main",
                "index": 0
              },
              {
                "node": "Distribution Team Confirmation",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "waitingShipmentNumber": {
          "main": [
            [
              {
                "node": "addShipmentNumber",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Save Public Image Link": {
          "main": [
            [
              {
                "node": "addPhoto result",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Distribution Team Confirmation": {
          "main": [
            [
              {
                "node": "Clear State",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    },
    "lastUpdatedBy": 29,
    "workflowInfo": {
      "nodeCount": 37,
      "nodeTypes": {
        "n8n-nodes-base.if": {
          "count": 1
        },
        "n8n-nodes-base.set": {
          "count": 3
        },
        "n8n-nodes-base.code": {
          "count": 11
        },
        "n8n-nodes-base.gmail": {
          "count": 1
        },
        "n8n-nodes-base.switch": {
          "count": 2
        },
        "n8n-nodes-base.telegram": {
          "count": 10
        },
        "n8n-nodes-base.stickyNote": {
          "count": 5
        },
        "n8n-nodes-base.googleDrive": {
          "count": 2
        },
        "n8n-nodes-base.googleSheets": {
          "count": 1
        },
        "n8n-nodes-base.telegramTrigger": {
          "count": 1
        }
      }
    },
    "status": "published",
    "user": {
      "name": "Samir Saci",
      "username": "samirsaci",
      "bio": "Automation, AI and Analytics for Supply Chain Operations, Business Optimisation and Content Creation for Marketing.\nLinkedin: www.linkedin.com/in/samir-saci",
      "verified": true,
      "links": [
        "https://linktr.ee/samirsaci"
      ],
      "avatar": "https://gravatar.com/avatar/d3644476a59e5813c5f00a7933977e2be8805cbdc574958b9cc6a53b45bedd6a?r=pg&d=retro&size=200"
    },
    "nodes": [
      {
        "id": 18,
        "icon": "file:googleSheets.svg",
        "name": "n8n-nodes-base.googleSheets",
        "codex": {
          "data": {
            "alias": [
              "CSV",
              "Sheet",
              "Spreadsheet",
              "GS"
            ],
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/love-at-first-sight-ricardos-n8n-journey/",
                  "icon": "❤️",
                  "label": "Love at first sight: Ricardo’s n8n journey"
                },
                {
                  "url": "https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/",
                  "icon": "🧬",
                  "label": "Why business process automation with n8n can change your daily life"
                },
                {
                  "url": "https://n8n.io/blog/automatically-adding-expense-receipts-to-google-sheets-with-telegram-mindee-twilio-and-n8n/",
                  "icon": "🧾",
                  "label": "Automatically Adding Expense Receipts to Google Sheets with Telegram, Mindee, Twilio, and n8n"
                },
                {
                  "url": "https://n8n.io/blog/supercharging-your-conference-registration-process-with-n8n/",
                  "icon": "🎫",
                  "label": "Supercharging your conference registration process with n8n"
                },
                {
                  "url": "https://n8n.io/blog/creating-triggers-for-n8n-workflows-using-polling/",
                  "icon": "⏲",
                  "label": "Creating triggers for n8n workflows using polling"
                },
                {
                  "url": "https://n8n.io/blog/no-code-ecommerce-workflow-automations/",
                  "icon": "store",
                  "label": "6 e-commerce workflows to power up your Shopify s"
                },
                {
                  "url": "https://n8n.io/blog/migrating-community-metrics-to-orbit-using-n8n/",
                  "icon": "📈",
                  "label": "Migrating Community Metrics to Orbit using n8n"
                },
                {
                  "url": "https://n8n.io/blog/automate-google-apps-for-productivity/",
                  "icon": "💡",
                  "label": "15 Google apps you can combine and automate to increase productivity"
                },
                {
                  "url": "https://n8n.io/blog/your-business-doesnt-need-you-to-operate/",
                  "icon": " 🖥️",
                  "label": "Hey founders! Your business doesn't need you to operate"
                },
                {
                  "url": "https://n8n.io/blog/how-honest-burgers-use-automation-to-save-100k-per-year/",
                  "icon": "🍔",
                  "label": "How Honest Burgers Use Automation to Save $100k per year"
                },
                {
                  "url": "https://n8n.io/blog/how-a-digital-strategist-uses-n8n-for-online-marketing/",
                  "icon": "💻",
                  "label": "How a digital strategist uses n8n for online marketing"
                },
                {
                  "url": "https://n8n.io/blog/why-this-product-manager-loves-workflow-automation-with-n8n/",
                  "icon": "🧠",
                  "label": "Why this Product Manager loves workflow automation with n8n"
                },
                {
                  "url": "https://n8n.io/blog/sending-automated-congratulations-with-google-sheets-twilio-and-n8n/",
                  "icon": "🙌",
                  "label": "Sending Automated Congratulations with Google Sheets, Twilio, and n8n "
                },
                {
                  "url": "https://n8n.io/blog/how-a-membership-development-manager-automates-his-work-and-investments/",
                  "icon": "📈",
                  "label": "How a Membership Development Manager automates his work and investments"
                },
                {
                  "url": "https://n8n.io/blog/aws-workflow-automation/",
                  "label": "7 no-code workflow automations for Amazon Web Services"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
                }
              ]
            },
            "categories": [
              "Data & Storage",
              "Productivity"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"input\",\"output\"]",
        "defaults": {
          "name": "Google Sheets"
        },
        "iconData": {
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IxM2gtNi42NzJ6bTAgNS4xNjNoNi42NzJ2Mi4yMTJoLTYuNjcyeiIvPjwvZz48L3N2Zz4="
        },
        "displayName": "Google Sheets",
        "typeVersion": 5,
        "nodeCategories": [
          {
            "id": 3,
            "name": "Data & Storage"
          },
          {
            "id": 4,
            "name": "Productivity"
          }
        ]
      },
      {
        "id": 20,
        "icon": "fa:map-signs",
        "name": "n8n-nodes-base.if",
        "codex": {
          "data": {
            "alias": [
              "Router",
              "Filter",
              "Condition",
              "Logic",
              "Boolean",
              "Branch"
            ],
            "details": "The IF node can be used to implement binary conditional logic in your workflow. You can set up one-to-many conditions to evaluate each item of data being inputted into the node. That data will either evaluate to TRUE or FALSE and route out of the node accordingly.\n\nThis node has multiple types of conditions: Bool, String, Number, and Date & Time.",
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/learn-to-automate-your-factorys-incident-reporting-a-step-by-step-guide/",
                  "icon": "🏭",
                  "label": "Learn to Automate Your Factory's Incident Reporting: A Step by Step Guide"
                },
                {
                  "url": "https://n8n.io/blog/2021-the-year-to-automate-the-new-you-with-n8n/",
                  "icon": "☀️",
                  "label": "2021: The Year to Automate the New You with n8n"
                },
                {
                  "url": "https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/",
                  "icon": "🧬",
                  "label": "Why business process automation with n8n can change your daily life"
                },
                {
                  "url": "https://n8n.io/blog/create-a-toxic-language-detector-for-telegram/",
                  "icon": "🤬",
                  "label": "Create a toxic language detector for Telegram in 4 step"
                },
                {
                  "url": "https://n8n.io/blog/no-code-ecommerce-workflow-automations/",
                  "icon": "store",
                  "label": "6 e-commerce workflows to power up your Shopify s"
                },
                {
                  "url": "https://n8n.io/blog/how-to-build-a-low-code-self-hosted-url-shortener/",
                  "icon": "🔗",
                  "label": "How to build a low-code, self-hosted URL shortener in 3 steps"
                },
                {
                  "url": "https://n8n.io/blog/automate-your-data-processing-pipeline-in-9-steps-with-n8n/",
                  "icon": "⚙️",
                  "label": "Automate your data processing pipeline in 9 steps"
                },
                {
                  "url": "https://n8n.io/blog/how-to-get-started-with-crm-automation-and-no-code-workflow-ideas/",
                  "icon": "👥",
                  "label": "How to get started with CRM automation (with 3 no-code workflow ideas"
                },
                {
                  "url": "https://n8n.io/blog/5-tasks-you-can-automate-with-notion-api/",
                  "icon": "⚡️",
                  "label": "5 tasks you can automate with the new Notion API "
                },
                {
                  "url": "https://n8n.io/blog/automate-google-apps-for-productivity/",
                  "icon": "💡",
                  "label": "15 Google apps you can combine and automate to increase productivity"
                },
                {
                  "url": "https://n8n.io/blog/automation-for-maintainers-of-open-source-projects/",
                  "icon": "🏷️",
                  "label": "How to automatically manage contributions to open-source projects"
                },
                {
                  "url": "https://n8n.io/blog/how-uproc-scraped-a-multi-page-website-with-a-low-code-workflow/",
                  "icon": " 🕸️",
                  "label": "How uProc scraped a multi-page website with a low-code workflow"
                },
                {
                  "url": "https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/",
                  "icon": "🤖",
                  "label": "5 workflow automations for Mattermost that we love at n8n"
                },
                {
                  "url": "https://n8n.io/blog/why-this-product-manager-loves-workflow-automation-with-n8n/",
                  "icon": "🧠",
                  "label": "Why this Product Manager loves workflow automation with n8n"
                },
                {
                  "url": "https://n8n.io/blog/sending-automated-congratulations-with-google-sheets-twilio-and-n8n/",
                  "icon": "🙌",
                  "label": "Sending Automated Congratulations with Google Sheets, Twilio, and n8n "
                },
                {
                  "url": "https://n8n.io/blog/how-to-set-up-a-ci-cd-pipeline-with-no-code/",
                  "icon": "🎡",
                  "label": "How to set up a no-code CI/CD pipeline with GitHub and TravisCI"
                },
                {
                  "url": "https://n8n.io/blog/benefits-of-automation-and-n8n-an-interview-with-hubspots-hugh-durkin/",
                  "icon": "🎖",
                  "label": "Benefits of automation and n8n: An interview with HubSpot's Hugh Durkin"
                },
                {
                  "url": "https://n8n.io/blog/aws-workflow-automation/",
                  "label": "7 no-code workflow automations for Amazon Web Services"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.if/"
                }
              ]
            },
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Flow"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "If",
          "color": "#408000"
        },
        "iconData": {
          "icon": "map-signs",
          "type": "icon"
        },
        "displayName": "If",
        "typeVersion": 2,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "id": 38,
        "icon": "fa:pen",
        "name": "n8n-nodes-base.set",
        "codex": {
          "data": {
            "alias": [
              "Set",
              "JS",
              "JSON",
              "Filter",
              "Transform",
              "Map"
            ],
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/learn-to-automate-your-factorys-incident-reporting-a-step-by-step-guide/",
                  "icon": "🏭",
                  "label": "Learn to Automate Your Factory's Incident Reporting: A Step by Step Guide"
                },
                {
                  "url": "https://n8n.io/blog/2021-the-year-to-automate-the-new-you-with-n8n/",
                  "icon": "☀️",
                  "label": "2021: The Year to Automate the New You with n8n"
                },
                {
                  "url": "https://n8n.io/blog/automatically-pulling-and-visualizing-data-with-n8n/",
                  "icon": "📈",
                  "label": "Automatically pulling and visualizing data with n8n"
                },
                {
                  "url": "https://n8n.io/blog/database-monitoring-and-alerting-with-n8n/",
                  "icon": "📡",
                  "label": "Database Monitoring and Alerting with n8n"
                },
                {
                  "url": "https://n8n.io/blog/automatically-adding-expense-receipts-to-google-sheets-with-telegram-mindee-twilio-and-n8n/",
                  "icon": "🧾",
                  "label": "Automatically Adding Expense Receipts to Google Sheets with Telegram, Mindee, Twilio, and n8n"
                },
                {
                  "url": "https://n8n.io/blog/no-code-ecommerce-workflow-automations/",
                  "icon": "store",
                  "label": "6 e-commerce workflows to power up your Shopify s"
                },
                {
                  "url": "https://n8n.io/blog/how-to-build-a-low-code-self-hosted-url-shortener/",
                  "icon": "🔗",
                  "label": "How to build a low-code, self-hosted URL shortener in 3 steps"
                },
                {
                  "url": "https://n8n.io/blog/automate-your-data-processing-pipeline-in-9-steps-with-n8n/",
                  "icon": "⚙️",
                  "label": "Automate your data processing pipeline in 9 steps"
                },
                {
                  "url": "https://n8n.io/blog/how-to-get-started-with-crm-automation-and-no-code-workflow-ideas/",
                  "icon": "👥",
                  "label": "How to get started with CRM automation (with 3 no-code workflow ideas"
                },
                {
                  "url": "https://n8n.io/blog/5-tasks-you-can-automate-with-notion-api/",
                  "icon": "⚡️",
                  "label": "5 tasks you can automate with the new Notion API "
                },
                {
                  "url": "https://n8n.io/blog/automate-google-apps-for-productivity/",
                  "icon": "💡",
                  "label": "15 Google apps you can combine and automate to increase productivity"
                },
                {
                  "url": "https://n8n.io/blog/how-uproc-scraped-a-multi-page-website-with-a-low-code-workflow/",
                  "icon": " 🕸️",
                  "label": "How uProc scraped a multi-page website with a low-code workflow"
                },
                {
                  "url": "https://n8n.io/blog/building-an-expense-tracking-app-in-10-minutes/",
                  "icon": "📱",
                  "label": "Building an expense tracking app in 10 minutes"
                },
                {
                  "url": "https://n8n.io/blog/the-ultimate-guide-to-automate-your-video-collaboration-with-whereby-mattermost-and-n8n/",
                  "icon": "📹",
                  "label": "The ultimate guide to automate your video collaboration with Whereby, Mattermost, and n8n"
                },
                {
                  "url": "https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/",
                  "icon": "🤖",
                  "label": "5 workflow automations for Mattermost that we love at n8n"
                },
                {
                  "url": "https://n8n.io/blog/learn-to-build-powerful-api-endpoints-using-webhooks/",
                  "icon": "🧰",
                  "label": "Learn to Build Powerful API Endpoints Using Webhooks"
                },
                {
                  "url": "https://n8n.io/blog/how-a-membership-development-manager-automates-his-work-and-investments/",
                  "icon": "📈",
                  "label": "How a Membership Development Manager automates his work and investments"
                },
                {
                  "url": "https://n8n.io/blog/a-low-code-bitcoin-ticker-built-with-questdb-and-n8n-io/",
                  "icon": "📈",
                  "label": "A low-code bitcoin ticker built with QuestDB and n8n.io"
                },
                {
                  "url": "https://n8n.io/blog/how-to-set-up-a-ci-cd-pipeline-with-no-code/",
                  "icon": "🎡",
                  "label": "How to set up a no-code CI/CD pipeline with GitHub and TravisCI"
                },
                {
                  "url": "https://n8n.io/blog/benefits-of-automation-and-n8n-an-interview-with-hubspots-hugh-durkin/",
                  "icon": "🎖",
                  "label": "Benefits of automation and n8n: An interview with HubSpot's Hugh Durkin"
                },
                {
                  "url": "https://n8n.io/blog/how-goomer-automated-their-operations-with-over-200-n8n-workflows/",
                  "icon": "🛵",
                  "label": "How Goomer automated their operations with over 200 n8n workflows"
                },
                {
                  "url": "https://n8n.io/blog/aws-workflow-automation/",
                  "label": "7 no-code workflow automations for Amazon Web Services"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.set/"
                }
              ]
            },
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Data Transformation"
              ]
            }
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Edit Fields"
        },
        "iconData": {
          "icon": "pen",
          "type": "icon"
        },
        "displayName": "Edit Fields (Set)",
        "typeVersion": 3,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "id": 49,
        "icon": "file:telegram.svg",
        "name": "n8n-nodes-base.telegram",
        "codex": {
          "data": {
            "alias": [
              "human",
              "form",
              "wait",
              "hitl",
              "approval"
            ],
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/",
                  "icon": "🧬",
                  "label": "Why business process automation with n8n can change your daily life"
                },
                {
                  "url": "https://n8n.io/blog/create-a-toxic-language-detector-for-telegram/",
                  "icon": "🤬",
                  "label": "Create a toxic language detector for Telegram in 4 step"
                },
                {
                  "url": "https://n8n.io/blog/automatically-adding-expense-receipts-to-google-sheets-with-telegram-mindee-twilio-and-n8n/",
                  "icon": "🧾",
                  "label": "Automatically Adding Expense Receipts to Google Sheets with Telegram, Mindee, Twilio, and n8n"
                },
                {
                  "url": "https://n8n.io/blog/no-code-ecommerce-workflow-automations/",
                  "icon": "store",
                  "label": "6 e-commerce workflows to power up your Shopify s"
                },
                {
                  "url": "https://n8n.io/blog/world-poetry-day-workflow/",
                  "icon": "📜",
                  "label": "Celebrating World Poetry Day with a daily poem in Telegram"
                },
                {
                  "url": "https://n8n.io/blog/using-automation-to-boost-productivity-in-the-workplace/",
                  "icon": "💪",
                  "label": "Using Automation to Boost Productivity in the Workplace"
                },
                {
                  "url": "https://n8n.io/blog/how-to-set-up-a-ci-cd-pipeline-with-no-code/",
                  "icon": "🎡",
                  "label": "How to set up a no-code CI/CD pipeline with GitHub and TravisCI"
                },
                {
                  "url": "https://n8n.io/blog/creating-scheduled-text-affirmations-with-n8n/",
                  "icon": "🤟",
                  "label": "Creating scheduled text affirmations with n8n"
                },
                {
                  "url": "https://n8n.io/blog/creating-telegram-bots-with-n8n-a-no-code-platform/",
                  "icon": "💬",
                  "label": "Creating Telegram Bots with n8n, a No-Code Platform"
                },
                {
                  "url": "https://n8n.io/blog/aws-workflow-automation/",
                  "label": "7 no-code workflow automations for Amazon Web Services"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.telegram/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/telegram/"
                }
              ]
            },
            "categories": [
              "Communication",
              "HITL"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "HITL": [
                "Human in the Loop"
              ]
            }
          }
        },
        "group": "[\"output\"]",
        "defaults": {
          "name": "Telegram"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vc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MjcuMzg2LS4wNDUuNjc4LS4xODQgMi45NzgtNS43MDYgMjUuMTk4LTUuNzA2IDI1LjE5OHMtLjMzIDEuMy0xLjUxNCAxLjM0NWMtLjQzMi4wMTYtLjk1Ni0uMDcxLTEuNTgyLS42MS0yLjMyMy0xLjk5OC0xMC4zNTItNy4zOTQtMTIuMTI2LTguNThhLjM0LjM0IDAgMCAxLS4xNDYtLjIzOWMtLjAyNS0uMTI1LjEwOC0uMjguMTA4LS4yOHMxMy45OC0xMi40MjcgMTQuMzUyLTEzLjczMWMuMDI5LS4xMDEtLjA3OS0uMTUxLS4yMjYtLjEwNy0uOTI5LjM0Mi0xNy4wMjUgMTAuNTA2LTE4LjgwMSAxMS42MjktLjEwNC4wNjYtLjM5NS4wMjMtLjM5NS4wMjMiLz48L2c+PC9zeW1ib2w+PC9zdmc+"
        },
        "displayName": "Telegram",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 6,
            "name": "Communication"
          },
          {
            "id": 28,
            "name": "HITL"
          }
        ]
      },
      {
        "id": 50,
        "icon": "file:telegram.svg",
        "name": "n8n-nodes-base.telegramTrigger",
        "codex": {
          "data": {
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/create-a-toxic-language-detector-for-telegram/",
                  "icon": "🤬",
                  "label": "Create a toxic language detector for Telegram in 4 step"
                },
                {
                  "url": "https://n8n.io/blog/automatically-adding-expense-receipts-to-google-sheets-with-telegram-mindee-twilio-and-n8n/",
                  "icon": "🧾",
                  "label": "Automatically Adding Expense Receipts to Google Sheets with Telegram, Mindee, Twilio, and n8n"
                },
                {
                  "url": "https://n8n.io/blog/how-to-set-up-a-ci-cd-pipeline-with-no-code/",
                  "icon": "🎡",
                  "label": "How to set up a no-code CI/CD pipeline with GitHub and TravisCI"
                },
                {
                  "url": "https://n8n.io/blog/creating-telegram-bots-with-n8n-a-no-code-platform/",
                  "icon": "💬",
                  "label": "Creating Telegram Bots with n8n, a No-Code Platform"
                },
                {
                  "url": "https://n8n.io/blog/aws-workflow-automation/",
                  "label": "7 no-code workflow automations for Amazon Web Services"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.telegramtrigger/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/telegram/"
                }
              ]
            },
            "categories": [
              "Communication"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"trigger\"]",
        "defaults": {
          "name": "Telegram Trigger"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiB2aWV3Qm94PSIwIDAgNjYgNjYiPjx1c2UgeGxpbms6aHJlZj0iI2EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9ImEiIG92ZXJmbG93PSJ2aXNpYmxlIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0ibm9uZSI+PHBhdGggZmlsbD0iIzM3YWVlMiIgZD0iTTAgMzJjMCAxNy42NzMgMTQuMzI3IDMyIDMyIDMyczMyLTE0LjMyNyAzMi0zMlM0OS42NzMgMCAzMiAwIDAgMTQuMzI3IDAgMzIiLz48cGF0aCBmaWxsPSIjYzhkYWVhIiBkPSJtMjEuNjYxIDM0LjMzOCAzLjc5NyAxMC41MDhzLjQ3NS45ODMuOTgzLjk4MyA4LjA2OC03Ljg2NCA4LjA2OC03Ljg2NGw4LjQwNy0xNi4yMzctMjEuMTE5IDkuODk4eiIvPjxwYXRoIGZpbGw9IiNhOWM2ZDgiIGQ9Im0yNi42OTUgMzcuMDM0LS43MjkgNy43NDZzLS4zMDUgMi4zNzMgMi4wNjggMGw0LjY0NC00LjIwMyIvPjxwYXRoIGQ9Im0yMS43MyAzNC43MTItNy44MDktMi41NDVzLS45MzItLjM3OC0uNjMzLTEuMjM3Yy4wNjItLjE3Ny4xODYtLjMyOC41NTktLjU4OCAxLjczMS0xLjIwNiAzMi4wMjgtMTIuMDk2IDMyLjAyOC0xMi4wOTZzLjg1Ni0uMjg4IDEuMzYxLS4wOTdjLjIzMS4wODguMzc4LjE4Ny41MDMuNTQ4LjA0NS4xMzIuMDcxLjQxMS4wNjguNjg5LS4wMDMuMjAxLS4wMjcuMzg2LS4wNDUuNjc4LS4xODQgMi45NzgtNS43MDYgMjUuMTk4LTUuNzA2IDI1LjE5OHMtLjMzIDEuMy0xLjUxNCAxLjM0NWMtLjQzMi4wMTYtLjk1Ni0uMDcxLTEuNTgyLS42MS0yLjMyMy0xLjk5OC0xMC4zNTItNy4zOTQtMTIuMTI2LTguNThhLjM0LjM0IDAgMCAxLS4xNDYtLjIzOWMtLjAyNS0uMTI1LjEwOC0uMjguMTA4LS4yOHMxMy45OC0xMi40MjcgMTQuMzUyLTEzLjczMWMuMDI5LS4xMDEtLjA3OS0uMTUxLS4yMjYtLjEwNy0uOTI5LjM0Mi0xNy4wMjUgMTAuNTA2LTE4LjgwMSAxMS42MjktLjEwNC4wNjYtLjM5NS4wMjMtLjM5NS4wMjMiLz48L2c+PC9zeW1ib2w+PC9zdmc+"
        },
        "displayName": "Telegram Trigger",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 6,
            "name": "Communication"
          }
        ]
      },
      {
        "id": 58,
        "icon": "file:googleDrive.svg",
        "name": "n8n-nodes-base.googleDrive",
        "codex": {
          "data": {
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/your-business-doesnt-need-you-to-operate/",
                  "icon": " 🖥️",
                  "label": "Hey founders! Your business doesn't need you to operate"
                },
                {
                  "url": "https://n8n.io/blog/why-this-product-manager-loves-workflow-automation-with-n8n/",
                  "icon": "🧠",
                  "label": "Why this Product Manager loves workflow automation with n8n"
                },
                {
                  "url": "https://n8n.io/blog/aws-workflow-automation/",
                  "label": "7 no-code workflow automations for Amazon Web Services"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googledrive/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
                }
              ]
            },
            "categories": [
              "Data & Storage"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Google Drive"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiB2aWV3Qm94PSIwIDAgODEgNzMiPjx1c2UgeGxpbms6aHJlZj0iI2EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9ImEiIG92ZXJmbG93PSJ2aXNpYmxlIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0ibm9uZSI+PHBhdGggZmlsbD0iIzAwNjZkYSIgZD0ibTYuMDQ4IDYxLjI2IDMuNTI4IDYuMDk0Yy43MzMgMS4yODMgMS43ODcgMi4yOTEgMy4wMjQgMy4wMjRsMTIuNi0yMS44MUgwYTguMyA4LjMgMCAwIDAgMS4xIDQuMTI0eiIvPjxwYXRoIGZpbGw9IiMwMGFjNDciIGQ9Ik00MCAyMi45MSAyNy40IDEuMWMtMS4yMzcuNzMzLTIuMjkxIDEuNzQxLTMuMDI0IDMuMDI0TDEuMSA0NC40NDVBOC4zIDguMyAwIDAgMCAwIDQ4LjU2OGgyNS4yeiIvPjxwYXRoIGZpbGw9IiNlYTQzMzUiIGQ9Ik02Ny40IDcwLjM3OGMxLjIzNy0uNzMzIDIuMjkxLTEuNzQxIDMuMDI0LTMuMDI0bDEuNDY2LTIuNTIgNy4wMS0xMi4xNDJhOC4zIDguMyAwIDAgMCAxLjEtNC4xMjRINTQuNzk4bDUuMzYzIDEwLjUzOHoiLz48cGF0aCBmaWxsPSIjMDA4MzJkIiBkPSJNNDAgMjIuOTEgNTIuNiAxLjFDNTEuMzYzLjM2NyA0OS45NDMgMCA0OC40NzcgMEgzMS41MjRjLTEuNDY2IDAtMi44ODcuNDEyLTQuMTI0IDEuMXoiLz48cGF0aCBmaWxsPSIjMjY4NGZjIiBkPSJNNTQuNzk5IDQ4LjU2OEgyNS4ybC0xMi42IDIxLjgxYzEuMjM3LjczMyAyLjY1NyAxLjEgNC4xMjQgMS4xaDQ2LjU1MmMxLjQ2NiAwIDIuODg3LS40MTIgNC4xMjQtMS4xeiIvPjxwYXRoIGZpbGw9IiNmZmJhMDAiIGQ9Ik02Ny4yNjIgMjQuMjg0IDU1LjYyNCA0LjEyNEM1NC44OTEgMi44NDEgNTMuODM3IDEuODMzIDUyLjYgMS4xTDQwIDIyLjkxbDE0LjggMjUuNjU5aDI1LjE1NWE4LjMgOC4zIDAgMCAwLTEuMS00LjEyNHoiLz48L2c+PC9zeW1ib2w+PC9zdmc+"
        },
        "displayName": "Google Drive",
        "typeVersion": 3,
        "nodeCategories": [
          {
            "id": 3,
            "name": "Data & Storage"
          }
        ]
      },
      {
        "id": 112,
        "icon": "fa:map-signs",
        "name": "n8n-nodes-base.switch",
        "codex": {
          "data": {
            "alias": [
              "Router",
              "If",
              "Path",
              "Filter",
              "Condition",
              "Logic",
              "Branch",
              "Case"
            ],
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/2021-the-year-to-automate-the-new-you-with-n8n/",
                  "icon": "☀️",
                  "label": "2021: The Year to Automate the New You with n8n"
                },
                {
                  "url": "https://n8n.io/blog/how-to-get-started-with-crm-automation-and-no-code-workflow-ideas/",
                  "icon": "👥",
                  "label": "How to get started with CRM automation (with 3 no-code workflow ideas"
                },
                {
                  "url": "https://n8n.io/blog/build-your-own-virtual-assistant-with-n8n-a-step-by-step-guide/",
                  "icon": "👦",
                  "label": "Build your own virtual assistant with n8n: A step by step guide"
                },
                {
                  "url": "https://n8n.io/blog/automation-for-maintainers-of-open-source-projects/",
                  "icon": "🏷️",
                  "label": "How to automatically manage contributions to open-source projects"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.switch/"
                }
              ]
            },
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Flow"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Switch",
          "color": "#506000"
        },
        "iconData": {
          "icon": "map-signs",
          "type": "icon"
        },
        "displayName": "Switch",
        "typeVersion": 3,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "id": 356,
        "icon": "file:gmail.svg",
        "name": "n8n-nodes-base.gmail",
        "codex": {
          "data": {
            "alias": [
              "email",
              "human",
              "form",
              "wait",
              "hitl",
              "approval"
            ],
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/",
                  "icon": "🧬",
                  "label": "Why business process automation with n8n can change your daily life"
                },
                {
                  "url": "https://n8n.io/blog/supercharging-your-conference-registration-process-with-n8n/",
                  "icon": "🎫",
                  "label": "Supercharging your conference registration process with n8n"
                },
                {
                  "url": "https://n8n.io/blog/no-code-ecommerce-workflow-automations/",
                  "icon": "store",
                  "label": "6 e-commerce workflows to power up your Shopify s"
                },
                {
                  "url": "https://n8n.io/blog/how-to-get-started-with-crm-automation-and-no-code-workflow-ideas/",
                  "icon": "👥",
                  "label": "How to get started with CRM automation (with 3 no-code workflow ideas"
                },
                {
                  "url": "https://n8n.io/blog/automate-google-apps-for-productivity/",
                  "icon": "💡",
                  "label": "15 Google apps you can combine and automate to increase productivity"
                },
                {
                  "url": "https://n8n.io/blog/your-business-doesnt-need-you-to-operate/",
                  "icon": " 🖥️",
                  "label": "Hey founders! Your business doesn't need you to operate"
                },
                {
                  "url": "https://n8n.io/blog/using-automation-to-boost-productivity-in-the-workplace/",
                  "icon": "💪",
                  "label": "Using Automation to Boost Productivity in the Workplace"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.gmail/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
                }
              ]
            },
            "categories": [
              "Communication",
              "HITL"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "HITL": [
                "Human in the Loop"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Gmail"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMTkzIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PHBhdGggZmlsbD0iIzQyODVGNCIgZD0iTTU4LjE4MiAxOTIuMDVWOTMuMTRMMjcuNTA3IDY1LjA3NyAwIDQ5LjUwNHYxMjUuMDkxYzAgOS42NTggNy44MjUgMTcuNDU1IDE3LjQ1NSAxNy40NTV6Ii8+PHBhdGggZmlsbD0iIzM0QTg1MyIgZD0iTTE5Ny44MTggMTkyLjA1aDQwLjcyN2M5LjY1OSAwIDE3LjQ1NS03LjgyNiAxNy40NTUtMTcuNDU1VjQ5LjUwNWwtMzEuMTU2IDE3LjgzNy0yNy4wMjYgMjUuNzk4eiIvPjxwYXRoIGZpbGw9IiNFQTQzMzUiIGQ9Im01OC4xODIgOTMuMTQtNC4xNzQtMzguNjQ3IDQuMTc0LTM2Ljk4OUwxMjggNjkuODY4bDY5LjgxOC01Mi4zNjQgNC42NyAzNC45OTItNC42NyA0MC42NDRMMTI4IDE0NS41MDR6Ii8+PHBhdGggZmlsbD0iI0ZCQkMwNCIgZD0iTTE5Ny44MTggMTcuNTA0VjkzLjE0TDI1NiA0OS41MDRWMjYuMjMxYzAtMjEuNTg1LTI0LjY0LTMzLjg5LTQxLjg5LTIwLjk0NXoiLz48cGF0aCBmaWxsPSIjQzUyMjFGIiBkPSJtMCA0OS41MDQgMjYuNzU5IDIwLjA3TDU4LjE4MiA5My4xNFYxNy41MDRMNDEuODkgNS4yODZDMjQuNjEtNy42NiAwIDQuNjQ2IDAgMjYuMjN6Ii8+PC9zdmc+"
        },
        "displayName": "Gmail",
        "typeVersion": 2,
        "nodeCategories": [
          {
            "id": 6,
            "name": "Communication"
          },
          {
            "id": 28,
            "name": "HITL"
          }
        ]
      },
      {
        "id": 565,
        "icon": "fa:sticky-note",
        "name": "n8n-nodes-base.stickyNote",
        "codex": {
          "data": {
            "alias": [
              "Comments",
              "Notes",
              "Sticky"
            ],
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Helpers"
              ]
            }
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Sticky Note",
          "color": "#FFD233"
        },
        "iconData": {
          "icon": "sticky-note",
          "type": "icon"
        },
        "displayName": "Sticky Note",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "id": 834,
        "icon": "file:code.svg",
        "name": "n8n-nodes-base.code",
        "codex": {
          "data": {
            "alias": [
              "cpde",
              "Javascript",
              "JS",
              "Python",
              "Script",
              "Custom Code",
              "Function"
            ],
            "details": "The Code node allows you to execute JavaScript in your workflow.",
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.code/"
                }
              ]
            },
            "categories": [
              "Development",
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Helpers",
                "Data Transformation"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Code"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTcxXzQ0MSkiPgo8cGF0aCBkPSJNMTcwLjI4MyA0OEgxOTYuNUMyMDMuMTI3IDQ4IDIwOC41IDQyLjYyNzQgMjA4LjUgMzZWMTJDMjA4LjUgNS4zNzI1OCAyMDMuMTI3IDAgMTk2LjUgMEgxNzAuMjgzQzEyNi4xIDAgOTAuMjgzIDM1LjgxNzIgOTAuMjgzIDgwVjE3NkM5MC4yODMgMjA2LjkyOCA2NS4yMTA5IDIzMiAzNC4yODMgMjMySDIzQzE2LjM3MjYgMjMyIDExIDIzNy4zNzIgMTEgMjQ0VjI2OEMxMSAyNzQuNjI3IDE2LjM3MjQgMjgwIDIyLjk5OTYgMjgwTDM0LjI4MyAyODBDNjUuMjEwOSAyODAgOTAuMjgzIDMwNS4wNzIgOTAuMjgzIDMzNlY0NDBDOTAuMjgzIDQ3OS43NjQgMTIyLjUxOCA1MTIgMTYyLjI4MyA1MTJIMTk2LjVDMjAzLjEyNyA1MTIgMjA4LjUgNTA2LjYyNy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MjY4VjI0NEM1MDIgMjM3LjM3MyA0OTYuNjI4IDIzMiA0OTAgMjMyTDQ3OC45NzkgMjMyQzQ0OC4wNTEgMjMyIDQyMi45NzggMjA2LjkyOCA0MjIuOTc4IDE3NlY4MEM0MjIuOTc4IDM1LjgxNzIgMzg3LjE2MSAwIDM0Mi45NzkgMEgzMTdDMzEwLjM3MyAwIDMwNSA1LjM3MjU4IDMwNSAxMlYzNloiIGZpbGw9IiNGRjk5MjIiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xMTcxXzQ0MSI+CjxyZWN0IHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="
        },
        "displayName": "Code",
        "typeVersion": 2,
        "nodeCategories": [
          {
            "id": 5,
            "name": "Development"
          },
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      }
    ],
    "categories": [
      {
        "id": 45,
        "name": "Miscellaneous"
      }
    ],
    "image": []
  }
}