{
  "name": "Telegram Personal OS",
  "nodes": [
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.1,
      "position": [
        -320,
        -20
      ],
      "id": "1ee6c555-9c6d-4e6d-829e-80ae689436cc",
      "name": "Telegram Trigger",
      "webhookId": "9f6f53e6-885f-4e06-8455-5394c151de4d",
      "credentials": {
        "telegramApi": {
          "id": "gDH1OVvTVeerwe4J",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.message.text }}",
                    "rightValue": "",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "text"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "427fd0a5-3651-4ed4-9598-383fb4205710",
                    "leftValue": "={{ $json.message.voice.file_id }}",
                    "rightValue": "",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "voice"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        -100,
        -20
      ],
      "id": "8642d8e0-5cf7-4b93-b29d-952f1fafa4cc",
      "name": "Switch"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "61f54588-1104-494a-b28f-e175129206bc",
              "name": "text",
              "value": "={{ $json.message.text }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        120,
        -120
      ],
      "id": "0cc20588-11c5-41e1-80f2-816008288150",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "resource": "file",
        "fileId": "={{ $json.message.voice.file_id }}"
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        120,
        80
      ],
      "id": "d0b6a527-5621-4081-9757-9cefd1d55753",
      "name": "Telegram",
      "credentials": {
        "telegramApi": {
          "id": "gDH1OVvTVeerwe4J",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "resource": "audio",
        "operation": "transcribe",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        340,
        80
      ],
      "id": "aa959d4d-9eec-45e5-890f-ac103b9c4d11",
      "name": "OpenAI",
      "credentials": {
        "openAiApi": {
          "id": "6LnEKBlR3JCiWGdk",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.text }}",
        "options": {
          "systemMessage": "=You are a helpful assistant.\n\nYou have access to a Gmail Account where you can read unread messages in the inbox.\n\nYou also have access to GMail Send tool which allows you to send emails to anyone.\n\nYou also have Access to the Google Calendar tool that allows you to create, delet and read any events in the calendera. The current time and date is: {{ $now }}. Make sure to set the start and end time for any event you create accordingly.\n\nYou also have access to the Google Sheet Tool that allows you to read, create new rows and update rows of the Google Sheet. Always provide the due date of any task you save into the Google Sheet in the following format: YYYY-MM-DDTHH:mm:ss.sss±HH:MM (ISO 8601 with milliseconds and timezone). For example: 2025-01-28T19:09:18.910+01:00. Do not use any other format.\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.7,
      "position": [
        600,
        -120
      ],
      "id": "8ba843c4-e6bc-4691-af74-eb8593b72953",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": "claude-3-5-sonnet-20241022",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.2,
      "position": [
        540,
        80
      ],
      "id": "1e7957dc-d459-4b62-a32b-d14e8e6e4787",
      "name": "Anthropic Chat Model",
      "credentials": {
        "anthropicApi": {
          "id": "V3fqS2iW92jDHAR8",
          "name": "Anthropic account"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $('Switch').item.json.message.chat.id }}",
        "text": "={{ $json.output }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1040,
        -120
      ],
      "id": "2248fc08-91f7-4bec-b04b-21fe1f048764",
      "name": "Telegram1",
      "credentials": {
        "telegramApi": {
          "id": "gDH1OVvTVeerwe4J",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "operation": "getAll",
        "limit": 20,
        "filters": {
          "labelIds": [
            "INBOX",
            "UNREAD"
          ]
        }
      },
      "type": "n8n-nodes-base.gmailTool",
      "typeVersion": 2.1,
      "position": [
        740,
        240
      ],
      "id": "65b37be3-cab4-411a-90ec-5af43bf699cb",
      "name": "Gmail - Get Many",
      "webhookId": "3a2e66ae-720f-4c14-88d3-f566d5ee176b",
      "credentials": {
        "gmailOAuth2": {
          "id": "wKvjlp4kO6jFvrie",
          "name": "Gmail account"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "={{ $fromAI(\"to\",\"raw email adress of the recipient\")}}",
        "subject": "={{ $fromAI(\"subject\",\"subject line for the email\")}}",
        "emailType": "text",
        "message": "={{ $fromAI(\"body\",\"the body of the email\")}}",
        "options": {}
      },
      "type": "n8n-nodes-base.gmailTool",
      "typeVersion": 2.1,
      "position": [
        880,
        240
      ],
      "id": "d278f67a-06d7-4774-84b5-3bbfc7892ffa",
      "name": "Gmail - Send",
      "webhookId": "bf1a9181-84e7-4f89-9e46-55c8413809c8",
      "credentials": {
        "gmailOAuth2": {
          "id": "wKvjlp4kO6jFvrie",
          "name": "Gmail account"
        }
      }
    },
    {
      "parameters": {
        "calendar": {
          "__rl": true,
          "value": "hello@autonoma.agency",
          "mode": "list",
          "cachedResultName": "hello@autonoma.agency"
        },
        "start": "={{ $fromAI(\"start\",\"date and time for when the event should start\") }}",
        "end": "={{ $fromAI(\"end\",\"date and time for when the event should end\") }}",
        "additionalFields": {
          "summary": "={{ $fromAI(\"title\",\"title of the event\") }}"
        }
      },
      "type": "n8n-nodes-base.googleCalendarTool",
      "typeVersion": 1.3,
      "position": [
        1180,
        240
      ],
      "id": "3b67fdee-400d-4947-b2df-d5a76f854dc3",
      "name": "Calendar Create",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "giL6W6QGrDdUufP7",
          "name": "Google Calendar account"
        }
      }
    },
    {
      "parameters": {
        "operation": "getAll",
        "calendar": {
          "__rl": true,
          "value": "hello@autonoma.agency",
          "mode": "list",
          "cachedResultName": "hello@autonoma.agency"
        },
        "limit": 20,
        "options": {}
      },
      "type": "n8n-nodes-base.googleCalendarTool",
      "typeVersion": 1.3,
      "position": [
        1040,
        240
      ],
      "id": "f4cfb33f-954c-4f03-a79e-d6829f236c84",
      "name": "Calendar Read",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "giL6W6QGrDdUufP7",
          "name": "Google Calendar account"
        }
      }
    },
    {
      "parameters": {
        "operation": "delete",
        "calendar": {
          "__rl": true,
          "value": "=hello@autonoma.agency",
          "mode": "id",
          "__regex": "(^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*)"
        },
        "eventId": "={{ $fromAI(\"id\",\"the id of the event\") }}",
        "options": {}
      },
      "type": "n8n-nodes-base.googleCalendarTool",
      "typeVersion": 1.3,
      "position": [
        1300,
        200
      ],
      "id": "650b8651-b816-4f4e-966d-f907f6a32d57",
      "name": "Google Calendar",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "giL6W6QGrDdUufP7",
          "name": "Google Calendar account"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8",
          "mode": "list",
          "cachedResultName": "AI Agent Test 1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit#gid=0"
        },
        "options": {
          "dataLocationOnSheet": {
            "values": {
              "rangeDefinition": "detectAutomatically",
              "readRowsUntil": "firstEmptyRow"
            }
          }
        }
      },
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.5,
      "position": [
        640,
        420
      ],
      "id": "95762df8-b7a6-4f17-a38b-44c690752645",
      "name": "Google Sheets",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "1kDwbYdAIpiZBIKr",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8",
          "mode": "list",
          "cachedResultName": "AI Agent Test 1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Task Name": "={{ $fromAI(\"task_name\",\"the description of the task\")}}",
            "Due Date": "={{ $fromAI(\"due_date\",\"the due date and time of the task when it should be completed\")}}",
            "Status": "={{ $fromAI(\"status\",\"the current status of the task like pending or completed\")}}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "Task Name",
              "displayName": "Task Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Due Date",
              "displayName": "Due Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.5,
      "position": [
        480,
        420
      ],
      "id": "8c704735-5c16-43eb-9481-29d4764c9594",
      "name": "Google Sheets1",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "1kDwbYdAIpiZBIKr",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8",
          "mode": "list",
          "cachedResultName": "AI Agent Test 1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Status": "={{ $fromAI(\"status\",\"the current status of the task like pending or completed\")}}",
            "Due Date": "={{ $fromAI(\"due_date\",\"the due date and time of the task when it should be completed\")}}",
            "Task Name": "={{ $fromAI(\"task_name\",\"the description of the task\")}}"
          },
          "matchingColumns": [
            "Task Name"
          ],
          "schema": [
            {
              "id": "Task Name",
              "displayName": "Task Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Due Date",
              "displayName": "Due Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.5,
      "position": [
        320,
        440
      ],
      "id": "3eec7e0b-87f8-4060-9838-c2a383031d67",
      "name": "Google Sheets2",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "1kDwbYdAIpiZBIKr",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8",
          "mode": "list",
          "cachedResultName": "AI Agent Test 1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit#gid=0"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "=Status",
              "lookupValue": "pending"
            },
            {
              "lookupColumn": "Reminder Sent"
            }
          ]
        },
        "options": {
          "dataLocationOnSheet": {
            "values": {
              "rangeDefinition": "specifyRange"
            }
          }
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        120,
        -340
      ],
      "id": "9720e1db-e01e-4e7a-a3e8-362d5efeaae9",
      "name": "Google Sheets3",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "1kDwbYdAIpiZBIKr",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const currentTime = new Date().getTime(); // Current time\nconst reminderTime = currentTime + 30 * 60 * 1000; // 30 minutes from now\n\nreturn items\n  .map(item => {\n    const dueDateString = item.json[\"Due Date\"]; // Original due date string\n    let normalizedDate;\n\n    // Normalize the date format\n    if (dueDateString.includes(\"T\")) {\n      // Already in ISO 8601 format, no change needed\n      normalizedDate = dueDateString;\n    } else if (dueDateString.match(/^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$/)) {\n      // Convert \"YYYY-MM-DD HH:mm:ss\" to \"YYYY-MM-DDTHH:mm:ss\"\n      normalizedDate = dueDateString.replace(\" \", \"T\");\n    } else {\n      // Unsupported format, log an error and exclude it\n      console.error(`Unsupported date format: ${dueDateString}`);\n      return null;\n    }\n\n    // Parse the normalized date\n    const dueDate = new Date(normalizedDate).getTime();\n\n    // Check if the date is valid\n    if (isNaN(dueDate)) {\n      console.error(`Invalid date after normalization: ${dueDateString}`);\n      return null;\n    }\n\n    // Add the normalized date to the item for debugging purposes\n    item.json[\"Normalized Due Date\"] = normalizedDate;\n\n    // Filter: Include tasks due within the next 30 minutes\n    if (dueDate <= reminderTime && dueDate > currentTime) {\n      return item; // Include this task\n    } else {\n      return null; // Exclude this task\n    }\n  })\n  .filter(item => item !== null); // Remove invalid or excluded tasks\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        340,
        -340
      ],
      "id": "5cfd489f-22ab-47dd-b22b-3964ad1ea127",
      "name": "Code"
    },
    {
      "parameters": {
        "chatId": "7276868977",
        "text": "={{$json.message}}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        780,
        -340
      ],
      "id": "3b3cc720-4d3d-49c5-af8c-94ddbc663c65",
      "name": "Telegram2",
      "credentials": {
        "telegramApi": {
          "id": "gDH1OVvTVeerwe4J",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "return items.map(item => {\n    const taskName = item.json[\"Task Name\"];\n    const dueDate = new Date(item.json[\"Due Date\"]);\n\n    // Format the date to \"January 28, 2025 at 3:28 PM\"\n    const formattedDate = dueDate.toLocaleString(\"en-US\", {\n        month: \"long\", // Full month name\n        day: \"numeric\", // Numeric day\n        year: \"numeric\", // Full year\n        hour: \"numeric\", // Hour (12-hour format)\n        minute: \"2-digit\", // Two-digit minutes\n        hour12: true // Use 12-hour clock (AM/PM)\n    });\n\n    // Create a new message format\n    return {\n        json: {\n            message: `Reminder: Task \"${taskName}\" is due on ${formattedDate}.`\n        }\n    };\n});\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        560,
        -340
      ],
      "id": "281ef3b5-802a-4f2a-92ab-2631af7a16bb",
      "name": "Code1"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8",
          "mode": "list",
          "cachedResultName": "AI Agent Test 1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XjfxhMqTkE9qd0PFPeUnIRrib2-DWZqyPHiHO_zn3_8/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Reminder Sent": "=Yes",
            "Due Date": "={{ $('Code').item.json['Due Date'] }}"
          },
          "matchingColumns": [
            "Due Date"
          ],
          "schema": [
            {
              "id": "Task Name",
              "displayName": "Task Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Due Date",
              "displayName": "Due Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Reminder Sent",
              "displayName": "Reminder Sent",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        1000,
        -340
      ],
      "id": "380c6522-0365-4666-a75b-d710c876d6b7",
      "name": "Google Sheets4",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "1kDwbYdAIpiZBIKr",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -100,
        -340
      ],
      "id": "939feffe-1588-4420-a5c7-585976ee2062",
      "name": "Schedule Trigger"
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Telegram1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail - Get Many": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Gmail - Send": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calendar Create": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calendar Read": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets2": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets3": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "Telegram2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram2": {
      "main": [
        [
          {
            "node": "Google Sheets4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Google Sheets3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "08d2b435-a51f-4ff2-94d0-1dda8487917b",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "7ff6625f0127f3e9a7865e3493009de1c48f57dc5ed87def3ae3316be7f6b238"
  },
  "id": "6HFJUMUjH5MCuYEl",
  "tags": []
}