{
  "name": "تحلیل‌گر پیج از اسکرین‌شات Insights · تلگرام · لوکیار",
  "nodes": [
    {
      "parameters": {
        "content": "# 01 — TELEGRAM INPUT\nدریافت پیام، تصویر یا دستور «آنالیز»",
        "height": 760,
        "width": 700,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -80,
        60
      ],
      "id": "a34a8c4c-6ab4-41ff-99b3-0be222ca7117",
      "name": "Sticky 01"
    },
    {
      "parameters": {
        "content": "# 02 — COLLECT\nذخیرهٔ هر تصویر و توضیح در جدول insights_inbox",
        "height": 300,
        "width": 700,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        640,
        60
      ],
      "id": "30bd7417-3c0d-4555-b607-a1376f8ee9f0",
      "name": "Sticky 02"
    },
    {
      "parameters": {
        "content": "# 03 — PREPARE\nخواندن همهٔ تصویرها و توضیح‌های ذخیره‌شده",
        "height": 440,
        "width": 1100,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        640,
        380
      ],
      "id": "7dd77331-dd61-4a3e-9dea-0129ecea57fd",
      "name": "Sticky 03"
    },
    {
      "parameters": {
        "content": "# 04 — AI ANALYSIS\nمدل قابل تعویض در نود Settings",
        "height": 440,
        "width": 460,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        1760,
        380
      ],
      "id": "bc312316-79ba-41ba-ba36-b70b61807817",
      "name": "Sticky 04"
    },
    {
      "parameters": {
        "content": "# 05 — OUTPUT\nارسال تحلیل و پاک کردن صندوق",
        "height": 440,
        "width": 900,
        "color": "#F8D0FB"
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        2240,
        380
      ],
      "id": "6d54458f-ed56-4664-bfed-ad0067680997",
      "name": "Sticky 05"
    },
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        300
      ],
      "id": "5ce5c742-c860-4e69-93f6-71cf68f0248c",
      "name": "Telegram Trigger"
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "const m = $json.message || {};\nconst chat_id = String(m.chat?.id ?? '');\nconst text = (m.text || '').trim();\nconst caption = (m.caption || '').trim();\nconst rows = [];\n\nlet fileId = null;\nif (m.photo?.length) fileId = m.photo.at(-1).file_id;\nelse if (/^image\\//.test(m.document?.mime_type || '')) fileId = m.document.file_id;\nif (fileId) rows.push({ kind: 'image', value: fileId });\nif (caption) rows.push({ kind: 'note', value: caption });\n\nconst cmd = text.match(/^\\/?(analy[sz]e|آنالیز|انالیز|تحلیل)(\\s+|$)([\\s\\S]*)/i);\nlet route = 'start';\nlet request = '';\nif (/^\\/?(start|help|شروع|راهنما)(\\s|$)/i.test(text)) route = 'start';\nelse if (cmd) {\n  route = 'analyze';\n  request = cmd[3].trim();\n} else if (text) {\n  rows.push({ kind: 'note', value: text });\n  route = 'save';\n} else if (rows.length) route = 'save';\n\nconst ack = !m.media_group_id || !!caption;\nreturn { json: { chat_id, route, rows, ack, request, has_image: !!fileId } };"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        200,
        300
      ],
      "id": "a6602ace-af2f-47ea-84e2-cf31ca8638f4",
      "name": "Parse Message"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "4bf02f69-619d-458c-875f-d5c6b65511f6",
                    "leftValue": "={{ $json.route }}",
                    "rightValue": "save",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "save"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "fba10ba8-eb7d-444c-a877-14a1655b2fd3",
                    "leftValue": "={{ $json.route }}",
                    "rightValue": "analyze",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "analyze"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "7fa25480-3d77-4c37-88e0-ae2f06431ece",
                    "leftValue": "={{ $json.route }}",
                    "rightValue": "start",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "start"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        420,
        300
      ],
      "id": "a8aaaa12-a7d4-4cce-8f87-7c0faae791d7",
      "name": "Route"
    },
    {
      "parameters": {
        "chatId": "={{ $json.chat_id }}",
        "text": "اسکرین‌شات‌های Insights پیجت رو بفرست (تکی یا آلبومی، هر چندتا که داری).\nاگه توضیحی داری، مثلاً رفتار مخاطب‌ها، پیام‌ها و کامنت‌هایی که گرفتی یا هدفت از پیج، همین‌جا بنویس.\nوقتی همه رو فرستادی، بنویس: آنالیز",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        420,
        640
      ],
      "id": "971b7556-0e5b-4438-bc83-ccec020d8753",
      "name": "Send Help"
    },
    {
      "parameters": {
        "jsCode": "// هر تصویر یا توضیح یک ردیف جدا در جدول می‌شود\nconst p = $input.first().json;\nreturn p.rows.map(r => ({ json: { chat_id: p.chat_id, kind: r.kind, value: r.value } }));"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        700,
        160
      ],
      "id": "6f755c09-6805-4a11-8fe5-0a95059f8c52",
      "name": "To Rows"
    },
    {
      "parameters": {
        "resource": "row",
        "operation": "insert",
        "dataTableId": {
          "__rl": true,
          "mode": "name",
          "value": "insights_inbox"
        },
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": null,
          "matchingColumns": [],
          "schema": []
        },
        "options": {}
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        900,
        160
      ],
      "id": "835560c1-60a8-4d21-b5ca-fe212b88824b",
      "name": "Save to Inbox"
    },
    {
      "parameters": {
        "jsCode": "// فقط یک پیام تأیید برمی‌گرداند\nconst p = $('Parse Message').first().json;\nif (!p.ack) return [];\nconst text = p.has_image\n  ? '📥 دریافت شد. اگه تصویر یا توضیح دیگه‌ای داری بفرست. وقتی تموم شد بنویس: آنالیز'\n  : '📝 توضیحت ذخیره شد. تصویرها رو هم بفرست و آخرش بنویس: آنالیز';\nreturn [{ json: { chat_id: p.chat_id, text } }];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1100,
        160
      ],
      "id": "c07432e7-a75d-49f8-b3f5-71286ea8d0e9",
      "name": "Ack Once"
    },
    {
      "parameters": {
        "chatId": "={{ $json.chat_id }}",
        "text": "={{ $json.text }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1300,
        160
      ],
      "id": "503b501a-544d-477e-8939-5e0a7170da8b",
      "name": "Send Ack"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "0a9ad28c-9188-461f-aa46-a3af7ba2dcf9",
              "name": "model",
              "value": "anthropic/claude-sonnet-5.5",
              "type": "string"
            },
            {
              "id": "24a429f1-7cfc-4661-a98f-2acd79a211e3",
              "name": "system_prompt",
              "value": "نقش تو تحلیل‌گر سوشیال مدیا و مشاور استراتژیک یک پیج اینستاگرام است.\nکاربر اسکرین‌شات‌های Insights پیجش (آمار کلی، ریلزها، پست‌ها، مخاطب‌ها) و توضیحات خودش را فرستاده است.\nوظیفهٔ تو تأیید کردن مسیر فعلی یا راضی نگه‌داشتن کاربر نیست؛ کمک به بهترین تصمیم بر اساس شواهد است.\n\nخواندن تصاویر:\nهمهٔ عددها را فقط از تصاویر و توضیحات کاربر بردار. عدد نساز.\nاگر عددی در تصویر ناخواناست یا معلوم نیست مربوط به کدام پست است، صریح بگو.\nاگر تصویرها به یک بازهٔ زمانی محدود مربوط‌اند، همان را در نظر بگیر.\n\nقانون نقد:\nاگر داده نشان می‌دهد یک مسیر، سریال یا قالب محتوا بازده لازم را ندارد، صریحاً بگو و ادامه‌اش را فقط به خاطر وقت و هزینه‌ای که برایش رفته پیشنهاد نکن.\nهزینهٔ ادامهٔ مسیر را با راه جایگزین مقایسه کن و یک آزمایش کوچک و کم‌هزینه با معیار موفقیت و زمان ارزیابی پیشنهاد بده.\nبین دادهٔ واقعی، برداشت و حدس فرق بگذار. اگر داده کم است، عدم قطعیت را بگو.\nپیشنهادت پیشنهاد است؛ تصمیم نهایی با صاحب پیج است.\n\nقالب پاسخ (فارسی، مناسب تلگرام، بدون جدول و بدون علامت‌های Markdown مثل ** یا #، حداکثر ۳۵۰۰ کاراکتر):\n۱. وضعیت پیج در سه خط، با عدد.\n۲. چه چیزی جواب داده و چه چیزی نه، با اشاره به پست یا ریلز مشخص.\n۳. تصمیم پیشنهادی: ادامه، تغییر یا توقف موقت مسیر فعلی، با دلیل.\n۴. پنج ایدهٔ محتوای بعدی، هر کدام با یک هوک کوتاه فارسی و قالب (ریلز یا کاروسل).\n۵. برنامهٔ هفتهٔ آینده و یک آزمایش کوچک با معیار سنجش مشخص.\n\nاگر کاربر سؤال یا درخواست مشخصی نوشته، اول به همان جواب بده.",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        700,
        500
      ],
      "id": "ece6779a-b888-4abd-a119-f42a088eb964",
      "name": "Settings"
    },
    {
      "parameters": {
        "resource": "row",
        "operation": "get",
        "dataTableId": {
          "__rl": true,
          "mode": "name",
          "value": "insights_inbox"
        },
        "matchType": "allConditions",
        "filters": {
          "conditions": [
            {
              "keyName": "chat_id",
              "condition": "eq",
              "keyValue": "={{ $('Parse Message').first().json.chat_id }}"
            }
          ]
        },
        "returnAll": true,
        "orderBy": true,
        "orderByColumn": "id",
        "orderByDirection": "ASC"
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        900,
        500
      ],
      "id": "019398ec-67c4-48ab-a88d-37549ee3be9b",
      "name": "Get Inbox",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "jsCode": "const chat_id = $('Parse Message').first().json.chat_id;\nconst rows = $input.all().map(item => item.json).filter(row => row.kind);\nconst images = rows.filter(row => row.kind === 'image');\nif (!images.length) return [{ json: { has_images: false, chat_id } }];\nconst lastId = images.length > 10 ? images[10].id - 1 : rows.at(-1).id;\nreturn images.slice(0, 10).map(row => ({\n  json: { has_images: true, chat_id, file_id: row.value, lastId },\n}));"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1100,
        500
      ],
      "id": "68e6fb6d-a9e3-4591-aeba-75e9cbc12104",
      "name": "Split Images"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "579e185e-fadd-4727-a7c1-0aab742c1601",
              "leftValue": "={{ $json.has_images }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1300,
        500
      ],
      "id": "afcb8675-3a2e-42c2-8e1a-fc85f43ff4b0",
      "name": "Has Images?"
    },
    {
      "parameters": {
        "chatId": "={{ $json.chat_id }}",
        "text": "هنوز تصویری از Insights نفرستادی 🙂\nاسکرین‌شات‌های Insights پیجت رو بفرست (تکی یا آلبومی، هر چندتا که داری).\nاگه توضیحی داری، مثلاً رفتار مخاطب‌ها، پیام‌ها و کامنت‌هایی که گرفتی یا هدفت از پیج، همین‌جا بنویس.\nوقتی همه رو فرستادی، بنویس: آنالیز",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1300,
        720
      ],
      "id": "7daf0c13-10d2-4fc7-8e3e-3d6c4c474e90",
      "name": "Send No Images"
    },
    {
      "parameters": {
        "resource": "file",
        "fileId": "={{ $json.file_id }}",
        "additionalFields": {},
        "operation": "get",
        "download": true
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1500,
        480
      ],
      "id": "3bd8c97a-c344-44a3-a6d0-d25a685a080f",
      "name": "Download Image"
    },
    {
      "parameters": {
        "jsCode": "// همهٔ تصویرها و توضیح‌ها را در یک پیام برای مدل جمع می‌کند\nconst p = $('Parse Message').first().json;\nconst s = $('Settings').first().json;\nconst { lastId } = $('Split Images').first().json;\nconst rows = $('Get Inbox').all().map(i => i.json).filter(row => row.id <= lastId);\nconst notes = rows.filter(r => r.kind === 'note').map(r => '- ' + r.value);\n\nconst items = $input.all();\nconst content = [];\nfor (let i = 0; i < items.length; i++) {\n  const bin = items[i].binary?.data;\n  if (!bin) throw new Error('Missing image binary data');\n  const buf = await this.helpers.getBinaryDataBuffer(i, 'data');\n  const mime = /^image\\//.test(bin.mimeType || '') ? bin.mimeType : 'image/jpeg';\n  content.push({ type: 'image_url', image_url: { url: `data:${mime};base64,${buf.toString('base64')}` } });\n}\nconst intro = [\n  `تعداد اسکرین‌شات‌ها: ${content.length}`,\n  'توضیحات کاربر:',\n  notes.length ? notes.join('\\n') : '(توضیحی ننوشته)',\n  '',\n  'درخواست: ' + (p.request || 'پیجم رو آنالیز کن و بگو چی کار کنم.'),\n].join('\\n');\ncontent.unshift({ type: 'text', text: intro });\n\nreturn [{ json: {\n  chat_id: p.chat_id,\n  image_count: content.length - 1,\n  note_count: notes.length,\n  body: {\n    model: s.model,\n    max_tokens: 8000,\n    temperature: 0.4,\n    messages: [\n      { role: 'system', content: s.system_prompt },\n      { role: 'user', content },\n    ],\n  },\n} }];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1640,
        600
      ],
      "id": "d5eb0cd9-3b20-45d7-bf0d-84d6490fc7c5",
      "name": "Build Request"
    },
    {
      "parameters": {
        "chatId": "={{ $json.chat_id }}",
        "text": "={{ '⏳ ' + $json.image_count + ' تصویر و ' + $json.note_count + ' توضیح رسید. دارم تحلیل می‌کنم…' }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1820,
        500
      ],
      "id": "f2d5a261-3054-4cdb-9070-b46e7c386ff2",
      "name": "Send Progress"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://openrouter.ai/api/v1/chat/completions",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($('Build Request').first().json.body) }}",
        "options": {
          "timeout": 180000
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2020,
        500
      ],
      "id": "16a466d3-cba0-4748-b37d-7dd83f5a3600",
      "name": "Ask AI",
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "jsCode": "const r = $input.first().json;\nconst choice = r.choices?.[0];\nconst c = choice?.message?.content;\nconst content = typeof c === 'string' ? c : Array.isArray(c) ? c.map(x => x.text || '').join('') : '';\nconst ok = !!content.trim() && !['length', 'error', 'content_filter'].includes(choice?.finish_reason);\nconst text = ok\n  ? '📊 تحلیل پیج\\n\\n' + content.trim()\n  : '⚠️ تحلیل کامل نشد. تصویرها و توضیح‌هات ذخیره موندن. دوباره بنویس: آنالیز';\nconst chat_id = $('Build Request').first().json.chat_id;\nreturn (text.match(/[\\s\\S]{1,2000}/gu) || []).map(part => ({ json: { chat_id, ok, text: part } }));"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        2300,
        500
      ],
      "id": "53f54078-4a26-461c-b0f6-e858ac10b836",
      "name": "Format Reply"
    },
    {
      "parameters": {
        "chatId": "={{ $json.chat_id }}",
        "text": "={{ $json.text }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        2500,
        500
      ],
      "id": "286ba58d-3397-4b67-af11-94a2fb185c35",
      "name": "Send Analysis"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "db2213d9-1207-4805-8c86-b7407ac6dc94",
              "leftValue": "={{ $('Format Reply').first().json.ok }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        2700,
        500
      ],
      "id": "5ddc1b63-89cb-4847-b9a6-db9a3d3743bb",
      "name": "Analysis OK?"
    },
    {
      "parameters": {
        "resource": "row",
        "operation": "deleteRows",
        "dataTableId": {
          "__rl": true,
          "mode": "name",
          "value": "insights_inbox"
        },
        "matchType": "allConditions",
        "filters": {
          "conditions": [
            {
              "keyName": "chat_id",
              "condition": "eq",
              "keyValue": "={{ $('Parse Message').first().json.chat_id }}"
            },
            {
              "keyName": "id",
              "condition": "lte",
              "keyValue": "={{ $('Split Images').first().json.lastId }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        2920,
        480
      ],
      "id": "140d8a39-eae3-4096-bb8e-53da7c397d03",
      "name": "Clear Inbox",
      "executeOnce": true
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Parse Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Message": {
      "main": [
        [
          {
            "node": "Route",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route": {
      "main": [
        [
          {
            "node": "To Rows",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Help",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "To Rows": {
      "main": [
        [
          {
            "node": "Save to Inbox",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Inbox": {
      "main": [
        [
          {
            "node": "Ack Once",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ack Once": {
      "main": [
        [
          {
            "node": "Send Ack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Settings": {
      "main": [
        [
          {
            "node": "Get Inbox",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Inbox": {
      "main": [
        [
          {
            "node": "Split Images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Images": {
      "main": [
        [
          {
            "node": "Has Images?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Images?": {
      "main": [
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send No Images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Build Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Request": {
      "main": [
        [
          {
            "node": "Send Progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Progress": {
      "main": [
        [
          {
            "node": "Ask AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask AI": {
      "main": [
        [
          {
            "node": "Format Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Reply": {
      "main": [
        [
          {
            "node": "Send Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Analysis": {
      "main": [
        [
          {
            "node": "Analysis OK?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analysis OK?": {
      "main": [
        [
          {
            "node": "Clear Inbox",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": false
}
