画像リーダー
中級
これはPersonal Productivity, Multimodal AI分野の自動化ワークフローで、8個のノードを含みます。主にSet, Telegram, HttpRequest, Agent, ExtractFromFileなどのノードを使用。 TelegramボットとOCRを使って画像からテキスト抽出
前提条件
- •Telegram Bot Token
- •ターゲットAPIの認証情報が必要な場合あり
- •Google Gemini API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "M4IIL41O16twgImq",
"meta": {
"instanceId": "51be389492931e958da1ec3c4cc03c8044ac06dd89d9465126f3cdb442363742",
"templateCredsSetupCompleted": true
},
"name": "Image Reader",
"tags": [],
"nodes": [
{
"id": "a5d05f82-eb64-4abb-82d8-c2365fea90e8",
"name": "Telegram トリガー",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-400,
-140
],
"webhookId": "b957dd8b-8f10-40e9-a041-56b3f7a176b9",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "coZ5n0FecDwDueBA",
"name": "Ruri Image Reader"
}
},
"typeVersion": 1.2
},
{
"id": "9c8d3318-b6f8-4fe5-8d19-10388087beb7",
"name": "Clean Input Data",
"type": "n8n-nodes-base.set",
"position": [
-180,
-140
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "c8cd1608-2326-401d-9c47-79a6a72f5fc7",
"name": "chatID",
"type": "number",
"value": "={{ $json.message.chat.id }}"
},
{
"id": "0f1a41cb-8630-4e10-b445-f6bbbcf91d33",
"name": "Image",
"type": "string",
"value": "={{ $json[\"message\"][\"photo\"][$json[\"message\"][\"photo\"].length - 1][\"file_id\"] }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "e2b58308-238e-4439-9f1a-4d08b6c6fed0",
"name": "OCR",
"type": "n8n-nodes-base.httpRequest",
"position": [
480,
-140
],
"parameters": {
"url": "#",
"method": "POST",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "image",
"value": "={{ $json.data }}"
}
]
}
},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "ffb53d49-3a5f-4a65-95bd-0788f5005fc7",
"name": "get file",
"type": "n8n-nodes-base.telegram",
"position": [
40,
-140
],
"webhookId": "089cb9a3-a383-4e1d-b732-b877833ef538",
"parameters": {
"fileId": "={{ $json.Image.replace(/\\n/g, '') }}",
"resource": "file"
},
"credentials": {
"telegramApi": {
"id": "coZ5n0FecDwDueBA",
"name": "Ruri Image Reader"
}
},
"typeVersion": 1.2
},
{
"id": "80dc7a76-dc50-4f9f-8396-9f068fdec7a1",
"name": "Convert to base64",
"type": "n8n-nodes-base.extractFromFile",
"position": [
260,
-140
],
"parameters": {
"options": {},
"operation": "binaryToPropery"
},
"typeVersion": 1
},
{
"id": "e77fb512-c83c-4d18-9ded-13c02abfef45",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
1076,
-140
],
"webhookId": "1c599e35-fb24-4cae-9177-61fa09e0b5ca",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "={{ $('Clean Input Data').item.json.chatID }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "coZ5n0FecDwDueBA",
"name": "Ruri Image Reader"
}
},
"typeVersion": 1.2
},
{
"id": "5badb159-c0e8-4129-8387-409541cdcc20",
"name": "AI エージェント",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
700,
-140
],
"parameters": {
"text": "={{ $json.text }}",
"options": {
"systemMessage": "You are an AI assistant designed to enhance the clarity of text extracted from images using OCR.\n\nYour primary objective is to make the OCR output easy to read and understand for end users by cleaning up formatting, fixing any recognition errors, and restructuring the content logically.\n\n🧠 Behavior Guidelines:\nIf the extracted text resembles a table or structured data, do not recreate the table. Instead, summarize the content into bullet points for better readability.\n\nFocus on clarity, accuracy, and user-friendly formatting.\n\nFix common OCR issues such as:\n\nBroken words or lines\n\nIncorrect character recognition (e.g., \"0\" vs \"O\", \"1\" vs \"I\")\n\nMisplaced symbols or formatting errors"
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "76959791-ff08-4f0f-94c1-55b6f6807a00",
"name": "Google Gemini チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
788,
80
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash"
},
"credentials": {
"googlePalmApi": {
"id": "fyhkQ6QL2SEoobiQ",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
}
],
"active": true,
"pinData": {
"Telegram Trigger": [
{
"json": {
"message": {
"chat": {
"id": 1335515855,
"type": "private",
"username": "VextCode",
"first_name": "Vext"
},
"date": 1751041672,
"from": {
"id": 1335515855,
"is_bot": false,
"username": "VextCode",
"first_name": "Vext",
"language_code": "en"
},
"photo": [
{
"width": 90,
"height": 39,
"file_id": "AgACAgUAAxkBAAMOaF7GiHkZdpULOrfUb-SAge6yRHcAAq_LMRubo_BWUWlWZpaHvCIBAAMCAANzAAM2BA",
"file_size": 1131,
"file_unique_id": "AQADr8sxG5uj8FZ4"
},
{
"width": 320,
"height": 137,
"file_id": "AgACAgUAAxkBAAMOaF7GiHkZdpULOrfUb-SAge6yRHcAAq_LMRubo_BWUWlWZpaHvCIBAAMCAANtAAM2BA",
"file_size": 14625,
"file_unique_id": "AQADr8sxG5uj8FZy"
},
{
"width": 800,
"height": 342,
"file_id": "AgACAgUAAxkBAAMOaF7GiHkZdpULOrfUb-SAge6yRHcAAq_LMRubo_BWUWlWZpaHvCIBAAMCAAN4AAM2BA",
"file_size": 60871,
"file_unique_id": "AQADr8sxG5uj8FZ9"
},
{
"width": 1095,
"height": 468,
"file_id": "AgACAgUAAxkBAAMOaF7GiHkZdpULOrfUb-SAge6yRHcAAq_LMRubo_BWUWlWZpaHvCIBAAMCAAN5AAM2BA",
"file_size": 90710,
"file_unique_id": "AQADr8sxG5uj8FZ-"
}
],
"message_id": 14
},
"update_id": 413913333
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "a78997d0-05cb-4278-8be3-7348cfa1eefa",
"connections": {
"e2b58308-238e-4439-9f1a-4d08b6c6fed0": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "e77fb512-c83c-4d18-9ded-13c02abfef45",
"type": "main",
"index": 0
}
]
]
},
"ffb53d49-3a5f-4a65-95bd-0788f5005fc7": {
"main": [
[
{
"node": "80dc7a76-dc50-4f9f-8396-9f068fdec7a1",
"type": "main",
"index": 0
}
]
]
},
"9c8d3318-b6f8-4fe5-8d19-10388087beb7": {
"main": [
[
{
"node": "ffb53d49-3a5f-4a65-95bd-0788f5005fc7",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "9c8d3318-b6f8-4fe5-8d19-10388087beb7",
"type": "main",
"index": 0
}
]
]
},
"80dc7a76-dc50-4f9f-8396-9f068fdec7a1": {
"main": [
[
{
"node": "e2b58308-238e-4439-9f1a-4d08b6c6fed0",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - 個人の生産性, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
画像リーダー Gemini OCR
TelegramボットとGemini 2.0 Flash OCRを使って画像からテキスト抽出
Set
Telegram
Http Request
+
Set
Telegram
Http Request
8 ノードRudi Afandi
文書抽出
LinkedInおよびXウイルスのなコンテンツ自動エンジン
AIを使ってLinkedInとXにウイルスのなコンテンツを自動生成して公開する
If
Set
Wait
+
If
Set
Wait
156 ノードDiptamoy Barman
コンテンツ作成
Gemini、音声・画像生成を使ってマルチモーダルTelegram AIアシスタントを構築
Gemini、音声・画像生成を使ってマルチモーダルTelegramAIアシスタントを構築
If
Set
Code
+
If
Set
Code
95 ノードIniyavan JC
個人の生産性
再生リスト詳細設定ボットコピー
Suno、GPT-4、Runway、Creatomate を使って AI 生成の YouTube ミュージックプレイリストを作成
If
Set
Code
+
If
Set
Code
203 ノードJoseph
コンテンツ作成
GPT-4o、ElevenLabs、WaveSpeed で口語同期してリアル UGC 動画広告を作る
GPT-4o、ElevenLabs、WaveSpeedを使ってリアルなUGC動画広告のメロー同期を作成
If
Set
Wait
+
If
Set
Wait
38 ノードMuhammad Farooq Iqbal
コンテンツ作成
Telegramフォーラムペルス:コミュニティモニタリングのためのGeminiとGroq AIモデル
Telegramフォーラムペルス:GeminiとGroq AIモデルを使ったコミュニティ監視
If
Set
Code
+
If
Set
Code
59 ノードNguyen Thieu Toan
その他