{
  "name": "گالری ۲: خلاصه روزانه خبرها از RSS",
  "nodes": [
    {
      "parameters": {
        "content": "## پایش محتوا\n۱) هر روز ۸ صبح\n۲) خواندن چند خوراک RSS\n۳) حذف خبرهای دیده‌شده (اجراهای قبلی)\n۴) فیلتر کلیدواژه‌ها\n۵) خلاصه با مدل و ارسال یک پیام\n\n⚠️ نمونه آموزشی loOkiYar؛ غیرفعال. گره‌های بنفش (سنجاق‌دار) داده نمایشی ساختگی دارند و در اجرای دستی به سرویس واقعی وصل نمی‌شوند.",
        "height": 290,
        "width": 460,
        "color": 4
      },
      "id": "cd37c6e1-fa98-5fc3-999f-4271a433aa2c",
      "name": "یادداشت 1",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -60,
        -370
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "id": "de5be6ee-7229-5d3e-9539-1b53de973e8a",
      "name": "هر روز ۸ صبح",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        140
      ]
    },
    {
      "parameters": {
        "url": "https://example.com/tech/feed.xml",
        "options": {}
      },
      "id": "7e1152e3-1297-527e-ada0-55cb7f46351b",
      "name": "RSS خبر فناوری",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.2,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "url": "https://example.org/blog/rss",
        "options": {}
      },
      "id": "0c3058b6-eff8-54f8-8152-5ef7c2bb9bdc",
      "name": "RSS وبلاگ رقیب",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.2,
      "position": [
        240,
        260
      ]
    },
    {
      "parameters": {},
      "id": "a4818006-a42e-5377-af4d-10b2d1b88245",
      "name": "ادغام خوراک‌ها",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.1,
      "position": [
        480,
        140
      ]
    },
    {
      "parameters": {
        "operation": "removeItemsSeenInPreviousExecutions",
        "dedupeValue": "={{ $json.link }}",
        "options": {}
      },
      "id": "48654a1b-bdce-59fc-8b92-e009617f8b42",
      "name": "فقط خبر تازه",
      "type": "n8n-nodes-base.removeDuplicates",
      "typeVersion": 2,
      "position": [
        700,
        140
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "d9c50fb0-c9e4-5785-9217-e5604b0e4a37",
              "leftValue": "={{ ($json.title + ' ' + ($json.contentSnippet || '')).toLowerCase() }}",
              "rightValue": "(automation|n8n|agent|ai|هوش مصنوعی)",
              "operator": {
                "type": "string",
                "operation": "regex"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "e9a3557b-ccd9-530a-8336-2e97856b8a39",
      "name": "کلیدواژه‌های مهم",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.2,
      "position": [
        920,
        140
      ]
    },
    {
      "parameters": {
        "aggregate": "aggregateIndividualFields",
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "title"
            },
            {
              "fieldToAggregate": "link"
            },
            {
              "fieldToAggregate": "contentSnippet"
            }
          ]
        },
        "options": {}
      },
      "id": "55feb395-aa95-5db0-ac29-43da21bcd66d",
      "name": "یک فهرست",
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        1140,
        140
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=خبرها:\n{{ $json.title.map((t, i) => (i + 1) + '. ' + t + ' — ' + ($json.contentSnippet[i] || '').slice(0, 300) + ' (' + $json.link[i] + ')').join('\\n') }}",
        "hasOutputParser": false,
        "messages": {
          "messageValues": [
            {
              "type": "SystemMessagePromptTemplate",
              "message": "از این خبرها خلاصه فارسی کوتاه بساز: برای هر خبر یک جمله و پیوندش. چیزی اضافه نکن که در متن نیست. اگر خبری نیست بنویس «امروز خبر مهمی نبود»."
            }
          ]
        }
      },
      "id": "569b25d1-0eca-5b9d-a823-3a90fc805990",
      "name": "خلاصه فارسی",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.9,
      "position": [
        1360,
        140
      ]
    },
    {
      "parameters": {
        "model": "openai/gpt-5-mini",
        "options": {
          "temperature": 0.2
        }
      },
      "id": "49534aa3-31d1-5f40-b885-3074766f3de5",
      "name": "مدل (OpenRouter)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "typeVersion": 1,
      "position": [
        1360,
        360
      ],
      "credentials": {
        "openRouterApi": {
          "id": "fce14e07dac85574",
          "name": "OpenRouter account"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $vars.TELEGRAM_CHAT_ID || 'REPLACE_WITH_CHAT_ID' }}",
        "text": "=📰 خلاصه امروز\n\n{{ $json.text }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "id": "bb7c491c-df62-5b03-be82-e5a2269a69e2",
      "name": "ارسال خلاصه",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1620,
        140
      ],
      "credentials": {
        "telegramApi": {
          "id": "536244d78d565cab",
          "name": "Telegram bot"
        }
      }
    }
  ],
  "connections": {
    "مدل (OpenRouter)": {
      "ai_languageModel": [
        [
          {
            "node": "خلاصه فارسی",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "هر روز ۸ صبح": {
      "main": [
        [
          {
            "node": "RSS خبر فناوری",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS وبلاگ رقیب",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS خبر فناوری": {
      "main": [
        [
          {
            "node": "ادغام خوراک‌ها",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS وبلاگ رقیب": {
      "main": [
        [
          {
            "node": "ادغام خوراک‌ها",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "ادغام خوراک‌ها": {
      "main": [
        [
          {
            "node": "فقط خبر تازه",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "فقط خبر تازه": {
      "main": [
        [
          {
            "node": "کلیدواژه‌های مهم",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "کلیدواژه‌های مهم": {
      "main": [
        [
          {
            "node": "یک فهرست",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "یک فهرست": {
      "main": [
        [
          {
            "node": "خلاصه فارسی",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "خلاصه فارسی": {
      "main": [
        [
          {
            "node": "ارسال خلاصه",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "id": "LkyGal02RssDigest",
  "meta": {
    "templateCredsSetupCompleted": false,
    "instanceId": "lookiyar-academy-demo"
  },
  "tags": [
    {
      "name": "loOkiYar Academy"
    },
    {
      "name": "gallery"
    }
  ],
  "pinData": {
    "RSS خبر فناوری": [
      {
        "json": {
          "title": "New open-source agent framework released",
          "link": "https://example.com/tech/1",
          "contentSnippet": "A framework for building AI agents with tools and memory.",
          "_demo": "داده نمایشی ساختگی"
        }
      },
      {
        "json": {
          "title": "Phone sales up 3% this quarter",
          "link": "https://example.com/tech/2",
          "contentSnippet": "Hardware market report.",
          "_demo": "داده نمایشی ساختگی"
        }
      },
      {
        "json": {
          "title": "n8n adds new workflow history features",
          "link": "https://example.com/tech/3",
          "contentSnippet": "Versioning and publishing changes for automation teams.",
          "_demo": "داده نمایشی ساختگی"
        }
      }
    ],
    "RSS وبلاگ رقیب": [
      {
        "json": {
          "title": "How we automated invoice processing",
          "link": "https://example.org/blog/9",
          "contentSnippet": "Our automation story with document extraction.",
          "_demo": "داده نمایشی ساختگی"
        }
      },
      {
        "json": {
          "title": "Office party photos",
          "link": "https://example.org/blog/10",
          "contentSnippet": "Team event.",
          "_demo": "داده نمایشی ساختگی"
        }
      }
    ],
    "خلاصه فارسی": [
      {
        "json": {
          "text": "۱. یک چارچوب متن‌باز برای ساخت ایجنت با ابزار و حافظه منتشر شد (https://example.com/tech/1)\n۲. n8n امکانات تازه تاریخچه و انتشار ورک‌فلو اضافه کرد (https://example.com/tech/3)\n۳. تجربه یک تیم از خودکارسازی پردازش فاکتور (https://example.org/blog/9)",
          "_demo": "داده نمایشی ساختگی"
        }
      }
    ],
    "ارسال خلاصه": [
      {
        "json": {
          "ok": true,
          "result": {
            "message_id": 611
          },
          "_demo": "داده نمایشی ساختگی"
        }
      }
    ]
  }
}