{
  "name": "انتشار خودکار مطلب سایت در کانال تلگرام",
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyHour"
            }
          ]
        },
        "feedUrl": "https://example.com/feed"
      },
      "id": "98103f48-1c52-4fae-899b-f4b885a742d3",
      "name": "مطلب تازه در RSS (آدرس را عوض کنید)",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://nabegheapi.ir/v1/chat/completions",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ model: 'nabeghe/auto', messages: [ { role: 'system', content: \"از روی این مطلب یک پست تلگرامی فارسی جذاب بنویس: یک تیتر کوتاه، ۳ تا ۵ خط خلاصه‌ی مفید، و در انتها «ادامه‌ی مطلب» با لینک. بدون اغراق.\" }, { role: 'user', content: 'عنوان: ' + $json.title + '\\nخلاصه: ' + ($json.contentSnippet || '') + '\\nلینک: ' + $json.link } ] }) }}",
        "options": {
          "timeout": 120000
        }
      },
      "id": "167af672-25fa-41f0-bf2a-364667f1d67e",
      "name": "نوشتن پست تلگرام (Nabeghe API)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        240,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "nabeghe-api",
          "name": "Nabeghe API"
        }
      }
    },
    {
      "parameters": {
        "chatId": "@your_channel",
        "text": "={{ $json.choices[0].message.content }}",
        "additionalFields": {
          "parse_mode": "HTML"
        }
      },
      "id": "8ec90e5a-d160-4f68-b645-bf93cb343a8a",
      "name": "انتشار در کانال",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        480,
        0
      ],
      "credentials": {
        "telegramApi": {
          "id": "telegram",
          "name": "Telegram Bot"
        }
      }
    }
  ],
  "connections": {
    "مطلب تازه در RSS (آدرس را عوض کنید)": {
      "main": [
        [
          {
            "node": "نوشتن پست تلگرام (Nabeghe API)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "نوشتن پست تلگرام (Nabeghe API)": {
      "main": [
        [
          {
            "node": "انتشار در کانال",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "source": "nabeghemarket.ir/automation"
  },
  "pinData": {},
  "tags": []
}