{
  "name": "One telegram chat to edit, thumbnail & auto-post your videos everywhere",
  "nodes": [
    {
      "id": "fe57df5b-9bd6-4b89-9f2a-7e492f007ee6",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        592,
        512
      ]
    },
    {
      "id": "8f54add4-f32f-41a5-be2f-9602c8c0235e",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1120,
        464
      ]
    },
    {
      "id": "ab6b3c42-8f87-4d9c-b446-467420ba89dc",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1856,
        64
      ]
    },
    {
      "id": "91108b1b-d794-41bf-becc-df8fa7c5bf72",
      "name": "Transcribe a recording",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1696,
        320
      ]
    },
    {
      "id": "b24c21d7-ba1a-460e-8575-3908e450d9ad",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        240
      ],
      "parameters": {
        "width": 480,
        "height": 736,
        "content": "# INSTRUCTIONS\n\n## 1. Create your chat bot and generate access token\n-> Search Bot father in telegram\n-> \"/newbot\"\n-> follow instructions and create access token\n-> Copy access token\n\n## 2. Create Cre"
      }
    },
    {
      "id": "a7c7769a-498a-43ed-bc54-f8d5df6f4b63",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        320
      ],
      "parameters": {
        "width": 208,
        "height": 496,
        "content": "### Waits for telegram message to start workflow"
      }
    },
    {
      "id": "5b0a6572-dcb8-4607-8f68-7b1f57074c1d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        320
      ],
      "parameters": {
        "width": 208,
        "height": 496,
        "content": "### Determines what type of message was sent"
      }
    },
    {
      "id": "c90fc3ab-dfee-41de-9da0-2cedc8ae1a8b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        240
      ],
      "parameters": {
        "width": 192,
        "height": 208,
        "content": "### Get Audio File"
      }
    },
    {
      "id": "2d3fef65-2c63-4672-ba2e-dc8c4dce3050",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        240
      ],
      "parameters": {
        "width": 208,
        "height": 208,
        "content": "### Use OpenAI to Transcribe Recording"
      }
    },
    {
      "id": "98231e32-f8c9-4489-a190-c531beee462f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2256,
        848
      ],
      "parameters": {
        "width": 208,
        "height": 224,
        "content": "### Choose any LLM you want here"
      }
    },
    {
      "id": "27be2872-1ff2-44f3-95df-aa9e2dcc2f37",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        480
      ],
      "parameters": {
        "width": 288,
        "height": 368,
        "content": "### Base AI Agent. Adjust \"System Prompt\" to personalize this agent to your needs"
      }
    },
    {
      "id": "1c156152-bd4d-4294-b462-2739ae45ca07",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        480
      ],
      "parameters": {
        "width": 224,
        "height": 368,
        "content": "### Sends AI Agent output to you in Telegram for confirmation"
      }
    },
    {
      "id": "8310f4e1-07f2-458a-8d41-a347aca32136",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        848
      ],
      "parameters": {
        "width": 230,
        "height": 224,
        "content": "### Parse Output"
      }
    },
    {
      "id": "8779f8c2-1ab3-45a9-8787-0177b2b09534",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        512
      ],
      "parameters": {
        "width": 192,
        "height": 224,
        "content": "### Get Photo File"
      }
    },
    {
      "id": "5fd1f209-90cf-4956-a029-b7fa86d4f4e0",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        512
      ],
      "parameters": {
        "width": 208,
        "height": 224,
        "content": "### Use Gemini to analyze photo"
      }
    },
    {
      "id": "ec2895ca-8912-4b4d-88e3-f6edd46e6a3c",
      "name": "Get a Audio File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1440,
        320
      ]
    },
    {
      "id": "f8290197-046a-448f-86d0-154fed593d21",
      "name": "Get a Photo",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1408,
        592
      ]
    },
    {
      "id": "262a8562-66ac-4834-b424-cbe36fad8a48",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        800
      ],
      "parameters": {
        "width": 192,
        "height": 240,
        "content": "### Get Video File"
      }
    },
    {
      "id": "6a25a9e7-8839-4de4-b5f4-2d8d7ed63a44",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        800
      ],
      "parameters": {
        "width": 208,
        "height": 240,
        "content": "### Use Gemini to analyze Video"
      }
    },
    {
      "id": "5ba18177-7feb-4455-976b-14f819f9c449",
      "name": "Analyze video",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1696,
        864
      ]
    },
    {
      "id": "a418361f-6f9e-4c4b-ad56-4454b94e7660",
      "name": "Analyze an image",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1680,
        592
      ]
    },
    {
      "id": "a767e4bc-e77f-406c-b36d-e05610d77ea7",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2304,
        928
      ]
    },
    {
      "id": "a64a1fb5-2cfd-4ac9-ab16-e298f1095fa8",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2496,
        928
      ]
    },
    {
      "id": "6ed6d92b-b5d8-4f4d-9428-71a59e151f6e",
      "name": "Send Regular Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        944,
        512
      ]
    },
    {
      "id": "e2e43a32-b5f5-4bf8-bb11-f09b4e70d5ed",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2272,
        96
      ],
      "parameters": {
        "width": 224,
        "height": 224,
        "content": "### Choose any LLM you want here"
      }
    },
    {
      "id": "9d670f42-6a36-45a1-a5d6-60985393c167",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2304,
        -304
      ],
      "parameters": {
        "width": 288,
        "height": 368,
        "content": "### Base AI Agent. Adjust \"System Prompt\" to personalize this agent to your needs"
      }
    },
    {
      "id": "ac92170d-0fab-4e38-9a0a-736765ff4822",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        -288
      ],
      "parameters": {
        "width": 224,
        "height": 368,
        "content": "### Sends AI Agent output to you in Telegram for confirmation"
      }
    },
    {
      "id": "8ac30b76-6183-4d6e-8617-2a19c9cdb015",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2496,
        96
      ],
      "parameters": {
        "width": 230,
        "height": 224,
        "content": "### Parse Output "
      }
    },
    {
      "id": "5837c0b5-45b7-4020-b98d-b0ad7bfd9dcb",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2336,
        176
      ]
    },
    {
      "id": "5ed5f0d6-4e35-41be-b7d6-ac44563ea67d",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2496,
        176
      ]
    },
    {
      "id": "09db5082-77bc-410b-a1f3-0d92ebd8d171",
      "name": "Get a Photo File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3536,
        -144
      ]
    },
    {
      "id": "50754630-21b4-4c94-8e2c-1e3fb0e8ed43",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        752,
        512
      ]
    },
    {
      "id": "5c9eedbd-bb8e-4d51-b2f8-2bc25fd02f43",
      "name": "AI Agent Photos",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2352,
        -128
      ]
    },
    {
      "id": "0fe10676-1310-427c-af4c-c0d1553ffd7f",
      "name": "AI Agent Videos",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2368,
        624
      ]
    },
    {
      "id": "b383c0ae-6cf1-415f-b028-e5ebcaa9dc7e",
      "name": "Get a Video File2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3536,
        608
      ]
    },
    {
      "id": "6c57e733-fa9b-489d-a986-7b7990c3cd7d",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        2976,
        -128
      ]
    },
    {
      "id": "b704f159-7e0e-454d-a82e-257707fca311",
      "name": "Send message and wait for response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2688,
        -128
      ]
    },
    {
      "id": "ba14f239-70ce-444e-a1f0-f6d9a9371b6c",
      "name": "Send message and wait for response1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2688,
        624
      ]
    },
    {
      "id": "ca6c16d5-bcde-490d-8cbc-4f2e9d4ac2c9",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        2880,
        624
      ]
    },
    {
      "id": "80c5b84d-e539-4802-8f37-4eddf16ed77e",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2288,
        -672
      ],
      "parameters": {
        "width": 224,
        "height": 224,
        "content": "### Choose any LLM you want here"
      }
    },
    {
      "id": "34418b61-8f2e-479d-8496-4ef504f4d21d",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        -1040
      ],
      "parameters": {
        "width": 288,
        "height": 368,
        "content": "### Base AI Agent. Adjust \"System Prompt\" to personalize this agent to your needs"
      }
    },
    {
      "id": "c894f61e-07ce-43a1-9e61-ddfd4e68f065",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2640,
        -1056
      ],
      "parameters": {
        "width": 224,
        "height": 368,
        "content": "### Sends AI Agent output to you in Telegram for confirmation"
      }
    },
    {
      "id": "8d08f0d4-ecd8-4afc-ad7f-9a694446cabe",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        -672
      ],
      "parameters": {
        "width": 214,
        "height": 224,
        "content": "### Parse Output "
      }
    },
    {
      "id": "17c8bfa6-1990-49a1-a156-ba376f1fc057",
      "name": "Google Gemini Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2336,
        -592
      ]
    },
    {
      "id": "d26ba9b6-5a2f-4003-8fb3-a266aa700cc5",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2480,
        -592
      ]
    },
    {
      "id": "67b8d34b-104e-4979-acd0-87456adf51c4",
      "name": "If2",
      "type": "n8n-nodes-base.if",
      "position": [
        2944,
        -896
      ]
    },
    {
      "id": "1376dc0e-111e-4702-8696-c8086e525fd2",
      "name": "Send message and wait for response2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2704,
        -896
      ]
    },
    {
      "id": "f869874c-9d7a-4a46-a214-a87fa263aedf",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        -1120
      ],
      "parameters": {
        "width": 2096,
        "height": 688,
        "content": "## Text Post Assistant\n"
      }
    },
    {
      "id": "bddcaef1-d4de-4a63-928f-b3b3ba3c9e39",
      "name": "Sticky Note22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        -352
      ],
      "parameters": {
        "width": 2096,
        "height": 704,
        "content": "## Photo Post Assistant\n"
      }
    },
    {
      "id": "79dee5c0-74cc-4b19-afaf-9bc07f4093ee",
      "name": "Sticky Note23",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        432
      ],
      "parameters": {
        "width": 2096,
        "height": 704,
        "content": "## Video Post Assistant\n"
      }
    },
    {
      "id": "2dae5293-a546-40e1-bb69-6d08e2b5dcb6",
      "name": "AI Agent Text",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2352,
        -896
      ]
    },
    {
      "id": "eb1bf3e0-3a56-4ee3-b2bb-69d8be7fee59",
      "name": "Sticky Note24",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        320
      ],
      "parameters": {
        "width": 176,
        "height": 496,
        "content": "### Configure upload-post user profile created in app.upload-post.com"
      }
    },
    {
      "id": "4b0045f3-8eca-42bd-bd08-ce068a157a7f",
      "name": "Sticky Note25",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        320
      ],
      "parameters": {
        "width": 176,
        "height": 496,
        "content": "### Sent telegram notification starting process"
      }
    },
    {
      "id": "6d5a8fbe-d26b-4a99-9dc5-5cec4435c0fb",
      "name": "Send Confirmation upload",
      "type": "n8n-nodes-base.telegram",
      "position": [
        4016,
        608
      ]
    },
    {
      "id": "c5185e5d-4c27-43c4-bbfc-23231c474775",
      "name": "Send processing upload",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3296,
        608
      ]
    },
    {
      "id": "2a7f6bdf-9357-4acf-a500-c01cdca43bb5",
      "name": "Send processing upload1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3280,
        -144
      ]
    },
    {
      "id": "9500429e-7035-403e-b9a1-3f6454f2947a",
      "name": "Send Confirmation upload1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        4032,
        -144
      ]
    },
    {
      "id": "87cb489a-778d-4de1-9afd-2c10fcbe1cc0",
      "name": "Send processing upload2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3280,
        -912
      ]
    },
    {
      "id": "a7cdea06-bb82-46b0-84b3-5e261e799cd6",
      "name": "Send Confirmation upload2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3968,
        -912
      ]
    },
    {
      "id": "c0c40729-da3c-419f-9f9f-fabebb5a8ed0",
      "name": "Upload video to Tiktok Instagram Youtube",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        3760,
        608
      ]
    },
    {
      "id": "f545a9a8-9cb3-48b2-857e-d36fe4aa04d3",
      "name": "Upload photos",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        3760,
        -144
      ]
    },
    {
      "id": "1184aa32-6cec-49c0-9fac-fd57c778a70f",
      "name": "Upload a text post",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        3696,
        -912
      ]
    },
    {
      "id": "6f37d8bc-fc14-4386-ada0-01bf41e54136",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2400,
        1296
      ]
    },
    {
      "id": "d33dde95-77e5-4325-a82b-1c45d68c2bf7",
      "name": "ffmpeg: Extract Audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3040,
        1296
      ]
    },
    {
      "id": "6e2beb14-aa10-4b03-adfc-2f8b8118810c",
      "name": "Wait 5s & Retry1",
      "type": "n8n-nodes-base.wait",
      "position": [
        3712,
        1360
      ]
    },
    {
      "id": "221464e5-a6fd-4816-95fb-cbbffa3f4266",
      "name": "Is Completed?1",
      "type": "n8n-nodes-base.if",
      "position": [
        3472,
        1296
      ]
    },
    {
      "id": "1e4f6546-7638-42ff-8a8b-fce7efdb6f1a",
      "name": "Check Job Status1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3280,
        1296
      ]
    },
    {
      "id": "320db5d5-824a-4cd7-92e3-092bfd611b53",
      "name": "Download VIdeo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3728,
        1184
      ]
    },
    {
      "id": "0c50ba67-605e-4f10-915d-7ce84d076d43",
      "name": "Google Gemini Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2352,
        1568
      ]
    },
    {
      "id": "982fc5b1-4ef0-4021-97ba-d45eebec0dab",
      "name": "Structured Output Parser3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2528,
        1568
      ]
    },
    {
      "id": "64a7d52f-63dc-4170-9325-eef318953d91",
      "name": "Get a Video File3",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2768,
        1296
      ]
    },
    {
      "id": "14aa2abf-3b44-4d8f-8b21-1916849bfdb4",
      "name": "Need edit the video?",
      "type": "n8n-nodes-base.if",
      "position": [
        1072,
        848
      ]
    },
    {
      "id": "df4521ba-891e-490a-857f-ce575b538b22",
      "name": "Send a video",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3968,
        1184
      ]
    },
    {
      "id": "19da5b6e-3095-4970-ab3e-5cca447643e1",
      "name": "Sticky Note26",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        1168
      ],
      "parameters": {
        "width": 2096,
        "height": 704,
        "content": "## Video Editor \n"
      }
    },
    {
      "id": "3f9786e9-32ef-4828-8c17-714a01533dcb",
      "name": "DebugHelper",
      "type": "n8n-nodes-base.debugHelper",
      "position": [
        736,
        1120
      ]
    },
    {
      "id": "0ae8cfff-fea6-488d-8292-86df83ff36d4",
      "name": "Send message and wait for response3",
      "type": "n8n-nodes-base.telegram",
      "position": [
        944,
        1120
      ]
    },
    {
      "id": "a23ee0db-a654-4580-bb00-12b79a280aee",
      "name": "Need a thumnail for this video?",
      "type": "n8n-nodes-base.if",
      "position": [
        1152,
        1040
      ]
    },
    {
      "id": "83d069ae-3ca8-4b72-adcf-7fe46311dbaf",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2416,
        2048
      ]
    },
    {
      "id": "e8d06556-bd71-45f1-aa38-99aedff717b4",
      "name": "Google Gemini Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2416,
        2336
      ]
    },
    {
      "id": "24a1d844-f9ba-4f61-a9be-d8484b6e9c10",
      "name": "Structured Output Parser4",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2608,
        2352
      ]
    },
    {
      "id": "b52c1d05-ddd8-4a89-9fa1-191befa3cc47",
      "name": "Sticky Note27",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2224,
        1904
      ],
      "parameters": {
        "width": 2096,
        "height": 704,
        "content": "## Thumbnail generator"
      }
    },
    {
      "id": "a9af3fbf-5945-4f79-b994-95de3a9c924c",
      "name": "Get a Video File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1440,
        864
      ]
    },
    {
      "id": "46f9c00e-f898-4ca8-b7ad-450f2176814a",
      "name": "Sticky Note28",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        1136
      ],
      "parameters": {
        "width": 192,
        "height": 240,
        "content": "### Get Video File"
      }
    },
    {
      "id": "05b14287-e586-4d46-b7a9-e816c79916e9",
      "name": "Sticky Note29",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        1136
      ],
      "parameters": {
        "width": 208,
        "height": 240,
        "content": "### Use Gemini to analyze Video"
      }
    },
    {
      "id": "5cee87c9-358a-4663-b287-0d133692e8b5",
      "name": "Analyze video2",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1696,
        1200
      ]
    },
    {
      "id": "09d95cdb-0d38-4f20-b9b1-6b43eaa2af30",
      "name": "Get a Video File5",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1440,
        1200
      ]
    },
    {
      "id": "41c8d502-75e4-4b80-abfa-9377964edad3",
      "name": "Send message and wait for response4",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2752,
        2048
      ]
    },
    {
      "id": "7d8df23f-000b-4368-b2ef-866bbcc1d505",
      "name": "Send processing upload3",
      "type": "n8n-nodes-base.telegram",
      "position": [
        4080,
        1984
      ]
    },
    {
      "id": "7687319c-4339-4542-a2fb-cf054c41156a",
      "name": "Switch1",
      "type": "n8n-nodes-base.switch",
      "position": [
        2960,
        2048
      ]
    },
    {
      "id": "3e623fda-75d0-4a58-9d34-aa1d52da1ad2",
      "name": "Wait for Final Video",
      "type": "n8n-nodes-base.wait",
      "position": [
        3344,
        2032
      ]
    },
    {
      "id": "f130e50d-a514-41d8-acf5-179a1b90e62c",
      "name": "Generate thumnails",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3200,
        2032
      ]
    },
    {
      "id": "f749c031-af4e-4789-b2e5-ef5ac471f099",
      "name": "Get Final photo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3488,
        2032
      ]
    },
    {
      "id": "22dcd26a-cf47-481f-95e6-16a671d8f19b",
      "name": "Download Photo 0",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3744,
        1984
      ]
    },
    {
      "id": "32a3bcf3-cac7-4b65-8324-8f620e4e0092",
      "name": "Download Photo 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3744,
        2144
      ]
    },
    {
      "id": "c1c7cab5-1009-48b4-a0f9-dc72ad55c5b0",
      "name": "Download Photo 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3744,
        2288
      ]
    },
    {
      "id": "19984255-40db-4c18-8137-48ef93fa81c8",
      "name": "Download Photo 3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3744,
        2448
      ]
    },
    {
      "id": "e4a34c87-52c6-4e8c-b902-0d691409f76f",
      "name": "Sticky Note30",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        1488
      ],
      "parameters": {
        "width": 230,
        "height": 224,
        "content": "### Parse Output"
      }
    },
    {
      "id": "7d8f12d7-23c5-4e97-82f9-1a2743a012ec",
      "name": "Sticky Note31",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2304,
        1488
      ],
      "parameters": {
        "width": 208,
        "height": 224,
        "content": "### Choose any LLM you want here"
      }
    },
    {
      "id": "2a95ac85-cbe6-49fe-81d1-b9e1da12eb49",
      "name": "Sticky Note32",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2368,
        1184
      ],
      "parameters": {
        "width": 288,
        "height": 368,
        "content": "### Base AI Agent. Adjust \"System Prompt\" to personalize this agent to your needs"
      }
    },
    {
      "id": "505b0d73-2d6f-40b5-8131-d288db58b154",
      "name": "Sticky Note33",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2704,
        1184
      ],
      "parameters": {
        "width": 224,
        "height": 368,
        "content": "### Sends AI Agent output to you in Telegram for confirmation"
      }
    },
    {
      "id": "833570fd-3062-459f-a796-2726772a6a89",
      "name": "Sticky Note34",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2384,
        1984
      ],
      "parameters": {
        "width": 288,
        "height": 368,
        "content": "### Base AI Agent. Adjust \"System Prompt\" to personalize this agent to your needs"
      }
    },
    {
      "id": "a52780b2-4d30-4ddc-9ccd-840d6de72d9c",
      "name": "Sticky Note35",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        2288
      ],
      "parameters": {
        "width": 208,
        "height": 224,
        "content": "### Choose any LLM you want here"
      }
    },
    {
      "id": "7c6b884c-e400-4968-9e61-c2f70cd29dd5",
      "name": "Sticky Note36",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2608,
        2272
      ],
      "parameters": {
        "width": 230,
        "height": 224,
        "content": "### Parse Output"
      }
    },
    {
      "id": "82d8eaa7-9f2d-41cd-be30-39dfda3e47c0",
      "name": "Sticky Note37",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2688,
        1984
      ],
      "parameters": {
        "width": 224,
        "height": 368,
        "content": "### Sends AI Agent output to you in Telegram for confirmation"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Send processing upload1",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "Send processing upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "Send processing upload2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get a Audio File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get a Photo",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Need edit the video?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch1": {
      "main": [
        [
          {
            "node": "Generate thumnails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Get a Video File3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Send message and wait for response4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DebugHelper": {
      "main": [
        [
          {
            "node": "Send message and wait for response3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Send Regular Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a Photo": {
      "main": [
        [
          {
            "node": "Analyze an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a video": {
      "main": [
        []
      ]
    },
    "AI Agent Text": {
      "main": [
        [
          {
            "node": "Send message and wait for response2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze video": {
      "main": [
        [
          {
            "node": "AI Agent Videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload photos": {
      "main": [
        [
          {
            "node": "Send Confirmation upload1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze video2": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download VIdeo": {
      "main": [
        [
          {
            "node": "Send a video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Completed?1": {
      "main": [
        [
          {
            "node": "Download VIdeo",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5s & Retry1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Photos": {
      "main": [
        [
          {
            "node": "Send message and wait for response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Videos": {
      "main": [
        [
          {
            "node": "Send message and wait for response1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Final photo": {
      "main": [
        [
          {
            "node": "Download Photo 0",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download Photo 1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download Photo 2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download Photo 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze an image": {
      "main": [
        [
          {
            "node": "AI Agent Photos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Photo 0": {
      "main": [
        [
          {
            "node": "Send processing upload3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Photo 1": {
      "main": [
        [
          {
            "node": "Send processing upload3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Photo 2": {
      "main": [
        [
          {
            "node": "Send processing upload3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Photo 3": {
      "main": [
        [
          {
            "node": "Send processing upload3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a Audio File": {
      "main": [
        [
          {
            "node": "Transcribe a recording",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a Photo File": {
      "main": [
        [
          {
            "node": "Upload photos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a Video File": {
      "main": [
        [
          {
            "node": "Analyze video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5s & Retry1": {
      "main": [
        [
          {
            "node": "Check Job Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Job Status1": {
      "main": [
        [
          {
            "node": "Is Completed?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a Video File2": {
      "main": [
        [
          {
            "node": "Upload video to Tiktok Instagram Youtube",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a Video File3": {
      "main": [
        [
          {
            "node": "ffmpeg: Extract Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a Video File5": {
      "main": [
        [
          {
            "node": "Analyze video2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate thumnails": {
      "main": [
        [
          {
            "node": "Wait for Final Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload a text post": {
      "main": [
        [
          {
            "node": "Send Confirmation upload2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Need edit the video?": {
      "main": [
        [
          {
            "node": "Need a thumnail for this video?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get a Video File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Regular Message": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Final Video": {
      "main": [
        [
          {
            "node": "Get Final photo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ffmpeg: Extract Audio": {
      "main": [
        [
          {
            "node": "Check Job Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send processing upload": {
      "main": [
        [
          {
            "node": "Get a Video File2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe a recording": {
      "main": [
        [
          {
            "node": "AI Agent Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send processing upload1": {
      "main": [
        [
          {
            "node": "Get a Photo File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send processing upload2": {
      "main": [
        [
          {
            "node": "Upload a text post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Videos",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent Videos",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Photos",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Text",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent Photos",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent Text",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser3": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser4": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Need a thumnail for this video?": {
      "main": [
        [
          {
            "node": "Get a Video File5",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response1": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response2": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response4": {
      "main": [
        [
          {
            "node": "Switch1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload video to Tiktok Instagram Youtube": {
      "main": [
        [
          {
            "node": "Send Confirmation upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}