{
  "id": "Csa8xD9gpSNYMfJv",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Form Image Analysis & Telegram Delivery",
  "tags": [],
  "nodes": [
    {
      "id": "b034159b-2023-404f-a8d7-773f8830ccf1",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -40,
        120
      ],
      "parameters": {
        "options": {},
        "formTitle": "ANALYZE IMAGE",
        "formFields": {
          "values": [
            {
              "fieldType": "file",
              "fieldLabel": "upload here"
            }
          ]
        },
        "formDescription": "input the image you want to analyse "
      },
      "typeVersion": 2.2
    },
    {
      "id": "671f9fc1-37c4-431c-a913-f29bacd3e467",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        220,
        120
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "GPT-4O-MINI"
        },
        "options": {},
        "resource": "image",
        "inputType": "base64",
        "operation": "analyze",
        "binaryPropertyName": "upload_here"
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "dc70f08b-7674-4866-8bfb-b4220d3d13d4",
      "name": "Set your Telegram Chat ID",
      "type": "n8n-nodes-base.set",
      "position": [
        420,
        120
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ceeb3e80-717f-4251-8a14-26d62674e030",
              "name": "telegram chat id ",
              "type": "string",
              "value": "60277172761"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "addf16be-d902-451b-b24d-d7d5a7b2f7ba",
      "name": "Telegram Delivery",
      "type": "n8n-nodes-base.telegram",
      "position": [
        620,
        120
      ],
      "parameters": {
        "text": "={{ $('OpenAI').item.json.content }}",
        "chatId": "={{ $json['telegram chat id '] }}",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "1f4a53ac-8b0a-466b-9be5-ea3efb8b06cd",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -380
      ],
      "parameters": {
        "width": 1140,
        "height": 700,
        "content": "## This workflow analyzes images submitted via a form using OpenAI Vision, then delivers the analysis result directly to your Telegram chat.\n\n\u2705 Use case examples:\n\t\u2022\tUsers submit screenshots for instant AI interpretation\n\t\u2022\tAutomated document or receipt analysis with Telegram delivery\n\t\u2022\tQuick OCR or image classification workflows\n\n\u2e3b\n\n\u2699\ufe0f Setup Guide\n\t1.\tForm Submission Trigger\n\t\u2022\tConnect your form app (e.g. Typeform, Tally, or n8n\u2019s own webhook form) to the On form submission trigger node.\n\t\u2022\tEnsure it sends the image file or URL as input.\n\t2.\tOpenAI Vision Analysis\n\t\u2022\tIn the OpenAI node, select Analyze Image operation.\n\t\u2022\tProvide your OpenAI API key and configure the prompt to instruct the model on what to analyze (e.g. \u201cDescribe this receipt in detail\u201d).\n\t3.\tSet Telegram Chat ID\n\t\u2022\tUse this manual node to input your Telegram Chat ID for delivery.\n\t\u2022\tAlternatively, automate this with a database lookup or user session if building for multiple users.\n\t4.\tTelegram Delivery Node\n\t\u2022\tConnect your Telegram Bot to n8n using your bot token.\n\t\u2022\tSet up the sendMessage operation, using the analysis result from the previous node as the message text.\n\t5.\tTesting\n\t\u2022\tClick Execute workflow.\n\t\u2022\tSubmit an image via your form and confirm it delivers to your Telegram as expected.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "af00b421-6f5f-4692-9d36-726e82438a24",
  "connections": {
    "OpenAI": {
      "main": [
        [
          {
            "node": "Set your Telegram Chat ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set your Telegram Chat ID": {
      "main": [
        [
          {
            "node": "Telegram Delivery",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}