AutomationFlowsAI & RAG › Analyze Images From Forms Using GPT-4o-mini and Send to Telegram

Analyze Images From Forms Using GPT-4o-mini and Send to Telegram

Original n8n title: Analyze Images From Forms Using Gpt-4o-mini Vision and Deliver to Telegram

ByDavid Olusola @dae221 on n8n.io

✅ Use case examples: • Users submit screenshots for instant AI interpretation • Automated document or receipt analysis with Telegram delivery • Quick OCR or image classification workflows

Event trigger★★☆☆☆ complexityAI-powered5 nodesForm TriggerOpenAITelegram
AI & RAG Trigger: Event Nodes: 5 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #5507 — we link there as the canonical source.

This workflow follows the Form Trigger → OpenAI recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "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
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

✅ Use case examples: • Users submit screenshots for instant AI interpretation • Automated document or receipt analysis with Telegram delivery • Quick OCR or image classification workflows

Source: https://n8n.io/workflows/5507/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Airtable, OpenAI, Form Trigger +3
AI & RAG

This workflow was built to solve a real, painful creator problem: you know what to explain, but you don’t like how you sound, hesitate while speaking, or don’t feel fluent enough on camera.

Form Trigger, Ftp, Ssh +4
AI & RAG

This workflow provides an automated pipeline for processing medical X-ray images using VLM Run (model: ), and distributing the AI-generated analysis to multiple channels—email, Telegram, and Google Dr

Form Trigger, OpenAI, Gmail +3
AI & RAG

Check this channel: AutoTechAi_bot

Telegram Trigger, OpenAI, Telegram
AI & RAG

Ai Customer Feedback Sentiment Analysis. Uses stickyNote, googleSheets, openAi, formTrigger. Event-driven trigger; 9 nodes.

Google Sheets, OpenAI, Form Trigger