{
  "nodes": [
    {
      "id": "ecb4bbc8-939a-4c6c-80b6-6f053d1d7745",
      "name": "Get the Image",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        1640,
        880
      ],
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {
          "download": true
        }
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "2fd523b7-5f89-4e53-9445-4336b51cad51",
      "name": "Send Content for the Analyzed image",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2380,
        760
      ],
      "parameters": {
        "text": "={{ $json.content }}",
        "chatId": "={{ $('Get the Image').item.json.message.chat.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "b77fe84f-7651-42aa-aa40-f903b10c8fb1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        360
      ],
      "parameters": {
        "width": 1235.4238259410247,
        "height": 1361.9843517631348,
        "content": "# \uc790\ub3d9\ud654\ub41c \uc774\ubbf8\uc9c0 \ubd84\uc11d \ubc0f \uc751\ub2f5 via Telegram\n\n## \uc608\uc2dc: @SubAlertMe_Bot\n\n## \uc694\uc57d:\n\uc790\ub3d9\ud654\ub41c \uc774\ubbf8\uc9c0 \ubd84\uc11d \ubc0f \uc751\ub2f5 \uc6cc\ud06c\ud50c\ub85c\ub294 n8n\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud154\ub808\uadf8\ub7a8\uc744 \ud1b5\ud574 \uc804\uc1a1\ub41c \uc774\ubbf8\uc9c0\ub97c \ubd84\uc11d\ud558\uace0, \ubd84\uc11d \uacb0\uacfc\ub97c \uae30\ubc18\uc73c\ub85c \ud1b5\ucc30\ub825 \uc788\ub294 \uc751\ub2f5\uc744 \uc81c\uacf5\ud558\ub294 \uc815\uad50\ud55c \uc194\ub8e8\uc158\uc785\ub2c8\ub2e4. \uc774 \ucd5c\ucca8\ub2e8 \uc6cc\ud06c\ud50c\ub85c\ub294 \uc774\ubbf8\uc9c0 \ucc98\ub9ac \uc791\uc5c5\uc758 \uc6d0\ud65c\ud55c \uc790\ub3d9\ud654\uc640 \ud6a8\uc728\uc131\uc744 \ubcf4\uc7a5\ud558\uae30 \uc704\ud574 \uc138\uc2ec\ud558\uac8c \uc870\uc815\ub41c \uc77c\ub828\uc758 \ub178\ub4dc\ub97c \ud65c\uc6a9\ud569\ub2c8\ub2e4.\n\n## \uc0ac\uc6a9 \uc0ac\ub840:\n\uc774 \uace0\uae09 \uc6cc\ud06c\ud50c\ub85c\ub294 \uc2e4\uc2dc\uac04 \uc774\ubbf8\uc9c0 \ubd84\uc11d \ubc0f \uc751\ub2f5 \uba54\ucee4\ub2c8\uc998\uc774 \ud544\uc218\uc801\uc778 \ub2e4\uc591\ud55c \uc2dc\ub098\ub9ac\uc624\uc5d0 \uc801\ud569\ud569\ub2c8\ub2e4. \uc0ac\uc6a9 \uc0ac\ub840\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n- \ud154\ub808\uadf8\ub7a8 \uadf8\ub8f9 \ub0b4\uc5d0\uc11c \uacf5\uc720\ub41c \uc774\ubbf8\uc9c0\uc5d0 \ub300\ud55c \uc989\uc2dc \ud53c\ub4dc\ubc31 \uc81c\uacf5.\n- \uc774\ubbf8\uc9c0 \ucf58\ud150\uce20 \ubd84\uc11d\uc5d0 \uae30\ubc18\ud55c \uc790\ub3d9 \ucf58\ud150\uce20 \uc870\uc815.\n- \ubd84\uc11d \uacb0\uacfc\ub97c \uae30\ubc18\uc73c\ub85c \uc774\ubbf8\uc9c0\uc758 \uc2e0\uc18d\ud55c \ubd84\ub958 \ubc0f \ud0dc\uae45.\n\n## \uc138\ubd80 \uc6cc\ud06c\ud50c\ub85c\uc6b0 \uc124\uc815:\n\uc774 \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \uad6c\ud604\ud558\ub824\uba74 \ub2e4\uc74c\uc758 \uc138\ubd80 \uc124\uc815 \uacfc\uc815\uc744 \ub530\ub985\ub2c8\ub2e4:\n- \ub2e4\uc7ac\ub2e4\ub2a5\ud55c n8n \ud50c\ub7ab\ud3fc\uc5d0 \uc811\uadfc\ud558\uc5ec \uc6d0\ud65c\ud55c \uc6cc\ud06c\ud50c\ub85c\uc6b0 \uc624\ucf00\uc2a4\ud2b8\ub808\uc774\uc158.\n- \uc774\ubbf8\uc9c0 \uc218\uc2e0 \ubc0f \ud1b5\uc2e0\uc744 \uc704\ud55c \ud154\ub808\uadf8\ub7a8 \uacc4\uc815 \ud1b5\ud569.\n- \uace0\uae09 \uc774\ubbf8\uc9c0 \ubd84\uc11d \uae30\ub2a5\uc744 \uc704\ud55c OpenAI \uacc4\uc815 \ud65c\uc6a9.\n- n8n \ud658\uacbd \ub0b4\uc5d0\uc11c \ud154\ub808\uadf8\ub7a8 \ubc0f OpenAI \uc790\uaca9 \uc99d\uba85 \uad6c\uc131.\n- n8n \uc6cc\ud06c\ud50c\ub85c\uc6b0 \ub0b4\uc5d0\uc11c \ub178\ub4dc\ub97c \ub9cc\ub4e4\uace0 \uc5f0\uacb0\ud558\ub294 \ub370 \ub300\ud55c \uc219\ub828\ub3c4.\n\n## \uc138\ubd80 \ub178\ub4dc \uc124\uba85:\n1. **\uc774\ubbf8\uc9c0 \uac00\uc838\uc624\uae30 (Telegram Trigger):**\n   - \ud154\ub808\uadf8\ub7a8\uc744 \ud1b5\ud574 \uc774\ubbf8\uc9c0\ub97c \uc218\uc2e0\ud558\uba74 \uc989\uc2dc \ud2b8\ub9ac\uac70\ub418\uc5b4 \uc2e0\uc18d\ud55c \ucc98\ub9ac\ub97c \ubcf4\uc7a5.\n   - \uc218\uc2e0\ub41c \uc774\ubbf8\uc9c0 \uba54\uc2dc\uc9c0\uc5d0\uc11c \ud544\uc218 \uc815\ubcf4\ub97c \ucd94\ucd9c\ud558\uc5ec \ud6c4\uc18d \uc791\uc5c5\uc744 \uc2dc\uc791.\n\n2. **\ubaa8\ub4e0 \ud544\ub4dc \ubcd1\ud569 To get data from trigger:**\n   - \ud2b8\ub9ac\uac70 \ub178\ub4dc\uc5d0\uc11c \ucd94\ucd9c\ub41c \ubaa8\ub4e0 \uad00\ub828 \ub370\uc774\ud130 \ud544\ub4dc\ub97c \uc6d0\ud65c\ud558\uac8c \uacb0\ud569\ud558\uc5ec \ud3ec\uad04\uc801\uc778 \ub370\uc774\ud130 \ud1b5\ud569.\n\n3. **\uc774\ubbf8\uc9c0 \ubd84\uc11d (OpenAI):**\n   - OpenAI \uc11c\ube44\uc2a4\uc758 \uac15\ub825\ud55c \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \uc218\uc2e0\ub41c \uc774\ubbf8\uc9c0\ub97c \uae4a\uc774 \uc788\uac8c \ubd84\uc11d.\n   - \uc774\ubbf8\uc9c0 \ub370\uc774\ud130\ub97c base64 \ud615\uc2dd\uc73c\ub85c \ucc98\ub9ac\ud558\uc5ec \uc2dc\uac01 \ucf58\ud150\uce20\uc5d0\uc11c \uc758\ubbf8 \uc788\ub294 \ud1b5\ucc30\uc744 \ub3c4\ucd9c.\n\n4. **\ubaa8\ub4e0 \ud544\ub4dc \uc9d1\uacc4:**\n   - \ud6c4\uc18d \ucc98\ub9ac \ubc0f \ubd84\uc11d\uc744 \uc704\ud574 \ubaa8\ub4e0 \ub370\uc774\ud130 \ud56d\ubaa9\uc744 \ucef4\ud30c\uc77c \ubc0f \ud1b5\ud569\ud558\uc5ec \ud3ec\uad04\uc801\uc778 \ub370\uc774\ud130 \uc9d1\uacc4.\n\n5. **\ubd84\uc11d\ub41c \uc774\ubbf8\uc9c0\uc5d0 \ub300\ud55c \ucf58\ud150\uce20 \uc804\uc1a1 (Telegram):**\n   - \ubd84\uc11d\ub41c \ucf58\ud150\uce20\ub97c \ud154\ub808\uadf8\ub7a8 \ucc44\ud305 \uc778\ud130\ud398\uc774\uc2a4\ub85c \uc804\uc1a1\ud558\uc5ec \uc6d0\ud65c\ud55c \ucee4\ubba4\ub2c8\ucf00\uc774\uc158.\n   - \ubd84\uc11d\ub41c \uc815\ubcf4\ub97c \ud14d\uc2a4\ud2b8 \ud615\uc2dd\uc73c\ub85c \uc81c\uacf5\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc774\ud574\uc640 \uc0c1\ud638\uc791\uc6a9 \ud5a5\uc0c1.\n\n6. **\uc2a4\uc704\uce58 \ub178\ub4dc:**\n   - \uc2a4\uc704\uce58 \ub178\ub4dc\ub294 \uc6cc\ud06c\ud50c\ub85c\uc6b0 \ub0b4\uc758 \ubbf8\ub9ac \uc815\uc758\ub41c \uc870\uac74\uc5d0 \uae30\ubc18\ud55c \uc758\uc0ac \uacb0\uc815\uc744 \uc704\ud574 \ud575\uc2ec\uc801.\n   - \uc218\uc2e0\ub41c \ub370\uc774\ud130\ub97c \ud3c9\uac00\ud558\uc5ec \ud2b9\uc815 \uc694\uc18c(\uc608: \uc774 \ub9e5\ub77d\uc5d0\uc11c \uc774\ubbf8\uc9c0)\uc758 \uc874\uc7ac \uc5ec\ubd80\ub97c \ud310\ub2e8.\n   - \uba54\uc2dc\uc9c0 \ud398\uc774\ub85c\ub4dc\uc5d0 \uc774\ubbf8\uc9c0 \ub370\uc774\ud130\uc758 \uc874\uc7ac\ub97c \ud3c9\uac00\ud558\ub294 \uaddc\uce59 \uc138\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec \uc774\ubbf8\uc9c0 \uac10\uc9c0 \uc5ec\ubd80\uc5d0 \ub530\ub77c \uad6c\ubd84.\n   - \uc774 \uc911\uc694\ud55c \ub178\ub4dc\ub294 \ud3c9\uac00 \uacb0\uacfc\uc5d0 \ub530\ub77c \uc6cc\ud06c\ud50c\ub85c\uc6b0 \ud750\ub984\uc744 \uc9c0\uc2dc\ud558\ub294 \uc5ed\ud560\uc744 \ud55c\ub2e4.\n\n## \uacb0\ub860:\n\uc774 \uc815\uad50\ud55c \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub97c \ud1b5\ud574 \uc774\ubbf8\uc9c0 \ubd84\uc11d \ud504\ub85c\uc138\uc2a4\uc758 \uc790\ub3d9\ud654\ub294 \uc6b4\uc601 \ud6a8\uc728\uc131\uc744 \ub192\uc77c \ubfd0\ub9cc \uc544\ub2c8\ub77c \ud154\ub808\uadf8\ub7a8 \uc0c1\ud638\uc791\uc6a9\uc758 \ucee4\ubba4\ub2c8\ucf00\uc774\uc158 \uc5ed\ud559\uc744 \ud601\uc2e0\ud569\ub2c8\ub2e4. \uc774 \uace0\uae09 \uc6cc\ud06c\ud50c\ub85c\uc6b0 \uc194\ub8e8\uc158\uc744 \ub3c4\uc785\ud558\uba74 \uc0ac\uc6a9\uc790\ub294 \uc774\ubbf8\uc9c0 \ubd84\uc11d \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub97c \ucd5c\uc801\ud654\ud558\uace0, \ucee4\ubba4\ub2c8\ucf00\uc774\uc158 \ud6a8\uc728\uc131\uc744 \uac15\ud654\ud558\uba70, \uc774\ubbf8\uc9c0 \ucc98\ub9ac \uc791\uc5c5\uc758 \uc0c8\ub85c\uc6b4 \uc790\ub3d9\ud654 \uc218\uc900\uc744 \uac1c\ubc29\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."
      },
      "typeVersion": 1
    },
    {
      "id": "7a588ccb-7a97-4776-82fd-c4f42640e8f7",
      "name": "Update Telegram Error Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2380,
        1000
      ],
      "parameters": {
        "text": "Please Upload an Image ....",
        "chatId": "={{ $json.message.chat.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "0cd83b82-0a20-4bf6-82bc-24827a368b89",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2180,
        1000
      ],
      "parameters": {
        "amount": 3
      },
      "typeVersion": 1.1
    },
    {
      "id": "a6d52335-72e7-4ce4-92e9-861b2806e9ae",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        360
      ],
      "parameters": {
        "color": 4,
        "width": 1139.7707284714515,
        "height": 1359.6943046286056,
        "content": "### \ucd9c\ub825\n}"
      },
      "typeVersion": 1
    },
    {
      "id": "0222b4f6-a7c1-4183-8df8-b47b9e0cd685",
      "name": "Analyze image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2180,
        760
      ],
      "parameters": {
        "options": {},
        "resource": "image",
        "inputType": "base64",
        "operation": "analyze"
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "f83c7dc2-a986-40e7-831c-b7968866ef4e",
      "name": "Switch ( image or not )",
      "type": "n8n-nodes-base.switch",
      "position": [
        1820,
        880
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Image",
              "conditions": {
                "options": {
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "operator": {
                      "type": "array",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.message.photo }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Empty",
              "conditions": {
                "options": {
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "3fe3a96d-6ee9-4f12-a32c-f5f5b729e257",
                    "operator": {
                      "type": "array",
                      "operation": "notExists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.message.photo }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Update Telegram Error Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze image": {
      "main": [
        [
          {
            "node": "Send Content for the Analyzed image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get the Image": {
      "main": [
        [
          {
            "node": "Switch ( image or not )",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch ( image or not )": {
      "main": [
        [
          {
            "node": "Analyze image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}