{
 "name": "منشیوا — سرنخ از هر فرم و تماس فوری",
 "nodes": [
  {
   "parameters": {
    "content": "## هر فرم ← سرنخ منشیوا\n۱) در گرهٔ «ثبت سرنخ» به‌جای `PASTE_YOUR_KEY` کلید API خود را بگذارید (پنل ← API، دسترسی «ثبت سرنخ»). بهتر است آن را به یک Credential از نوع Header Auth منتقل کنید.\n۲) نشانی Webhook را به فرم یا سامانهٔ خودتان بدهید و فیلدهای `name`، `phone` و `note` بفرستید.\n۳) برای تماس فوری شیوا، `call_now` را در گرهٔ «نگاشت» true کنید (فضاهایی که خط خروجی دارند).",
    "width": 560,
    "height": 270
   },
   "id": "263fe3a9-2973-5ebc-b2b5-71cefc766f72",
   "name": "راهنما",
   "type": "n8n-nodes-base.stickyNote",
   "typeVersion": 1,
   "position": [
    -40,
    -320
   ]
  },
  {
   "parameters": {
    "httpMethod": "POST",
    "path": "monshiva-lead",
    "options": {}
   },
   "id": "56c1c05e-11e4-5923-bd66-4b6143411379",
   "name": "Webhook",
   "type": "n8n-nodes-base.webhook",
   "typeVersion": 2,
   "position": [
    0,
    0
   ],
   "webhookId": "536d1cf4-cb5c-5f19-b0c2-36f13cf179a0"
  },
  {
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "7f4c5fb9-4ebb-5a76-af07-7bf70ccfdc9d",
       "name": "name",
       "value": "={{ $json.body.name || \"\" }}",
       "type": "string"
      },
      {
       "id": "9775b624-ad14-55d5-8050-91e9cc2e6a6d",
       "name": "mobile",
       "value": "={{ String($json.body.phone || $json.body.mobile || \"\") }}",
       "type": "string"
      },
      {
       "id": "5a4417f0-2e21-5cca-9b10-8e972fe74f22",
       "name": "note",
       "value": "={{ $json.body.note || \"\" }}",
       "type": "string"
      },
      {
       "id": "2c414315-32d6-5674-833b-016b720bfcaa",
       "name": "source",
       "value": "n8n",
       "type": "string"
      },
      {
       "id": "c818155a-c13f-5ab3-8d30-df052fa3a48c",
       "name": "call_now",
       "value": false,
       "type": "boolean"
      }
     ]
    },
    "options": {}
   },
   "id": "569311f9-c630-570e-80b3-28072503c420",
   "name": "نگاشت",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    220,
    0
   ]
  },
  {
   "parameters": {
    "method": "POST",
    "url": "https://monshiva.com/api/public/v1/leads",
    "sendHeaders": true,
    "headerParameters": {
     "parameters": [
      {
       "name": "Authorization",
       "value": "Bearer PASTE_YOUR_KEY"
      }
     ]
    },
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "={{ JSON.stringify({ name: $json.name, mobile: $json.mobile, note: $json.note, source: $json.source, call_now: $json.call_now }) }}",
    "options": {}
   },
   "id": "26c16a64-5813-5b5d-8f95-299826e7795c",
   "name": "ثبت سرنخ",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    440,
    0
   ]
  }
 ],
 "connections": {
  "Webhook": {
   "main": [
    [
     {
      "node": "نگاشت",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "نگاشت": {
   "main": [
    [
     {
      "node": "ثبت سرنخ",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "active": false,
 "settings": {
  "executionOrder": "v1"
 },
 "pinData": {},
 "meta": {
  "templateCredsSetupCompleted": false
 }
}