صورة التحويل ← الذكاء الاصطناعي يقرأها ← تسجيل للمراجعة
يرسل العملاء صورة تحويل InstaPay أو المحفظة لبوت تيليجرام؛ فيقرأ الذكاء الاصطناعي المبلغ ويسجله لتراجعه.
كيف تعمل
المشغّل: تيليجرام — صورة تُرسل إلى البوت
- يرسل العميل صورة التحويل (ورقم الطلب كتعليق على الصورة).
- يقرأ الذكاء الاصطناعي المبلغ والمرسل والرقم المرجعي والتاريخ من الصورة.
- يُسجَّل التحويل في جدول بحالة "للمراجعة"، ويصل العميل رسالة استلام.
- الصور غير الواضحة تحصل على طلب لطيف بصورة أوضح.
المخطط
مشغّل تطبيق منطق كود ذكاء اصطناعي
الكود
كود JavaScript المستخدم في خطوات Code، وهو مضمَّن بالفعل في القالب بالأسفل.
// Mode: Run Once for Each Item
// The AI read a transfer screenshot (InstaPay, wallet or bank) and was asked for JSON like:
// {"is_transfer": true, "amount": 1250, "currency": "EGP", "sender": "Ahmed M.", "reference": "123456789", "date": "2026-10-19"}
const match = $json.text.match(/\{[\s\S]*\}/);
const t = match ? JSON.parse(match[0]) : {};
const msg = $("Screenshot received").item.json.message;
return {
json: {
is_transfer: t.is_transfer === true && Number(t.amount) > 0,
amount: Number(t.amount) || 0,
currency: t.currency || "EGP",
sender: t.sender || "",
reference: t.reference || "",
date: t.date || "",
chatId: msg.chat.id,
caption: msg.caption || "",
},
};ابنِها بأداتك
اختر أداتك — نفس الأتمتة، خطوة بخطوة.
انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_. خطوات الذكاء الاصطناعي تستخدم نموذج Claude، ويمكنك استبداله بـ OpenAI أو Gemini أو Ollama.
عرض الكود (272 سطر)
{
"name": "صورة التحويل ← الذكاء الاصطناعي يقرأها ← تسجيل للمراجعة (Flowngn)",
"nodes": [
{
"parameters": {
"content": "## صورة التحويل ← الذكاء الاصطناعي يقرأها ← تسجيل للمراجعة\nيرسل العملاء صورة تحويل InstaPay أو المحفظة لبوت تيليجرام؛ فيقرأ الذكاء الاصطناعي المبلغ ويسجله لتراجعه.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
"height": 260,
"width": 340
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {
"download": true
}
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Screenshot received",
"type": "n8n-nodes-base.telegramTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"webhookId": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c"
},
{
"parameters": {
"promptType": "define",
"text": "=This image should be a payment transfer screenshot (InstaPay, mobile wallet or bank). Reply ONLY with JSON: {\"is_transfer\": true|false, \"amount\": number, \"currency\": \"EGP\", \"sender\": \"...\", \"reference\": \"...\", \"date\": \"YYYY-MM-DD\"}. If you can't read it clearly, set is_transfer to false. Never guess numbers.",
"passthroughBinaryImages": true
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Read the transfer",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.5,
"position": [
300,
0
]
},
{
"parameters": {
"model": {
"__rl": true,
"value": "claude-sonnet-5",
"mode": "list"
},
"options": {}
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Claude model",
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1.3,
"position": [
300,
220
]
},
{
"parameters": {
"jsCode": "// Mode: Run Once for Each Item\n// The AI read a transfer screenshot (InstaPay, wallet or bank) and was asked for JSON like:\n// {\"is_transfer\": true, \"amount\": 1250, \"currency\": \"EGP\", \"sender\": \"Ahmed M.\", \"reference\": \"123456789\", \"date\": \"2026-10-19\"}\nconst match = $json.text.match(/\\{[\\s\\S]*\\}/);\nconst t = match ? JSON.parse(match[0]) : {};\nconst msg = $(\"Screenshot received\").item.json.message;\n\nreturn {\n json: {\n is_transfer: t.is_transfer === true && Number(t.amount) > 0,\n amount: Number(t.amount) || 0,\n currency: t.currency || \"EGP\",\n sender: t.sender || \"\",\n reference: t.reference || \"\",\n date: t.date || \"\",\n chatId: msg.chat.id,\n caption: msg.caption || \"\",\n },\n};",
"mode": "runOnceForEachItem"
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Read details",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
600,
0
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose"
},
"conditions": [
{
"id": "c1",
"leftValue": "={{ $json.is_transfer }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Readable transfer?",
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
900,
0
]
},
{
"parameters": {
"operation": "append",
"documentId": {
"__rl": true,
"value": "YOUR_SPREADSHEET_ID",
"mode": "id"
},
"sheetName": {
"__rl": true,
"value": "Transfers",
"mode": "name"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"received": "={{ $now.toISO() }}",
"amount": "={{ $json.amount }}",
"currency": "={{ $json.currency }}",
"sender": "={{ $json.sender }}",
"reference": "={{ $json.reference }}",
"order": "={{ $json.caption }}",
"status": "to verify"
}
},
"options": {}
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Log for checking",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
1200,
0
]
},
{
"parameters": {
"chatId": "={{ $('Read details').item.json.chatId }}",
"text": "=✅ Received: {{ $('Read details').item.json.amount }} {{ $('Read details').item.json.currency }} from {{ $('Read details').item.json.sender }} — we'll confirm once it's verified.",
"additionalFields": {
"appendAttribution": false
}
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Confirm receipt",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1500,
0
]
},
{
"parameters": {
"chatId": "={{ $json.chatId }}",
"text": "Sorry, I couldn't read that. Please send a clear screenshot of the transfer confirmation.",
"additionalFields": {
"appendAttribution": false
}
},
"id": "35c47c31-9f0c-4ea1-ae8c-21fbe894577c",
"name": "Ask for a clearer image",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1200,
220
]
}
],
"connections": {
"Screenshot received": {
"main": [
[
{
"node": "Read the transfer",
"type": "main",
"index": 0
}
]
]
},
"Read the transfer": {
"main": [
[
{
"node": "Read details",
"type": "main",
"index": 0
}
]
]
},
"Read details": {
"main": [
[
{
"node": "Readable transfer?",
"type": "main",
"index": 0
}
]
]
},
"Readable transfer?": {
"main": [
[
{
"node": "Log for checking",
"type": "main",
"index": 0
}
],
[
{
"node": "Ask for a clearer image",
"type": "main",
"index": 0
}
]
]
},
"Log for checking": {
"main": [
[
{
"node": "Confirm receipt",
"type": "main",
"index": 0
}
]
]
},
"Claude model": {
"ai_languageModel": [
[
{
"node": "Read the transfer",
"type": "ai_languageModel",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}في Make، أنشئ سيناريو جديدًا وأضف هذه الوحدات بالترتيب:
- Telegram Bot › Watch Updates
- Anthropic Claude › Create a Prompt (or OpenAI › Create a Completion)
- Tools › Set variable / Iterator + Array aggregator (same logic as the Code step)
- Router with two routes: “Readable transfer?” (yes / no filters)
- إذا نعمGoogle Sheets › Add a Row
- إذا لاTelegram Bot › Send a Text Message or a Reply
- إذا نعمTelegram Bot › Send a Text Message or a Reply
- كل تشغيل لوحدة يستهلك عمليات (operations) في Make — والباقة المجانية تتضمن حصة شهرية.
- دوال Make المدمجة (map و sum و formatDate…) تغني عن معظم خطوات Code؛ وللمنطق المعقد استخدم وحدة كود.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
في Zapier، أنشئ Zap جديدًا وأضف هذه الخطوات بالترتيب:
- Telegram — New Message
- Anthropic (Claude) — Send Message (or ChatGPT — Conversation)
- Code by Zapier — Run JavaScript (paste the code from the Code section)
- Paths by Zapier: “Readable transfer?” (yes / no)
- إذا نعمGoogle Sheets — Create Spreadsheet Row
- إذا لاTelegram — Send Message
- إذا نعمTelegram — Send Message
- الـ Zaps التي فيها أكثر من خطوتين تحتاج باقة Zapier مدفوعة.
- الـ Webhooks والفلاتر/المسارات و Code by Zapier ميزات مدفوعة في بعض باقات Zapier.
- Code by Zapier يشغّل JavaScript: أعد استخدام الكود بالأعلى، مع قراءة المدخلات من inputData بدلًا من $json.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
نصائح
- تأكد دائمًا من وصول المبلغ فعلًا إلى حسابك قبل الشحن — الصور يمكن تزويرها.
- استخدم نموذج ذكاء اصطناعي يقرأ الصور.
أتمتات مشابهة
تطبيقات المنطقةسهل
سجّل كل مدفوعات Paymob في Google Sheets
كل معاملة Paymob، ناجحة أو فاشلة، تصبح صفًا في جدولك.
Paymob → Google Sheets4 س/شهر
تطبيقات المنطقةسهل
تنبيه تيليجرام لمدفوعات Paymob الفاشلة
اعرف فورًا عندما تفشل دفعة عميل، لتتصل به وتنقذ البيعة.
Paymob → Telegram2 س/شهر
تطبيقات المنطقةمتقدم
تحقق من إشعارات Paymob باستخدام HMAC
افحص توقيع Paymob في كل إشعار حتى تُرفض رسائل الدفع المزيفة.
Paymob → Telegram1 س/شهر