{
  "name": "IntelliCall — Qualified lead to CRM + notify",
  "nodes": [
    {
      "parameters": {
        "content": "## IntelliCall — Qualified lead to CRM + notify\n\nWhen the AI qualifies a lead, push it into your CRM and notify the team.\n\n**Setup:**\n1. Activate this workflow, copy the Webhook node's **Production URL**, and paste it in IntelliCall under **Settings → Integrations → n8n**.\n2. Replace the *Add to your CRM* node with your CRM's n8n node (HubSpot, Pipedrive, Airtable, …) — or fill in your CRM's API URL. The qualified lead data is available as `{{ $json.body.data.lead.name }}`, `{{ $json.body.data.lead.phone }}`, `{{ $json.body.data.score }}`, `{{ $json.body.data.reason }}`.\n3. Replace the *Notify the team* node with Slack / Telegram / Gmail — whatever your team uses.",
        "height": 440,
        "width": 440
      },
      "id": "c3d4e5f6-0001-4000-8000-000000000001",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-220, -120]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "intellicall-events",
        "options": {}
      },
      "id": "c3d4e5f6-0002-4000-8000-000000000002",
      "name": "IntelliCall events",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [260, 0],
      "webhookId": "c3d4e5f6-0002-4000-8000-000000000002"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "id": "c3d4e5f6-0010-4000-8000-000000000010",
              "leftValue": "={{ $json.body.event }}",
              "rightValue": "leadQualified",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "c3d4e5f6-0003-4000-8000-000000000003",
      "name": "Is lead qualified?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [500, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://YOUR_CRM_API_URL/contacts",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ name: $json.body.data.lead.name, phone: $json.body.data.lead.phone, score: $json.body.data.score, note: $json.body.data.reason }) }}",
        "options": {}
      },
      "id": "c3d4e5f6-0004-4000-8000-000000000004",
      "name": "Add to your CRM (replace me)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [760, -100]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://YOUR_NOTIFICATION_WEBHOOK",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ text: '🔥 Hot lead: ' + ($json.body.data.lead.name || $json.body.data.lead.phone) + ' (score ' + $json.body.data.score + ') — ' + $json.body.data.reason }) }}",
        "options": {}
      },
      "id": "c3d4e5f6-0005-4000-8000-000000000005",
      "name": "Notify the team (replace me)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [760, 100]
    }
  ],
  "connections": {
    "IntelliCall events": {
      "main": [
        [
          {
            "node": "Is lead qualified?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is lead qualified?": {
      "main": [
        [
          {
            "node": "Add to your CRM (replace me)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify the team (replace me)",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  },
  "settings": {},
  "pinData": {}
}
