{
  "name": "Build a multi-modal Telegram AI assistant with Gemini, voice & image generation",
  "nodes": [
    {
      "id": "4110b84f-1d69-4cb1-b234-3b74623f894e",
      "name": "Fetch User Memory2",
      "type": "n8n-nodes-base.mongoDb",
      "position": [
        1040,
        4704
      ]
    },
    {
      "id": "80135d9c-f498-4b94-8055-d1c9546c7002",
      "name": "Intent Analysis2",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1712,
        4704
      ]
    },
    {
      "id": "7dd84a47-6823-413f-a0e0-b9b948c0591f",
      "name": "Parse Intent2",
      "type": "n8n-nodes-base.code",
      "position": [
        2080,
        4704
      ]
    },
    {
      "id": "29cb5520-0506-4fe1-a0ce-7efe530399fe",
      "name": "Extract Memory Info1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3888,
        5088
      ]
    },
    {
      "id": "38019dc8-445a-428e-baeb-4864a1992909",
      "name": "Check If Worth Remembering1",
      "type": "n8n-nodes-base.if",
      "position": [
        4240,
        5344
      ]
    },
    {
      "id": "f6b97a69-5a68-4a62-8ce2-454004356bcc",
      "name": "Route Intent2",
      "type": "n8n-nodes-base.switch",
      "position": [
        2688,
        4704
      ]
    },
    {
      "id": "49d57908-109d-4d26-8319-96c2a3d81049",
      "name": "Google Gemini Chat Model7",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        4512,
        4032
      ]
    },
    {
      "id": "ff601272-8ee9-4324-aa74-4bb049460229",
      "name": "Chat Agent2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3504,
        5184
      ]
    },
    {
      "id": "c30cfb67-9c5b-4361-9466-cdfd288911ff",
      "name": "MongoDB Chat Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryMongoDbChat",
      "position": [
        4624,
        4032
      ]
    },
    {
      "id": "e7464617-de63-4452-bcd8-1994d30d3e5f",
      "name": "intent string2",
      "type": "n8n-nodes-base.code",
      "position": [
        2384,
        4704
      ]
    },
    {
      "id": "37cb8ea5-74f9-432f-a375-f617972b5405",
      "name": "Edit Fields4",
      "type": "n8n-nodes-base.set",
      "position": [
        3968,
        4208
      ]
    },
    {
      "id": "2b639361-f2a8-4bbd-bc71-2fc1cf56e305",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        4240,
        4208
      ]
    },
    {
      "id": "c4555bf4-e3f4-412d-9c1a-3cd2c668795d",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3584,
        4208
      ]
    },
    {
      "id": "ec9eeb7a-7a11-4dcf-b5f3-6b25721f38ef",
      "name": "Edit Fields5",
      "type": "n8n-nodes-base.set",
      "position": [
        4544,
        5344
      ]
    },
    {
      "id": "f666149b-2de4-4cb5-b7bf-287c18216874",
      "name": "Telegram Trigger1",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        160,
        4288
      ]
    },
    {
      "id": "9c5fdfac-36c4-4b2e-86e6-95b717f9dbc8",
      "name": "reminder status confirmation1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        5232,
        4864
      ]
    },
    {
      "id": "d2866543-7dad-43e5-a1dd-a120c78d5863",
      "name": "Telegram1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        5600,
        4864
      ]
    },
    {
      "id": "47ace0a4-cfcb-4d3a-b502-ee74e7e4ac7a",
      "name": "Google Tasks",
      "type": "n8n-nodes-base.googleTasks",
      "position": [
        4928,
        4864
      ]
    },
    {
      "id": "783efde6-3550-4ee1-93ae-e033ffe0d450",
      "name": "Google Calendar",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        4544,
        4864
      ]
    },
    {
      "id": "4fe3e686-4f33-46a8-a39b-b7204f652a86",
      "name": "Edit Fields6",
      "type": "n8n-nodes-base.set",
      "position": [
        4240,
        4864
      ]
    },
    {
      "id": "e67b71c0-745e-42dd-972c-cdf1cfd21e41",
      "name": "Build Context2",
      "type": "n8n-nodes-base.code",
      "position": [
        1264,
        4704
      ]
    },
    {
      "id": "180ccc08-3729-4784-8262-e0ecef189665",
      "name": "Check Voice Message1",
      "type": "n8n-nodes-base.if",
      "position": [
        608,
        4288
      ]
    },
    {
      "id": "c4f787be-16f5-4e0c-adad-7df5084f57cb",
      "name": "Store Transcript ID1",
      "type": "n8n-nodes-base.set",
      "position": [
        1264,
        3984
      ]
    },
    {
      "id": "32cdfe16-49f4-483f-bd0b-712fb873624c",
      "name": "Wait 5 Seconds1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1488,
        3984
      ]
    },
    {
      "id": "970411a1-6fef-4a00-9616-10c31bc5591b",
      "name": "Check Transcription Status1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1792,
        3872
      ]
    },
    {
      "id": "f230fb7a-8648-4e44-9b14-2e0ec64553ec",
      "name": "Is Completed?1",
      "type": "n8n-nodes-base.if",
      "position": [
        2080,
        3872
      ]
    },
    {
      "id": "dc1ecead-b948-4c36-9efb-232039361141",
      "name": "Format Results1",
      "type": "n8n-nodes-base.set",
      "position": [
        3584,
        3904
      ]
    },
    {
      "id": "e010f582-53f1-4466-8062-55f64677c24e",
      "name": "Is Error?1",
      "type": "n8n-nodes-base.if",
      "position": [
        2384,
        4368
      ]
    },
    {
      "id": "dbbedf27-1a69-464f-9677-2a5336c4736d",
      "name": "Fetch User Memory3",
      "type": "n8n-nodes-base.mongoDb",
      "position": [
        3968,
        3904
      ]
    },
    {
      "id": "951ce74b-462c-4856-966e-2bcbdb979c93",
      "name": "Build Context3",
      "type": "n8n-nodes-base.code",
      "position": [
        4240,
        3904
      ]
    },
    {
      "id": "6cc556b9-7f26-4ca3-8e2c-30e046d3d0d1",
      "name": "Chat Agent3",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4464,
        3808
      ]
    },
    {
      "id": "efe83e10-2c29-4bd6-b56d-c505ebdf57d1",
      "name": "Parse Natural Language Reminders to JSON1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3504,
        4864
      ]
    },
    {
      "id": "d96f5ee1-3a79-4f74-b8ee-40cd3721c37c",
      "name": "Clean & Parse1",
      "type": "n8n-nodes-base.code",
      "position": [
        3968,
        4864
      ]
    },
    {
      "id": "6304fa4a-e3b8-4948-9fd0-66d86283148a",
      "name": "Chat Agent Output Cleaner1",
      "type": "n8n-nodes-base.code",
      "position": [
        4240,
        5152
      ]
    },
    {
      "id": "88451c3d-fc64-4982-a3c6-6972a98f1ca1",
      "name": "Clean Prompt Text1",
      "type": "n8n-nodes-base.code",
      "position": [
        3280,
        4208
      ]
    },
    {
      "id": "65e0555d-6ae7-4e8a-a384-eec11747ce65",
      "name": "Detect Mood1",
      "type": "n8n-nodes-base.code",
      "position": [
        2688,
        5344
      ]
    },
    {
      "id": "ebe87004-7f42-47c6-8368-eaaeb129a572",
      "name": "Extract & Validate Data1",
      "type": "n8n-nodes-base.code",
      "position": [
        832,
        4960
      ]
    },
    {
      "id": "756d07b7-4435-4b97-a48f-f1fbe19bf23f",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        3280,
        5184
      ]
    },
    {
      "id": "7e60af7d-c0e1-4206-a302-2a67aa044897",
      "name": "Merge3",
      "type": "n8n-nodes-base.merge",
      "position": [
        2992,
        5008
      ]
    },
    {
      "id": "6e695d21-bbca-4b76-ad58-0bdc49933d58",
      "name": "Set GF Mode TRUE1",
      "type": "n8n-nodes-base.set",
      "position": [
        64,
        5712
      ]
    },
    {
      "id": "94cf4a94-8f3c-4246-b48a-281d3713ebb9",
      "name": "Set GF Mode FALSE1",
      "type": "n8n-nodes-base.set",
      "position": [
        64,
        3792
      ]
    },
    {
      "id": "7d8913e0-60a3-4f02-a4e5-68f9127ccbea",
      "name": "Toggle GF Mode1",
      "type": "n8n-nodes-base.switch",
      "position": [
        384,
        4272
      ]
    },
    {
      "id": "edbaef7b-2648-41f0-bae1-7a9adf0a2d38",
      "name": "Google Cloud Natural Language1",
      "type": "n8n-nodes-base.googleCloudNaturalLanguage",
      "position": [
        2384,
        5344
      ]
    },
    {
      "id": "80a2f37d-61b3-40f0-a03c-8e582502f4f5",
      "name": "Summarize Chat2",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3888,
        5584
      ]
    },
    {
      "id": "163591c3-5628-4106-b8b9-4752eeb1b0f4",
      "name": "Edit Fields7",
      "type": "n8n-nodes-base.set",
      "position": [
        4240,
        5584
      ]
    },
    {
      "id": "cbdd5ed5-1337-4ffc-a9e1-b2b97148ff65",
      "name": "Save Conversation Memory on user_memory1",
      "type": "n8n-nodes-base.mongoDb",
      "position": [
        4928,
        5344
      ]
    },
    {
      "id": "3bb6d161-866d-440a-b2e8-dbcd962dff60",
      "name": "Save Conversation Memory on memory_auto3",
      "type": "n8n-nodes-base.mongoDb",
      "position": [
        4544,
        5584
      ]
    },
    {
      "id": "8df3c0a9-7ef6-44c0-aa31-891e204b363f",
      "name": "Build Auto Memory Context1",
      "type": "n8n-nodes-base.code",
      "position": [
        1264,
        5152
      ]
    },
    {
      "id": "35263314-1fce-4689-a14f-b4dcae4a2c27",
      "name": "Fetch Auto Memory1",
      "type": "n8n-nodes-base.mongoDb",
      "position": [
        1040,
        5152
      ]
    },
    {
      "id": "131b66c9-e2ae-4d80-ba37-718243ba5deb",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1488,
        4704
      ]
    },
    {
      "id": "89344e12-bef2-434c-8d4c-04d9f10a2b18",
      "name": "intent from route intent1",
      "type": "n8n-nodes-base.if",
      "position": [
        2992,
        4464
      ]
    },
    {
      "id": "094e1b07-60c0-4283-a4fb-b33f29dc952f",
      "name": "intent from string1",
      "type": "n8n-nodes-base.if",
      "position": [
        2992,
        5200
      ]
    },
    {
      "id": "fc34f227-fe1a-4e75-9df0-9b57ecf08e87",
      "name": "intent match checker1",
      "type": "n8n-nodes-base.merge",
      "position": [
        3280,
        4864
      ]
    },
    {
      "id": "740d2a2b-368f-431c-bc2e-7edc1ffe05bb",
      "name": "Google Gemini Chat Model8",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1808,
        4928
      ]
    },
    {
      "id": "d3aa2465-ff5d-47cb-89f8-22840b1bb448",
      "name": "Google Gemini Chat Model9",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3968,
        5312
      ]
    },
    {
      "id": "15e73dcf-f263-4c4e-bcc9-5f71f0fcee25",
      "name": "Google Gemini Chat Model10",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3968,
        5808
      ]
    },
    {
      "id": "009fa58e-6841-450b-9dbe-f7eb1920a7ad",
      "name": "Run Edge-TTS1",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        4928,
        3904
      ]
    },
    {
      "id": "1211542b-b400-45c6-8bb5-50dedfb48877",
      "name": "Read MP3 File1",
      "type": "n8n-nodes-base.readBinaryFile",
      "position": [
        5312,
        3904
      ]
    },
    {
      "id": "6287db15-ce98-4b95-b45c-c740a7ea9559",
      "name": "Summarize Chat3",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        4848,
        4208
      ]
    },
    {
      "id": "3fdb2b7d-6d4e-4554-ac56-b0f191d5deb8",
      "name": "Save Conversation Memory on memory_auto4",
      "type": "n8n-nodes-base.mongoDb",
      "position": [
        5600,
        4208
      ]
    },
    {
      "id": "9ffd49fd-1912-4fe1-88eb-21fe244f2954",
      "name": "Google Gemini Chat Model11",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        4944,
        4432
      ]
    },
    {
      "id": "fca45138-0170-4848-b4f3-3e8a32ea0c71",
      "name": "Save Conversation Memory on memory_auto5",
      "type": "n8n-nodes-base.mongoDb",
      "position": [
        6432,
        3904
      ]
    },
    {
      "id": "d51af65f-a5f5-4c05-b7b6-e6b70cb57841",
      "name": "Google Gemini Chat Model12",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        5904,
        4128
      ]
    },
    {
      "id": "6902bb1a-86d0-4d8e-b1d6-49ef22423aed",
      "name": "Intent Analysis3",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2304,
        3808
      ]
    },
    {
      "id": "d4718b18-3ab6-46ab-bc1a-01bb44f87e47",
      "name": "Parse Intent3",
      "type": "n8n-nodes-base.code",
      "position": [
        2688,
        3808
      ]
    },
    {
      "id": "1458aeb0-a55e-4afc-87fa-c9295423a066",
      "name": "Route Intent3",
      "type": "n8n-nodes-base.switch",
      "position": [
        3280,
        3808
      ]
    },
    {
      "id": "24515f37-6718-4d4d-a590-4232d3db8a93",
      "name": "intent string3",
      "type": "n8n-nodes-base.code",
      "position": [
        2992,
        3808
      ]
    },
    {
      "id": "81fffd54-0c2e-42ea-90b6-cf787251321f",
      "name": "Google Gemini Chat Model13",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2400,
        4032
      ]
    },
    {
      "id": "885bc86e-1533-44a7-b4db-2a6a15566f08",
      "name": "HTTP Request for image generation on voice input1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3584,
        3712
      ]
    },
    {
      "id": "4c83e9e6-6375-4a3a-9f4d-46421e7b419e",
      "name": "HTTP Request Fetch Voice Message Audio1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        3984
      ]
    },
    {
      "id": "5c66915b-1f71-4df1-bf26-835ba1027918",
      "name": "Submit Audio Transcription Job1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        3984
      ]
    },
    {
      "id": "1fdaa2ee-023b-4465-bfc0-82004e995ab4",
      "name": "Reply: Sorry, Didn’t Hear You1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2688,
        4368
      ]
    },
    {
      "id": "ebe2913b-91dc-4c01-89a4-6a40eced6cea",
      "name": "Summarize Voice Message1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        5824,
        3904
      ]
    },
    {
      "id": "b5391cdb-9331-42ca-b67c-85b616ce30f8",
      "name": "Prepare Voice Summary Document1",
      "type": "n8n-nodes-base.set",
      "position": [
        6208,
        3904
      ]
    },
    {
      "id": "d6b8bbf6-f7de-4f4a-9325-4c882c2c2948",
      "name": "Send reply1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        4544,
        5152
      ]
    },
    {
      "id": "70d58519-d507-464a-8ea9-9c2e7cb130d0",
      "name": "Check GF Mode Status1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2688,
        5552
      ]
    },
    {
      "id": "7b767211-37cf-448e-96b2-837a97788ed0",
      "name": "Google Sheets:Set GF Mode FALSE1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        288,
        3792
      ]
    },
    {
      "id": "7b54abc4-cebc-4beb-8f9c-9e9e127d8508",
      "name": "Google Sheets: Set GF Mode TRUE1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        288,
        5712
      ]
    },
    {
      "id": "5d5a556d-8df9-4e39-9a6f-b91069455c08",
      "name": "Send Mode Confirmation : /gf_off1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        512,
        3792
      ]
    },
    {
      "id": "f94e4f61-52bf-4e17-b743-83767e7aec7f",
      "name": "Send Mode Confirmation : /gf_on1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        512,
        5712
      ]
    },
    {
      "id": "faf9e2a9-06cd-4276-bab2-2349d66185b1",
      "name": "Send Image for Voice msg1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        5600,
        3904
      ]
    },
    {
      "id": "369cecc4-acf5-4860-8f51-41e84050a979",
      "name": "Send Image for Text1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        4544,
        4208
      ]
    },
    {
      "id": "29fdeffd-ec9e-47b0-b405-a16f91ff7131",
      "name": "Edit Fields for \"Build Memory_auto1 Document1",
      "type": "n8n-nodes-base.set",
      "position": [
        5312,
        4208
      ]
    },
    {
      "id": "40b8890f-07c3-448a-bc1f-756c3f9814c2",
      "name": "AI Agent FOR Generate Image Prompt1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2912,
        4208
      ]
    },
    {
      "id": "d79faab0-46f1-475b-ba85-ab23ec43acba",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        3680
      ],
      "parameters": {
        "width": 6720,
        "height": 2260,
        "content": ""
      }
    },
    {
      "id": "f6359d8e-79fb-47dd-9e22-ede24a9fdedf",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3200,
        4784
      ],
      "parameters": {
        "width": 2620,
        "height": 240,
        "content": "## Set Reminder workflow "
      }
    },
    {
      "id": "35107c88-40df-4913-adc3-4f4deb8e2cda",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3200,
        5072
      ],
      "parameters": {
        "width": 2620,
        "height": 860,
        "content": "## Main Chat workflow  "
      }
    },
    {
      "id": "2270c23d-1777-4b60-b75c-f79e810add09",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2848,
        4144
      ],
      "parameters": {
        "width": 2980,
        "height": 260,
        "content": "## image generation workflow (for chat input)"
      }
    },
    {
      "id": "7074c9ce-53c3-48b3-bcb0-8debe8480bf0",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        768,
        4640
      ],
      "parameters": {
        "width": 2400,
        "height": 1040,
        "content": "## Segment of \"Intent Analysis → Context Building → Routing\""
      }
    },
    {
      "id": "dcddf04e-1fd8-40f7-b7d3-6a597ed2e1d1",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        3712
      ],
      "parameters": {
        "width": 680,
        "height": 280,
        "content": "## Update GF Mode → Notify User"
      }
    },
    {
      "id": "d09d51b5-615d-45d9-9ff9-0251a8119a96",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        5632
      ],
      "parameters": {
        "width": 680,
        "height": 280,
        "content": "## Update GF Mode → Notify User"
      }
    },
    {
      "id": "e8ccb581-cb05-4818-92b1-6ce4616ab988",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        4144
      ],
      "parameters": {
        "width": 620,
        "height": 380,
        "content": "Telegram Request Handling \"🔔 Trigger → Route\"\n\n\"🎙️ Voice Pipeline\"\n\n\"💬 Chat Pipeline\""
      }
    },
    {
      "id": "0af3f0ff-c170-4766-bff5-bb8a643b2792",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        3728
      ],
      "parameters": {
        "width": 2720,
        "height": 900,
        "content": "## Segment (Voice input) \"Intent Analysis → Context Building → Routing\""
      }
    },
    {
      "id": "12bef327-ae21-4406-90e6-7293eced2ae5",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3504,
        3680
      ],
      "parameters": {
        "width": 260,
        "height": 200,
        "content": ""
      }
    },
    {
      "id": "9f575aca-fabd-4299-954e-62dfc0220d63",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3520,
        3728
      ],
      "parameters": {
        "width": 3100,
        "height": 460,
        "content": "## Segment (Voice input) \"Fetch memory → Context Building → Ai agent → TTS → Reply as voice message → Summarize memory → save in Mongodb \""
      }
    }
  ],
  "connections": {
    "Code1": {
      "main": [
        [
          {
            "node": "Chat Agent2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Intent Analysis2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge3": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Error?1": {
      "main": [
        [
          {
            "node": "Reply: Sorry, Didn’t Hear You1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5 Seconds1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Agent2": {
      "main": [
        [
          {
            "node": "Extract Memory Info1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Summarize Chat2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Agent3": {
      "main": [
        [
          {
            "node": "Run Edge-TTS1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Mood1": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Edit Fields4": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields5": {
      "main": [
        [
          {
            "node": "Save Conversation Memory on user_memory1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields6": {
      "main": [
        [
          {
            "node": "Google Calendar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields7": {
      "main": [
        [
          {
            "node": "Save Conversation Memory on memory_auto3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Tasks": {
      "main": [
        [
          {
            "node": "reminder status confirmation1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Edit Fields4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Intent2": {
      "main": [
        [
          {
            "node": "intent string2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Intent3": {
      "main": [
        [
          {
            "node": "intent string3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Intent2": {
      "main": [
        [
          {
            "node": "AI Agent FOR Generate Image Prompt1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "intent from route intent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Intent3": {
      "main": [
        [
          {
            "node": "HTTP Request for image generation on voice input1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format Results1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Edge-TTS1": {
      "main": [
        [
          {
            "node": "Read MP3 File1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Context2": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Context3": {
      "main": [
        [
          {
            "node": "Chat Agent3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean & Parse1": {
      "main": [
        [
          {
            "node": "Edit Fields6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Completed?1": {
      "main": [
        [
          {
            "node": "Intent Analysis3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Is Error?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read MP3 File1": {
      "main": [
        [
          {
            "node": "Send Image for Voice msg1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "intent string2": {
      "main": [
        [
          {
            "node": "Route Intent2",
            "type": "main",
            "index": 0
          },
          {
            "node": "intent from string1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "intent string3": {
      "main": [
        [
          {
            "node": "Route Intent3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Send Image for Text1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Results1": {
      "main": [
        [
          {
            "node": "Fetch User Memory3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar": {
      "main": [
        [
          {
            "node": "Google Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Chat2": {
      "main": [
        [
          {
            "node": "Edit Fields7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Chat3": {
      "main": [
        [
          {
            "node": "Edit Fields for \"Build Memory_auto1 Document1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Toggle GF Mode1": {
      "main": [
        [
          {
            "node": "Set GF Mode TRUE1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set GF Mode FALSE1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check Voice Message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 Seconds1": {
      "main": [
        [
          {
            "node": "Check Transcription Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Intent Analysis2": {
      "main": [
        [
          {
            "node": "Parse Intent2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Intent Analysis3": {
      "main": [
        [
          {
            "node": "Parse Intent3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set GF Mode TRUE1": {
      "main": [
        [
          {
            "node": "Google Sheets: Set GF Mode TRUE1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger1": {
      "main": [
        [
          {
            "node": "Toggle GF Mode1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Prompt Text1": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Auto Memory1": {
      "main": [
        [
          {
            "node": "Build Auto Memory Context1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch User Memory2": {
      "main": [
        [
          {
            "node": "Build Context2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch User Memory3": {
      "main": [
        [
          {
            "node": "Build Context3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set GF Mode FALSE1": {
      "main": [
        [
          {
            "node": "Google Sheets:Set GF Mode FALSE1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "intent from string1": {
      "main": [
        [
          {
            "node": "intent match checker1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Check Voice Message1": {
      "main": [
        [
          {
            "node": "HTTP Request Fetch Voice Message Audio1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract & Validate Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Memory Info1": {
      "main": [
        [
          {
            "node": "Check If Worth Remembering1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Chat Agent Output Cleaner1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MongoDB Chat Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent FOR Generate Image Prompt1",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Chat Agent3",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Chat Agent2",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Send Image for Text1": {
      "main": [
        [
          {
            "node": "Summarize Chat3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Transcript ID1": {
      "main": [
        [
          {
            "node": "Wait 5 Seconds1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check GF Mode Status1": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "intent match checker1": {
      "main": [
        [
          {
            "node": "Parse Natural Language Reminders to JSON1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract & Validate Data1": {
      "main": [
        [
          {
            "node": "Check GF Mode Status1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Google Cloud Natural Language1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Auto Memory1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch User Memory2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Voice Message1": {
      "main": [
        [
          {
            "node": "Prepare Voice Summary Document1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model7": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent FOR Generate Image Prompt1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "reminder status confirmation1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Parse Natural Language Reminders to JSON1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Chat Agent3",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Chat Agent2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model8": {
      "ai_languageModel": [
        [
          {
            "node": "Intent Analysis2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model9": {
      "ai_languageModel": [
        [
          {
            "node": "Extract Memory Info1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send Image for Voice msg1": {
      "main": [
        [
          {
            "node": "Summarize Voice Message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "intent from route intent1": {
      "main": [
        [
          {
            "node": "intent match checker1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Auto Memory Context1": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Chat Agent Output Cleaner1": {
      "main": [
        [
          {
            "node": "Send reply1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model10": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize Chat2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model11": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize Chat3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model12": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize Voice Message1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model13": {
      "ai_languageModel": [
        [
          {
            "node": "Intent Analysis3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check If Worth Remembering1": {
      "main": [
        [
          {
            "node": "Edit Fields5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Transcription Status1": {
      "main": [
        [
          {
            "node": "Is Completed?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "reminder status confirmation1": {
      "main": [
        [
          {
            "node": "Telegram1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Cloud Natural Language1": {
      "main": [
        [
          {
            "node": "Detect Mood1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Voice Summary Document1": {
      "main": [
        [
          {
            "node": "Save Conversation Memory on memory_auto5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Submit Audio Transcription Job1": {
      "main": [
        [
          {
            "node": "Store Transcript ID1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets: Set GF Mode TRUE1": {
      "main": [
        [
          {
            "node": "Send Mode Confirmation : /gf_on1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets:Set GF Mode FALSE1": {
      "main": [
        [
          {
            "node": "Send Mode Confirmation : /gf_off1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent FOR Generate Image Prompt1": {
      "main": [
        [
          {
            "node": "Clean Prompt Text1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request Fetch Voice Message Audio1": {
      "main": [
        [
          {
            "node": "Submit Audio Transcription Job1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Natural Language Reminders to JSON1": {
      "main": [
        [
          {
            "node": "Clean & Parse1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields for \"Build Memory_auto1 Document1": {
      "main": [
        [
          {
            "node": "Save Conversation Memory on memory_auto4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}