{
  "name": "کپشن و ایده‌ی پست هفتگی برای پیج",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [
                6
              ],
              "triggerAtHour": 9
            }
          ]
        }
      },
      "id": "2573f04d-8b8a-4336-8b5d-8488c9995f5c",
      "name": "هر شنبه ساعت ۹",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "c630a44d-09a9-4b3f-80fb-ed71ee2d0cd6",
              "name": "business",
              "value": "فروشگاه آنلاین لباس زنانه با ارسال سراسری",
              "type": "string"
            },
            {
              "id": "784eeffa-b2f6-48f1-b4fc-0b31668c0363",
              "name": "tone",
              "value": "صمیمی و پرانرژی",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "ec3f4e68-4da8-4671-bfd6-79e3105d2e96",
      "name": "مشخصات کسب‌وکار (ویرایش کنید)",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://nabegheapi.ir/v1/chat/completions",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ model: 'nabeghe/smart', messages: [ { role: 'system', content: \"تو کارشناس تولید محتوای اینستاگرام فارسی هستی. ۵ ایده‌ی پست برای این هفته بنویس؛ برای هر کدام: عنوان کوتاه، کپشن کامل با قلاب قوی در خط اول و دعوت به اقدام، و ۶ هشتگ مرتبط. خروجی تمیز و شماره‌دار.\" }, { role: 'user', content: 'کسب‌وکار: ' + $json.business + '\\nلحن: ' + $json.tone } ] }) }}",
        "options": {
          "timeout": 120000
        }
      },
      "id": "f001bc6e-2500-4893-aef7-6f402596807a",
      "name": "ساخت کپشن‌ها (Nabeghe API)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "nabeghe-api",
          "name": "Nabeghe API"
        }
      }
    },
    {
      "parameters": {
        "chatId": "YOUR_CHAT_ID",
        "text": "={{ '📅 ایده‌های این هفته:\\n\\n' + $json.choices[0].message.content }}",
        "additionalFields": {
          "parse_mode": "HTML"
        }
      },
      "id": "aee123f5-2a09-4d22-b31d-4a28d311b1a6",
      "name": "ارسال در تلگرام",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        660,
        0
      ],
      "credentials": {
        "telegramApi": {
          "id": "telegram",
          "name": "Telegram Bot"
        }
      }
    }
  ],
  "connections": {
    "هر شنبه ساعت ۹": {
      "main": [
        [
          {
            "node": "مشخصات کسب‌وکار (ویرایش کنید)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "مشخصات کسب‌وکار (ویرایش کنید)": {
      "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": []
}