{
  "workflow": {
    "id": 2402,
    "name": "Telegram bot starter template setup & AI agent chatbot",
    "views": 39094,
    "recentViews": 1,
    "totalViews": 39094,
    "createdAt": "2024-09-04T15:33:05.306Z",
    "description": "## Telegram Bot Starter template workflow + n8n AI Agent Chatbot \nprovides a foundational setup for creating powerful Telegram bots with n8n. It handles incoming messages, photos, files, and voice notes, making it an excellent starting point for developers looking to create bots for customer engagement, support, or interactive services.\n\n[Sign up to n8n now →](https://n8n.partnerlinks.io/u4hgi2j8tqnr) and try it!\n\n## Key Features:\n- Dynamic Message Handling: Respond to text messages, photos, files, and more.\n- Modular Design: Easily integrate additional workflows such as user registration, payment modules, or custom commands.\n- Error Handling: Ensure the bot gracefully manages errors and user inputs.\n\n\n## Extensibility:\nThis workflow is the base for building any Telegram bot. Additional modules, such as a user registration module, payment integration, and user profile management, are available for easy connection to expand the bot’s functionality.\n- ✍🏻[Use the Telegram user registration workflow →](https://viktorgubanov.gumroad.com/l/n8n-telegram-payment-workflow-stars) \n- 💵[Use the Telegram Payment, Invoicing and Refund Workflow for Stars →](https://viktorgubanov.gumroad.com/l/n8n-telegram-payment-workflow-stars)\n\n## Who Can Use This Workflow?\n- Developers looking for a quick way to build and customize Telegram bots.\n- Businesses and service providers who need customer interaction automation.\n\n## Setup Instructions:\n1. Replace Telegram credentials with your own API credentials.\n2. Customize responses for different message types (text, photo, file).\n3. If integrating with external services (like Google Sheets), update the necessary credentials and links.\n\n \n## UPDATES:\n[🔥 Get the most up-to-date and expanded version →](https://viktorgubanov.gumroad.com/l/telegram-bot-starter-template) \n\n\n\n**June 25**:\n- New! AI Agent + Setup Instructions\n- Simple setup instructions and examples are included inside the workflow as sticky notes.\n \n**Sep 24**:\n- Improved message handler: Updated logic to handle various types of messages using Switch (text, photo, file, voice, and callback).\n- Payment processing: Added new nodes for sending invoices and handling payments via Telegram\n\n**Aug 24**:\n- Changed processing of system events: “new user” and ‘user who blocked bot’ events\n\n\n\n\nPlease reach out to [Victor](https://www.linkedin.com/in/gubanovvictor/) if you need further assistance with your n8n workflows and automations! [Sign up to n8n →](https://n8n.partnerlinks.io/u4hgi2j8tqnr), you have to try it!",
    "workflow": {
      "meta": {
        "instanceId": "1dbc26c48fe55fbd6f6084822260e5ffcc6df7c619b3d6ceeb699da53e67c82c",
        "templateCredsSetupCompleted": true
      },
      "nodes": [
        {
          "id": "5d9cf2ce-4808-4d44-9f0d-2c15d8dcea91",
          "name": "Trigger",
          "type": "n8n-nodes-base.telegramTrigger",
          "position": [
            -440,
            340
          ],
          "webhookId": "96a20e88-ba8f-4827-b874-b0a9867c59e9",
          "parameters": {
            "updates": [
              "*"
            ],
            "additionalFields": {}
          },
          "credentials": {
            "telegramApi": {
              "id": "credential-id",
              "name": "telegramApi Credential"
            }
          },
          "typeVersion": 1.1
        },
        {
          "id": "22fc0669-96f2-4767-9bc2-03644c7ced21",
          "name": "Global data",
          "type": "n8n-nodes-base.set",
          "position": [
            -200,
            340
          ],
          "parameters": {
            "options": {}
          },
          "typeVersion": 3.4
        },
        {
          "id": "d5925fd8-abde-45bf-ac3d-22649ecb1f4e",
          "name": "Telegram1",
          "type": "n8n-nodes-base.telegram",
          "position": [
            1700,
            -360
          ],
          "webhookId": "949879e0-3c5c-41ea-a06d-1fe60ce62e2d",
          "parameters": {
            "text": "Photo",
            "chatId": "={{ $('Trigger').item.json.message.from.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "credentials": {
            "telegramApi": {
              "id": "credential-id",
              "name": "telegramApi Credential"
            }
          },
          "typeVersion": 1.2
        },
        {
          "id": "5dc06f04-26b4-45af-99d6-a06b7c1b936d",
          "name": "Telegram2",
          "type": "n8n-nodes-base.telegram",
          "position": [
            1700,
            -120
          ],
          "webhookId": "a4c29bc3-adae-4cbf-a4ae-30968789802c",
          "parameters": {
            "text": "File",
            "chatId": "={{ $('Trigger').item.json.message.from.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "credentials": {
            "telegramApi": {
              "id": "credential-id",
              "name": "telegramApi Credential"
            }
          },
          "typeVersion": 1.2
        },
        {
          "id": "d036c602-17bb-45b5-b7b0-331339570cb3",
          "name": "Telegram3",
          "type": "n8n-nodes-base.telegram",
          "position": [
            1260,
            460
          ],
          "webhookId": "62a56d40-be6c-4aa3-8e5d-82a6ac1f6abd",
          "parameters": {
            "text": "Callback",
            "chatId": "={{ $('Trigger').item.json.callback_query.data }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "credentials": {
            "telegramApi": {
              "id": "credential-id",
              "name": "telegramApi Credential"
            }
          },
          "typeVersion": 1.2
        },
        {
          "id": "a86fe429-65df-471b-bdcb-e4765b14f109",
          "name": "Telegram4",
          "type": "n8n-nodes-base.telegram",
          "position": [
            1940,
            -740
          ],
          "webhookId": "3855991d-d95b-4982-885a-8fea84329d9f",
          "parameters": {
            "text": "={{ $json.output }}",
            "chatId": "={{ $('Trigger').item.json.message.from.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "credentials": {
            "telegramApi": {
              "id": "credential-id",
              "name": "telegramApi Credential"
            }
          },
          "typeVersion": 1.2
        },
        {
          "id": "b28ef71b-4e4b-48cb-b64d-029feee13ee4",
          "name": "Sticky Note",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            980,
            360
          ],
          "parameters": {
            "color": 7,
            "width": 1200.5980355767667,
            "height": 326.00218267794156,
            "content": "## Callback"
          },
          "typeVersion": 1
        },
        {
          "id": "d51d4ac4-e182-4245-b26f-248f99235de8",
          "name": "Sticky Note1",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            980,
            -920
          ],
          "parameters": {
            "color": 7,
            "width": 1201,
            "height": 481,
            "content": "## Text\n"
          },
          "typeVersion": 1
        },
        {
          "id": "05754c06-8f64-44c6-be55-3eb480e0cb3d",
          "name": "Sticky Note2",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            980,
            -400
          ],
          "parameters": {
            "color": 7,
            "width": 1200.5980355767667,
            "height": 198.69915410333263,
            "content": "## Photo"
          },
          "typeVersion": 1
        },
        {
          "id": "d9906042-25cd-4812-bbf1-4c46aa2c0492",
          "name": "Sticky Note3",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            980,
            -160
          ],
          "parameters": {
            "color": 7,
            "width": 1200.5980355767667,
            "height": 198.69915410333263,
            "content": "## File"
          },
          "typeVersion": 1
        },
        {
          "id": "0e0bfc7f-23a3-478e-a3a1-cffbc9f9f95e",
          "name": "Sticky Note4",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            980,
            100
          ],
          "parameters": {
            "color": 7,
            "width": 1200.5980355767667,
            "height": 198.69915410333263,
            "content": "## Voice"
          },
          "typeVersion": 1
        },
        {
          "id": "a4519088-76c3-427c-95b6-7982814bf8e3",
          "name": "Telegram5",
          "type": "n8n-nodes-base.telegram",
          "position": [
            1700,
            140
          ],
          "webhookId": "b0e955bd-8286-479c-8f34-6a1aa2a1699c",
          "parameters": {
            "text": "Voice",
            "chatId": "={{ $('Trigger').item.json.message.from.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "credentials": {
            "telegramApi": {
              "id": "credential-id",
              "name": "telegramApi Credential"
            }
          },
          "typeVersion": 1.2
        },
        {
          "id": "0b597db9-d240-4be3-90f3-095117b1c6bc",
          "name": "Switch_MessageType",
          "type": "n8n-nodes-base.switch",
          "position": [
            720,
            -120
          ],
          "parameters": {
            "rules": {
              "values": [
                {
                  "outputKey": "Text",
                  "conditions": {
                    "options": {
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "360a2e5b-8736-488c-87dc-b5fcbd2b5102",
                        "operator": {
                          "type": "boolean",
                          "operation": "true",
                          "singleValue": true
                        },
                        "leftValue": "={{ $('Trigger').item.json.message.hasOwnProperty('text') }}",
                        "rightValue": "/"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "Photo",
                  "conditions": {
                    "options": {
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "operator": {
                          "type": "boolean",
                          "operation": "true",
                          "singleValue": true
                        },
                        "leftValue": "={{ $('Trigger').item.json.message.hasOwnProperty('photo') }}",
                        "rightValue": ""
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "File",
                  "conditions": {
                    "options": {
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "eb5a5507-4374-46c9-b8eb-25b36cbe17ee",
                        "operator": {
                          "type": "boolean",
                          "operation": "true",
                          "singleValue": true
                        },
                        "leftValue": "={{ $('Trigger').item.json.message.hasOwnProperty('document') }}",
                        "rightValue": "2"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "Voice",
                  "conditions": {
                    "options": {
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "b5a43050-e657-4b56-aa9b-290a94aa8902",
                        "operator": {
                          "type": "boolean",
                          "operation": "true",
                          "singleValue": true
                        },
                        "leftValue": "={{ $('Trigger').item.json.message.hasOwnProperty('voice') }}",
                        "rightValue": ""
                      }
                    ]
                  },
                  "renameOutput": true
                }
              ]
            },
            "options": {}
          },
          "typeVersion": 3
        },
        {
          "id": "efb08696-e76f-494c-8872-d117a379adec",
          "name": "Sticky Note5",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            980,
            -1460
          ],
          "parameters": {
            "color": 7,
            "width": 1776,
            "height": 501,
            "content": "## Commands"
          },
          "typeVersion": 1
        },
        {
          "id": "7edecce3-6371-45ab-8dc1-f3e1a2052daa",
          "name": "Telegram6",
          "type": "n8n-nodes-base.telegram",
          "position": [
            1840,
            -1180
          ],
          "webhookId": "312c58c3-202d-49fb-89ca-d06bd0c75617",
          "parameters": {
            "text": "Don't know the command",
            "chatId": "={{ $('Trigger').item.json.message.from.id }}",
            "additionalFields": {
              "appendAttribution": false
            }
          },
          "credentials": {
            "telegramApi": {
              "id": "credential-id",
              "name": "telegramApi Credential"
            }
          },
          "typeVersion": 1.2
        },
        {
          "id": "c3b030e2-a085-4e21-8645-0224d6bb7c35",
          "name": "Menu",
          "type": "n8n-nodes-base.switch",
          "position": [
            1420,
            460
          ],
          "parameters": {
            "rules": {
              "values": [
                {
                  "outputKey": "Conditions",
                  "conditions": {
                    "options": {
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "798e1a40-e85b-4294-afcb-b129f92eb833",
                        "operator": {
                          "name": "filter.operator.equals",
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $('Trigger').item.json.callback_query.data }}",
                        "rightValue": "menu_conditions"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "Reviews",
                  "conditions": {
                    "options": {
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "f91b8a94-8961-4d20-ae9c-0ee34ff04000",
                        "operator": {
                          "name": "filter.operator.equals",
                          "type": "string",
                          "operation": "equals"
                        },
                        "leftValue": "={{ $('Trigger').item.json.callback_query.data }}",
                        "rightValue": "menu_reviews"
                      }
                    ]
                  },
                  "renameOutput": true
                }
              ]
            },
            "options": {}
          },
          "typeVersion": 3
        },
        {
          "id": "71907904-21f3-459c-a445-ca44a432dd36",
          "name": "Command?",
          "type": "n8n-nodes-base.if",
          "position": [
            1340,
            -760
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "and",
              "conditions": [
                {
                  "id": "a2025331-2c2b-4df8-9e23-37035a5c808a",
                  "operator": {
                    "type": "string",
                    "operation": "startsWith"
                  },
                  "leftValue": "={{ $('Trigger').item.json.message.text }}\n",
                  "rightValue": "/"
                }
              ]
            }
          },
          "typeVersion": 2
        },
        {
          "id": "23e5c351-095b-4485-ad09-4dc4df195a8d",
          "name": "Change status",
          "type": "n8n-nodes-base.googleSheets",
          "position": [
            1460,
            1220
          ],
          "parameters": {
            "columns": {
              "value": {
                "Status": "0"
              },
              "schema": [
                {
                  "id": "ID",
                  "type": "string",
                  "display": true,
                  "removed": false,
                  "required": false,
                  "displayName": "ID",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "Name",
                  "type": "string",
                  "display": true,
                  "removed": true,
                  "required": false,
                  "displayName": "Name",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "Lastname",
                  "type": "string",
                  "display": true,
                  "removed": true,
                  "required": false,
                  "displayName": "Lastname",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "Username",
                  "type": "string",
                  "display": true,
                  "removed": true,
                  "required": false,
                  "displayName": "Username",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "Date",
                  "type": "string",
                  "display": true,
                  "removed": true,
                  "required": false,
                  "displayName": "Date",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "Language",
                  "type": "string",
                  "display": true,
                  "removed": true,
                  "required": false,
                  "displayName": "Language",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "Status",
                  "type": "string",
                  "display": true,
                  "required": false,
                  "displayName": "Status",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "Balance",
                  "type": "string",
                  "display": true,
                  "removed": true,
                  "required": false,
                  "displayName": "Balance",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                },
                {
                  "id": "row_number",
                  "type": "string",
                  "display": true,
                  "removed": true,
                  "readOnly": true,
                  "required": false,
                  "displayName": "row_number",
                  "defaultMatch": false,
                  "canBeUsedToMatch": true
                }
              ],
              "mappingMode": "defineBelow",
              "matchingColumns": [
                "ID"
              ]
            },
            "options": {},
            "operation": "update",
            "sheetName": {
              "__rl": true,
              "mode": "list",
              "value": "gid=0",
              "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1nTDcSinsEdKUA_BzISUwCa8WogQZXc7sjIdBvs3D7o0/edit#gid=0",
              "cachedResultName": "USERS"
            },
            "documentId": {
              "__rl": true,
              "mode": "url",
              "value": "https://docs.google.com/spreadsheets/d/1nTDcSinsEdKUA_BzISUwCa8WogQZXc7sjIdBvs3D7o0/edit?gid=0#gid=0"
            }
          },
          "credentials": {
            "googleSheetsOAuth2Api": {
              "id": "credential-id",
              "name": "googleSheetsOAuth2Api Credential"
            }
          },
          "typeVersion": 4.4
        },
        {
          "id": "12e9c69a-ac4d-4c1b-ba2e-18602a1ac715",
          "name": "Start bot?",
          "type": "n8n-nodes-base.if",
          "position": [
            1260,
            1040
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "and",
              "conditions": [
                {
                  "id": "253b4dfb-2b86-499a-a1a6-b6d916c9c25f",
                  "operator": {
                    "name": "filter.operator.equals",
                    "type": "string",
                    "operation": "equals"
                  },
                  "leftValue": "={{ $('Trigger').item.json.my_chat_member.new_chat_member.status }}",
                  "rightValue": "member"
                }
              ]
            }
          },
          "typeVersion": 2.1
        },
        {
          "id": "b60a7063-a62f-4fbe-bc33-40ff55170f3e",
          "name": "Register",
          "type": "n8n-nodes-base.executeWorkflow",
          "position": [
            1660,
            920
          ],
          "parameters": {
            "options": {
              "waitForSubWorkflow": false
            },
            "workflowId": "XZKoHGcXJE1fUizb"
          },
          "typeVersion": 1
        },
        {
          "id": "6a7249dd-f664-4115-a907-883d1da4e1c5",
          "name": "Payment Handler",
          "type": "n8n-nodes-base.executeWorkflow",
          "position": [
            1460,
            1660
          ],
          "parameters": {
            "options": {},
            "workflowId": {
              "__rl": true,
              "mode": "id",
              "value": "lPX901W8CIMbKbww"
            }
          },
          "typeVersion": 1.1
        },
        {
          "id": "586f875f-e119-467e-8a3d-6090b8eaed80",
          "name": "Trigger Data for Payment",
          "type": "n8n-nodes-base.set",
          "notes": "Chat ID required. \n\nSend action name to handle it inside Payment workflow",
          "position": [
            1280,
            1660
          ],
          "parameters": {
            "mode": "raw",
            "options": {},
            "jsonOutput": "={{ Object.assign({}, $('Trigger').item.json, { \"action\": \"HandlePayment\" }) }}"
          },
          "notesInFlow": true,
          "typeVersion": 3.4
        },
        {
          "id": "f6f231a0-f5b7-4e58-acda-4f8dfe46a666",
          "name": "Trigger Data for Register",
          "type": "n8n-nodes-base.set",
          "position": [
            1460,
            920
          ],
          "parameters": {
            "mode": "raw",
            "options": {},
            "jsonOutput": "={{ $('Trigger').item.json }}"
          },
          "typeVersion": 3.4
        },
        {
          "id": "b7287bcc-b4d0-4b42-bdfc-eeb8c1a0c289",
          "name": "Switch",
          "type": "n8n-nodes-base.switch",
          "position": [
            -20,
            340
          ],
          "parameters": {
            "rules": {
              "values": [
                {
                  "outputKey": "Message",
                  "conditions": {
                    "options": {
                      "version": 1,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "360a2e5b-8736-488c-87dc-b5fcbd2b5102",
                        "operator": {
                          "type": "boolean",
                          "operation": "true",
                          "singleValue": true
                        },
                        "leftValue": "={{ $('Trigger').item.json.message && (!$('Trigger').item.json.message.successful_payment) }}",
                        "rightValue": "/"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "Callback",
                  "conditions": {
                    "options": {
                      "version": 1,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "727fdd8d-ed98-4d64-b720-a10d78d73025",
                        "operator": {
                          "type": "boolean",
                          "operation": "true",
                          "singleValue": true
                        },
                        "leftValue": "={{ $('Trigger').item.json.hasOwnProperty('callback_query') }}",
                        "rightValue": ""
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "System",
                  "conditions": {
                    "options": {
                      "version": 1,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "e014a230-519a-4028-98b3-33c10d408c85",
                        "operator": {
                          "type": "boolean",
                          "operation": "true",
                          "singleValue": true
                        },
                        "leftValue": "={{ $('Trigger').item.json.hasOwnProperty('my_chat_member') }}",
                        "rightValue": "System"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "Payment",
                  "conditions": {
                    "options": {
                      "version": 1,
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "b03aaa37-d57f-437c-acb2-de2068d3241a",
                        "operator": {
                          "type": "boolean",
                          "operation": "true",
                          "singleValue": true
                        },
                        "leftValue": "={{ $('Trigger').item.json.hasOwnProperty('pre_checkout_query') || $('Trigger').item.json.message.hasOwnProperty('successful_payment') }}",
                        "rightValue": ""
                      }
                    ]
                  },
                  "renameOutput": true
                }
              ]
            },
            "options": {}
          },
          "typeVersion": 3
        },
        {
          "id": "509c5575-2226-486c-8398-887eb69a74f8",
          "name": "Data for Invoice",
          "type": "n8n-nodes-base.set",
          "notes": "Chat ID required. \n\nSend action name to handle it inside Payment workflow",
          "position": [
            1840,
            -1380
          ],
          "parameters": {
            "mode": "raw",
            "options": {},
            "jsonOutput": "={{ Object.assign({}, $('Trigger').item.json, { \"action\": \"SendInvoice\" }) }}"
          },
          "notesInFlow": true,
          "typeVersion": 3.4
        },
        {
          "id": "6634d3a8-848a-4a14-ba37-58f33e3409f2",
          "name": "Send Invoice",
          "type": "n8n-nodes-base.executeWorkflow",
          "position": [
            2040,
            -1380
          ],
          "parameters": {
            "options": {
              "waitForSubWorkflow": false
            },
            "workflowId": "lPX901W8CIMbKbww"
          },
          "typeVersion": 1
        },
        {
          "id": "e4bef639-3451-4ddc-ad26-481ba2acf33d",
          "name": "Sticky Note6",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            980,
            820
          ],
          "parameters": {
            "color": 7,
            "width": 1417,
            "height": 613,
            "content": "## New member or Member left"
          },
          "typeVersion": 1
        },
        {
          "id": "4affaf7d-0694-4aa0-9616-8e12ca5bee15",
          "name": "Sticky Note7",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            980,
            1500
          ],
          "parameters": {
            "color": 7,
            "width": 1217,
            "height": 577,
            "content": "## Payment handler"
          },
          "typeVersion": 1
        },
        {
          "id": "58008f10-7336-4633-ab15-51556e3b53bd",
          "name": "Switch_Commands",
          "type": "n8n-nodes-base.switch",
          "position": [
            1540,
            -1280
          ],
          "parameters": {
            "rules": {
              "values": [
                {
                  "outputKey": "Command 1",
                  "conditions": {
                    "options": {
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "360a2e5b-8736-488c-87dc-b5fcbd2b5102",
                        "operator": {
                          "type": "string",
                          "operation": "contains"
                        },
                        "leftValue": "={{ $('Trigger').item.json.message.text }}",
                        "rightValue": "/pay"
                      }
                    ]
                  },
                  "renameOutput": true
                },
                {
                  "outputKey": "Command 2",
                  "conditions": {
                    "options": {
                      "leftValue": "",
                      "caseSensitive": true,
                      "typeValidation": "strict"
                    },
                    "combinator": "and",
                    "conditions": [
                      {
                        "id": "546c81bf-2ee0-46b2-847b-1f92b84efaf3",
                        "operator": {
                          "type": "string",
                          "operation": "contains"
                        },
                        "leftValue": "={{ $('Trigger').item.json.message.text }}",
                        "rightValue": "/command2"
                      }
                    ]
                  },
                  "renameOutput": true
                }
              ]
            },
            "options": {
              "fallbackOutput": "extra"
            }
          },
          "typeVersion": 3
        },
        {
          "id": "1a8af547-3492-4a07-9ab3-39f0fba25f0e",
          "name": "Sticky Note8",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -520,
            100
          ],
          "parameters": {
            "width": 260,
            "height": 400,
            "content": "### 🚀 Set up Telegram Trigger\n\n1. Create a bot via [@BotFather](https://t.me/BotFather) and copy the **Bot Token**.\n2. Connect it to this node\n\n📝 Tip: Send `/start` to your bot in Telegram to trigger the flow.\n\n[🔗 Full guide](https://docs.n8n.io/integrations/builtin/credentials/telegram/?utm_source=n8n_app&utm_medium=credential_settings&utm_campaign=create_new_credentials_modal)"
          },
          "typeVersion": 1
        },
        {
          "id": "15fb1560-8ac2-43b6-809e-a794bdb48cda",
          "name": "Sticky Note9",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            1860,
            860
          ],
          "parameters": {
            "color": 4,
            "width": 360,
            "height": 460,
            "content": "### 👋 New member joined? Register them automatically!\n\nUse this node when someone joins or leaves your Telegram group.\n\nPair it with the [n8n Telegram Payment & Registration Workflow ⭐️](https://viktorgubanov.gumroad.com/l/n8n-telegram-payment-workflow-stars) to:\n\n- ✅ Automatically **register new users** in your database\n- 💬 Send a **welcome message** or onboarding flow\n- 💾 Keep track of active members for payments, access control, or CRM\n- 🔁 Remove access or mark users as inactive when they leave\n\n⚡️ Automate your group membership like a pro — start now with this ready-to-use workflow!"
          },
          "typeVersion": 1
        },
        {
          "id": "ffca62ab-00b4-4b0c-931c-08124fee3bdd",
          "name": "Sticky Note10",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            1680,
            1540
          ],
          "parameters": {
            "color": 4,
            "width": 400,
            "height": 420,
            "content": "### 💸 Telegram Payments Made Easy with n8n\n\nThis ready-to-use workflow helps you:\n\n- ✅ Accept payments **directly in Telegram**\n- 👤 Automatically **register paying users**\n- ⏳ Control access based on subscription status or payment\n- 📊 Save user data for analytics, CRM, or follow-up\n\nPerfect for:\n- Online schools  \n- Closed communities  \n- Paid bots or premium content  \n\n👉 [Download the full template on Gumroad](https://viktorgubanov.gumroad.com/l/n8n-telegram-payment-workflow-stars) and start accepting payments today — no coding required.\n"
          },
          "typeVersion": 1
        },
        {
          "id": "9a6be66e-7e2a-4235-b358-d45d7c66cdde",
          "name": "Sticky Note11",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            2280,
            -1420
          ],
          "parameters": {
            "color": 4,
            "width": 400,
            "height": 420,
            "content": "### 💸 Telegram Payments Made Easy with n8n\n\nThis ready-to-use workflow helps you:\n\n- ✅ Accept payments **directly in Telegram**\n- 👤 Automatically **register paying users**\n- ⏳ Control access based on subscription status or payment\n- 📊 Save user data for analytics, CRM, or follow-up\n\nPerfect for:\n- Online schools  \n- Closed communities  \n- Paid bots or premium content  \n\n👉 [Download the full template on Gumroad](https://viktorgubanov.gumroad.com/l/n8n-telegram-payment-workflow-stars) and start accepting payments today — no coding required.\n"
          },
          "typeVersion": 1
        },
        {
          "id": "e25379f9-1a25-477e-b65a-a5a6ed30efbd",
          "name": "TextDataExample",
          "type": "n8n-nodes-base.set",
          "position": [
            -200,
            160
          ],
          "parameters": {
            "mode": "raw",
            "options": {},
            "jsonOutput": "\n  {\n    \"update_id\": 327139593,\n    \"message\": {\n      \"message_id\": 264,\n      \"from\": {\n        \"id\": 194972177,\n        \"is_bot\": false,\n        \"first_name\": \"Victor\",\n        \"last_name\": \"Gold\",\n        \"username\": \"gubanov_vn\",\n        \"language_code\": \"en\",\n        \"is_premium\": true\n      },\n      \"chat\": {\n        \"id\": 194972177,\n        \"first_name\": \"Victor\",\n        \"last_name\": \"Gold\",\n        \"username\": \"gubanov_vn\",\n        \"type\": \"private\"\n      },\n      \"date\": 1749162501,\n      \"text\": \"test text\"\n    }\n  }\n"
          },
          "typeVersion": 3.4
        },
        {
          "id": "5f3f8ab0-208d-4f10-b259-5014470e785a",
          "name": "Agent: Find in the Internet",
          "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
          "disabled": true,
          "position": [
            2860,
            -420
          ],
          "parameters": {
            "name": "knolageBase"
          },
          "typeVersion": 2.1
        },
        {
          "id": "ab42d6cd-cd08-42e2-a3ed-5d4b9f56a7e0",
          "name": "AI Agent",
          "type": "@n8n/n8n-nodes-langchain.agent",
          "position": [
            1600,
            -740
          ],
          "parameters": {
            "text": "=Answer the questions:\n{{ $('Trigger').item.json.message.text }}",
            "options": {},
            "promptType": "define"
          },
          "typeVersion": 1.8
        },
        {
          "id": "8bdf237f-fbe0-47de-80b3-98f846c4a874",
          "name": "Simple Memory",
          "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
          "position": [
            1700,
            -580
          ],
          "parameters": {
            "sessionKey": "={{ $('Trigger').item.json.message.from.id }}",
            "sessionIdType": "customKey",
            "contextWindowLength": 3
          },
          "typeVersion": 1.3
        },
        {
          "id": "5764520d-9be5-489a-8323-0fc96a1ea1fa",
          "name": "OpenAI Chat Model",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            1580,
            -580
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "credentials": {
            "openAiApi": {
              "id": "credential-id",
              "name": "openAiApi Credential"
            }
          },
          "typeVersion": 1.2
        },
        {
          "id": "4f507f23-8517-479a-82c1-62034a30964e",
          "name": "Sticky Note12",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            2220,
            -920
          ],
          "parameters": {
            "color": 7,
            "width": 500,
            "height": 480,
            "content": "### 🧪 Basic AI agent for testing and play\n\nThis setup is a **lightweight prototype** that lets you:\n\n- 💬 Chat with an AI via Telegram  \n- 🧠 Retain short context (3 messages) per user  \n- 🔁 Explore how memory + Langchain + OpenAI work in n8n  \n---\n\n### ⚠️ Limitations for production use\n\nNot suitable for serious bots without upgrades:\n\n- 🔄 **Memory resets** on restart — no long-term context  \n- 🧠 **Shallow context** — only 3 messages, no thread awareness  \n- 👤 **No user profiles** — no saved data or personalization  \n- 🧩 **No workflow actions** — can't trigger external APIs or steps  \n- 📈 **Not scalable** — lacks logging, fallback logic, and analytics  \n"
          },
          "typeVersion": 1
        },
        {
          "id": "85ecf7b0-1c85-4fc8-9aec-62d3abf563a1",
          "name": "Sticky Note13",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            2780,
            -920
          ],
          "parameters": {
            "color": 4,
            "width": 1260,
            "height": 300,
            "content": "## 🤖 Supercharge Your Bot with Task-YOUR_OPENAI_KEY_HERE AI Agents\n\n### Transform your Telegram bot from a simple responder into a **versatile business assistant** powered by modular AI agents. Each agent is designed to handle a focused task — acting like a smart, specialized teammate inside your workflow.\n\nSeamlessly integrated with the `Langchain Agent`, these tools let your bot **search, calculate, retrieve, and automate actions**, not just respond.\n\n⚡️ Want more than small talk?\nEnable these agents and let your bot work like part of your operations team.\n\n### You can find some of them in my [Gumroad page →](https://viktorgubanov.gumroad.com/)\n"
          },
          "typeVersion": 1
        },
        {
          "id": "c376adc1-e468-4320-9b1f-3d79fcd8a575",
          "name": "Agent: Check Order Status",
          "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
          "disabled": true,
          "position": [
            3380,
            -420
          ],
          "parameters": {
            "name": "knolageBase"
          },
          "typeVersion": 2.1
        },
        {
          "id": "c0a0c774-3257-467b-8bee-bb17297a13d8",
          "name": "Agent: Search Internal Docs",
          "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
          "disabled": true,
          "position": [
            3120,
            -420
          ],
          "parameters": {
            "name": "knolageBase"
          },
          "typeVersion": 2.1
        },
        {
          "id": "befaa35a-f56b-4918-b597-dd69e7c95900",
          "name": "Sticky Note14",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            2780,
            -580
          ],
          "parameters": {
            "color": 4,
            "height": 340,
            "content": "### 🌐 **Agent: Find in the Internet**  \n  → Searches live data online to answer fresh, time-sensitive queries."
          },
          "typeVersion": 1
        },
        {
          "id": "dade8080-91be-47ad-a15a-2d70ef7d8429",
          "name": "Sticky Note15",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            3040,
            -580
          ],
          "parameters": {
            "color": 4,
            "height": 340,
            "content": "### 📁 **Agent: Search Internal Docs**  \n  → Fetches relevant answers from your internal knowledge base (Notion, Google Drive, etc.)."
          },
          "typeVersion": 1
        },
        {
          "id": "4850057e-ef20-4067-9e64-f02bec9d49d9",
          "name": "Sticky Note16",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            3300,
            -580
          ],
          "parameters": {
            "color": 4,
            "height": 340,
            "content": "### 📦 **Agent: Check Order Status** \n  → Instantly checks order progress from Google Sheets, Airtable, or CRM."
          },
          "typeVersion": 1
        },
        {
          "id": "cdab4f13-dc58-4b9b-89e3-c42a147fc95a",
          "name": "Sticky Note17",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            3560,
            -580
          ],
          "parameters": {
            "color": 4,
            "height": 340,
            "content": "### 💰 **Agent: Calculate Cost or Quote**  \n  → Generates quotes using predefined pricing logic based on user input. "
          },
          "typeVersion": 1
        },
        {
          "id": "2fcb9768-9d99-4541-b5cb-274988154b74",
          "name": "Sticky Note18",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            3820,
            -580
          ],
          "parameters": {
            "height": 340,
            "content": "##### ❓ Need help with your own?\n\n\n\n## Share your idea and get the estimation for your agent. \n\n### [Fill the form →](https://tally.so/r/wQaeJA)"
          },
          "typeVersion": 1
        },
        {
          "id": "865b678f-5841-4c24-a0c2-8a11ba550b0c",
          "name": "Agent: Calculate Cost or Quote",
          "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
          "disabled": true,
          "position": [
            3640,
            -420
          ],
          "parameters": {
            "name": "knolageBase"
          },
          "typeVersion": 2.1
        }
      ],
      "pinData": {},
      "connections": {
        "Switch": {
          "main": [
            [
              {
                "node": "Switch_MessageType",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Telegram3",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Start bot?",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Trigger Data for Payment",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Trigger": {
          "main": [
            [
              {
                "node": "Global data",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "AI Agent": {
          "main": [
            [
              {
                "node": "Telegram4",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Command?": {
          "main": [
            [
              {
                "node": "Switch_Commands",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "AI Agent",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Telegram3": {
          "main": [
            [
              {
                "node": "Menu",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Telegram4": {
          "main": [
            []
          ]
        },
        "Start bot?": {
          "main": [
            [
              {
                "node": "Trigger Data for Register",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Change status",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Global data": {
          "main": [
            [
              {
                "node": "Switch",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Simple Memory": {
          "ai_memory": [
            [
              {
                "node": "AI Agent",
                "type": "ai_memory",
                "index": 0
              }
            ]
          ]
        },
        "Switch_Commands": {
          "main": [
            [
              {
                "node": "Data for Invoice",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Telegram6",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Data for Invoice": {
          "main": [
            [
              {
                "node": "Send Invoice",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model": {
          "ai_languageModel": [
            [
              {
                "node": "AI Agent",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "Switch_MessageType": {
          "main": [
            [
              {
                "node": "Command?",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Telegram1",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Telegram2",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Telegram5",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Trigger Data for Payment": {
          "main": [
            [
              {
                "node": "Payment Handler",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Trigger Data for Register": {
          "main": [
            [
              {
                "node": "Register",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Agent: Search Internal Docs": {
          "ai_tool": [
            []
          ]
        }
      }
    },
    "lastUpdatedBy": 29,
    "workflowInfo": {
      "nodeCount": 48,
      "nodeTypes": {
        "n8n-nodes-base.if": {
          "count": 2
        },
        "n8n-nodes-base.set": {
          "count": 5
        },
        "n8n-nodes-base.switch": {
          "count": 4
        },
        "n8n-nodes-base.telegram": {
          "count": 6
        },
        "n8n-nodes-base.stickyNote": {
          "count": 19
        },
        "n8n-nodes-base.googleSheets": {
          "count": 1
        },
        "@n8n/n8n-nodes-langchain.agent": {
          "count": 1
        },
        "n8n-nodes-base.executeWorkflow": {
          "count": 3
        },
        "n8n-nodes-base.telegramTrigger": {
          "count": 1
        },
        "@n8n/n8n-nodes-langchain.lmChatOpenAi": {
          "count": 1
        },
        "@n8n/n8n-nodes-langchain.toolWorkflow": {
          "count": 4
        },
        "@n8n/n8n-nodes-langchain.memoryBufferWindow": {
          "count": 1
        }
      }
    },
    "status": "published",
    "readyToDemo": null,
    "user": {
      "name": "Victor Gold",
      "username": "victorlucky",
      "bio": "Automation & AI expert with over 7 years of experience in the digital & tech industry. Founder digital design, web & mobile development studio INSAIM.DESIGN.\nFocusing on startups & tech companies and helping to streamline their processes with AI and automation. ",
      "verified": true,
      "links": [
        "https://insaim.design"
      ],
      "avatar": "https://gravatar.com/avatar/7c720e593df475d503c491d8a0a4275ccbda08832e9d4c48c98c4f373052014e?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": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGZpbGw9IiMyOEI0NDYiIGQ9Ik0zNS42OSAxIDUyIDE3LjIyNXYzOS4wODdhMy42NyAzLjY3IDAgMCAxLTEuMDg0IDIuNjFBMy43IDMuNyAwIDAgMSA0OC4yOTMgNjBIMTIuNzA3YTMuNyAzLjcgMCAwIDEtMi42MjMtMS4wNzhBMy42NyAzLjY3IDAgMCAxIDkgNTYuMzEyVjQuNjg4YTMuNjcgMy42NyAwIDAgMSAxLjA4NC0yLjYxQTMuNyAzLjcgMCAwIDEgMTIuNzA3IDF6Ii8+PHBhdGggZmlsbD0iIzZBQ0U3QyIgZD0iTTM1LjY5IDEgNTIgMTcuMjI1SDM5LjM5N2MtMi4wNTQgMC0zLjcwNy0xLjgyOS0zLjcwNy0zLjg3MnoiLz48cGF0aCBmaWxsPSIjMjE5QjM4I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TTE5LjEyIDMwLjk3NWMwLS44MTcuNjYyLTEuNDc1IDEuNDgzLTEuNDc1aDE3Ljc5NGMuODIxIDAgMS40ODIuNjU4IDEuNDgyIDEuNDc1djE1LjQ4N2MwIC44MTgtLjY2MSAxLjQ3NS0xLjQ4MiAxLjQ3NUgyMC42MDNhMS40NzYgMS40NzYgMCAwIDEtMS40ODItMS40NzRWMzAuOTc0em0yLjIyNSAxLjQ3NWg2LjY3MnYyLjIxMmgtNi42NzJ6bTAgNS4xNjJoNi42NzJ2Mi4yMTNoLTYuNjcyem0wIDUuMTYzaDYuNjcydjIuMjEyaC02LjY3MnptOS42MzgtMTAuMzI1aDYuNjcydjIuMjEyaC02LjY3MnptMCA1LjE2Mmg2LjY3MnYyLjIxM2gtNi42NzJ6bTAgNS4xNjNoNi42NzJ2Mi4yMTJoLTYuNjcyeiIvPjwvZz48L3N2Zz4="
        },
        "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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiB2aWV3Qm94PSIwIDAgNjYgNjYiPjx1c2UgeGxpbms6aHJlZj0iI2EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9ImEiIG92ZXJmbG93PSJ2aXNpYmxlIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0ibm9uZSI+PHBhdGggZmlsbD0iIzM3YWVlMiIgZD0iTTAgMzJjMCAxNy42NzMgMTQuMzI3IDMyIDMyIDMyczMyLTE0LjMyNyAzMi0zMlM0OS42NzMgMCAzMiAwIDAgMTQuMzI3IDAgMzIiLz48cGF0aCBmaWxsPSIjYzhkYWVhIiBkPSJtMjEuNjYxIDM0LjMzOCAzLjc5NyAxMC41MDhzLjQ3NS45ODMuOTgzLjk4MyA4LjA2OC03Ljg2NCA4LjA2OC03Ljg2NGw4LjQwNy0xNi4yMzctMjEuMTE5IDkuODk4eiIvPjxwYXRoIGZpbGw9IiNhOWM2ZDgiIGQ9Im0yNi42OTUgMzcuMDM0LS43MjkgNy43NDZzLS4zMDUgMi4zNzMgMi4wNjggMGw0LjY0NC00LjIwMyIvPjxwYXRoIGQ9Im0yMS43MyAzNC43MTItNy44MDktMi41NDVzLS45MzItLjM3OC0uNjMzLTEuMjM3Yy4wNjItLjE3Ny4xODYtLjMyOC41NTktLjU4OCAxLjczMS0xLjIwNiAzMi4wMjgtMTIuMDk2IDMyLjAyOC0xMi4wOTZzLjg1Ni0uMjg4IDEuMzYxLS4wOTdjLjIzMS4wODguMzc4LjE4Ny41MDMuNTQ4LjA0NS4xMzIuMDcxLjQxMS4wNjguNjg5LS4wMDMuMjAxLS4wMjcuMzg2LS4wNDUuNjc4LS4xODQgMi45NzgtNS43MDYgMjUuMTk4LTUuNzA2IDI1LjE5OHMtLjMzIDEuMy0xLjUxNCAxLjM0NWMtLjQzMi4wMTYtLjk1Ni0uMDcxLTEuNTgyLS42MS0yLjMyMy0xLjk5OC0xMC4zNTItNy4zOTQtMTIuMTI2LTguNThhLjM0LjM0IDAgMCAxLS4xNDYtLjIzOWMtLjAyNS0uMTI1LjEwOC0uMjguMTA4LS4yOHMxMy45OC0xMi40MjcgMTQuMzUyLTEzLjczMWMuMDI5LS4xMDEtLjA3OS0uMTUxLS4yMjYtLjEwNy0uOTI5LjM0Mi0xNy4wMjUgMTAuNTA2LTE4LjgwMSAxMS42MjktLjEwNC4wNjYtLjM5NS4wMjMtLjM5NS4wMjMiLz48L2c+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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiB2aWV3Qm94PSIwIDAgNjYgNjYiPjx1c2UgeGxpbms6aHJlZj0iI2EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9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MDI5LS4xMDEtLjA3OS0uMTUxLS4yMjYtLjEwNy0uOTI5LjM0Mi0xNy4wMjUgMTAuNTA2LTE4LjgwMSAxMS42MjktLjEwNC4wNjYtLjM5NS4wMjMtLjM5NS4wMjMiLz48L2c+PC9zeW1ib2w+PC9zdmc+"
        },
        "displayName": "Telegram Trigger",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 6,
            "name": "Communication"
          }
        ]
      },
      {
        "id": 111,
        "icon": "fa:sign-in-alt",
        "name": "n8n-nodes-base.executeWorkflow",
        "codex": {
          "data": {
            "alias": [
              "n8n",
              "call",
              "sub",
              "workflow",
              "sub-workflow",
              "subworkflow"
            ],
            "details": "The Execute Workflow node can be used when you want your workflow to treat another workflow as a step in your flow. It allows you to modularize your workflows and have a single source of truth for series of actions you perform often. ",
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/"
                }
              ]
            },
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Helpers",
                "Flow"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Execute Workflow",
          "color": "#ff6d5a"
        },
        "iconData": {
          "icon": "sign-in-alt",
          "type": "icon"
        },
        "displayName": "Execute Sub-workflow",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "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": 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": 1119,
        "icon": "fa:robot",
        "name": "@n8n/n8n-nodes-langchain.agent",
        "codex": {
          "data": {
            "alias": [
              "LangChain",
              "Chat",
              "Conversational",
              "Plan and Execute",
              "ReAct",
              "Tools"
            ],
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/"
                }
              ]
            },
            "categories": [
              "AI",
              "Langchain"
            ],
            "subcategories": {
              "AI": [
                "Agents",
                "Root Nodes"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "AI Agent",
          "color": "#404040"
        },
        "iconData": {
          "icon": "robot",
          "type": "icon"
        },
        "displayName": "AI Agent",
        "typeVersion": 3,
        "nodeCategories": [
          {
            "id": 25,
            "name": "AI"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      },
      {
        "id": 1153,
        "icon": "file:openAiLight.svg",
        "name": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/"
                }
              ]
            },
            "categories": [
              "AI",
              "Langchain"
            ],
            "subcategories": {
              "AI": [
                "Language Models",
                "Root Nodes"
              ],
              "Language Models": [
                "Chat Models (Recommended)"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "OpenAI Chat Model"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTM2Ljg2NzEgMTYuMzcxOEMzNy43NzQ2IDEzLjY0OCAzNy40NjIxIDEwLjY2NDIgMzYuMDEwOCA4LjE4NjYxQzMzLjgyODIgNC4zODY1MyAyOS40NDA3IDIuNDMxNDkgMjUuMTU1NiAzLjM1MTUxQzIzLjI0OTMgMS4yMDM5NiAyMC41MTA1IC0wLjAxNzMxNDggMTcuNjM5MiAwLjAwMDE4NT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S43MzQyIDI1LjAwMDdMMTUuNDAyOSAyMi41MDA3VjE3LjUwMDZaIiBmaWxsPSIjN0Q3RDg3Ii8+Cjwvc3ZnPgo="
        },
        "displayName": "OpenAI Chat Model",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 25,
            "name": "AI"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      },
      {
        "id": 1163,
        "icon": "fa:database",
        "name": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorybufferwindow/"
                }
              ]
            },
            "categories": [
              "AI",
              "Langchain"
            ],
            "subcategories": {
              "AI": [
                "Memory"
              ],
              "Memory": [
                "For beginners"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Simple Memory"
        },
        "iconData": {
          "icon": "database",
          "type": "icon"
        },
        "displayName": "Simple Memory",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 25,
            "name": "AI"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      },
      {
        "id": 1205,
        "icon": "fa:network-wired",
        "name": "@n8n/n8n-nodes-langchain.toolWorkflow",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolworkflow/"
                }
              ]
            },
            "categories": [
              "AI",
              "Langchain"
            ],
            "subcategories": {
              "AI": [
                "Tools"
              ],
              "Tools": [
                "Recommended Tools"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Call n8n Workflow Tool"
        },
        "iconData": {
          "icon": "network-wired",
          "type": "icon"
        },
        "displayName": "Call n8n Workflow Tool",
        "typeVersion": 2,
        "nodeCategories": [
          {
            "id": 25,
            "name": "AI"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      }
    ],
    "categories": [
      {
        "id": 40,
        "name": "Support Chatbot"
      },
      {
        "id": 47,
        "name": "AI Chatbot"
      }
    ],
    "image": []
  }
}