{
  "name": "Score and route leads with Clearbit, Mattermost and Trello",
  "nodes": [
    {
      "id": "2d83abdd-2344-4ee4-af9a-ce86fd687a15",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -288,
        16
      ],
      "parameters": {
        "width": 550,
        "height": 690,
        "content": "## How it works\nEvery hour this workflow fetches fresh leads from your form database, enriches every email address with Clearbit data, and blends the original submission with company details. A scorin"
      }
    },
    {
      "id": "637dc7ac-dced-4516-82c1-71a8d29ae3e0",
      "name": "Intake & Enrichment Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        192
      ],
      "parameters": {
        "width": 546,
        "height": 590,
        "content": "## Lead Intake & Enrichment\nThis section pulls new raw leads from your primary data source (for example, a form-backend or CRM endpoint). After breaking the array into individual items, each email add"
      }
    },
    {
      "id": "42b7e80b-0f90-4c78-909a-174c9dd816f9",
      "name": "Scoring Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        192
      ],
      "parameters": {
        "width": 610,
        "height": 590,
        "content": "## Scoring & Qualification\nOnce the original lead data and the Clearbit enrichment have been merged, the **Calculate Lead Score** code node assigns points for factors such as employee count, Alexa ran"
      }
    },
    {
      "id": "6dc82e39-236e-48f8-91f2-06d84280c386",
      "name": "Storage & Alerts Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        144
      ],
      "parameters": {
        "width": 1010,
        "height": 734,
        "content": "## Storage & Notifications\nSuccessful leads are written to Trello with rich context in the card description—including raw form data, enrichment highlights, and the numeric score. Sales reps get an imm"
      }
    },
    {
      "id": "c105b7f8-59c0-498b-af0b-45c17cd7699d",
      "name": "Daily Lead Check",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        304,
        512
      ]
    },
    {
      "id": "3575b096-6a52-44c6-aca2-799c5c727798",
      "name": "Fetch New Leads",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        512
      ]
    },
    {
      "id": "41a674a3-7b1e-4e02-a801-f64c4ea8cdb8",
      "name": "Parse Leads",
      "type": "n8n-nodes-base.code",
      "position": [
        704,
        512
      ]
    },
    {
      "id": "0d95e513-4ed8-4a14-bf95-a63f16c55a7c",
      "name": "Split Leads",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        912,
        512
      ]
    },
    {
      "id": "c7cfe480-21f7-47c6-af5f-a1d5ed6040c5",
      "name": "Enrich with Clearbit",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1104,
        512
      ]
    },
    {
      "id": "3b86455a-9dfd-4e55-a819-d62b5e0bcea8",
      "name": "Check Clearbit Response",
      "type": "n8n-nodes-base.if",
      "position": [
        1312,
        512
      ]
    },
    {
      "id": "44d75802-4cd5-4800-ba15-dca1e583efe2",
      "name": "Merge Lead & Enrichment",
      "type": "n8n-nodes-base.merge",
      "position": [
        1504,
        512
      ]
    },
    {
      "id": "2d7ceffc-f530-433c-a892-7915ddaad855",
      "name": "Calculate Lead Score",
      "type": "n8n-nodes-base.code",
      "position": [
        1712,
        512
      ]
    },
    {
      "id": "fab5a497-359c-43a0-932d-6a2b93d18d1c",
      "name": "IF Qualified?",
      "type": "n8n-nodes-base.if",
      "position": [
        1904,
        512
      ]
    },
    {
      "id": "a0b23586-19de-4b4c-88b7-d45941f33b6f",
      "name": "Create Trello Card - Qualified",
      "type": "n8n-nodes-base.trello",
      "position": [
        2112,
        304
      ]
    },
    {
      "id": "aea14c3d-1d41-4c59-80b9-73e4a831981a",
      "name": "Notify Sales Team",
      "type": "n8n-nodes-base.mattermost",
      "position": [
        2304,
        304
      ]
    },
    {
      "id": "9b3ff07e-0f46-40ea-ae08-478ccb7f1678",
      "name": "Create Trello Card - Unqualified",
      "type": "n8n-nodes-base.trello",
      "position": [
        2112,
        704
      ]
    },
    {
      "id": "d4a3307e-cd56-466a-bbfc-15458bb61bc6",
      "name": "Fallback Score",
      "type": "n8n-nodes-base.code",
      "position": [
        1504,
        704
      ]
    },
    {
      "id": "a06a69fd-598c-467e-9292-4cdcf3c1e783",
      "name": "Create Trello Card - Needs Research",
      "type": "n8n-nodes-base.trello",
      "position": [
        1712,
        704
      ]
    },
    {
      "id": "384afa40-f53b-4cbb-9f97-06df43651fbf",
      "name": "Notify Ops",
      "type": "n8n-nodes-base.mattermost",
      "position": [
        1904,
        704
      ]
    }
  ],
  "connections": {
    "Parse Leads": {
      "main": [
        [
          {
            "node": "Split Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Leads": {
      "main": [
        [
          {
            "node": "Enrich with Clearbit",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge Lead & Enrichment",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "IF Qualified?": {
      "main": [
        [
          {
            "node": "Create Trello Card - Qualified",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Trello Card - Unqualified",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fallback Score": {
      "main": [
        [
          {
            "node": "Create Trello Card - Needs Research",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch New Leads": {
      "main": [
        [
          {
            "node": "Parse Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Lead Check": {
      "main": [
        [
          {
            "node": "Fetch New Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Lead Score": {
      "main": [
        [
          {
            "node": "IF Qualified?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich with Clearbit": {
      "main": [
        [
          {
            "node": "Check Clearbit Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Clearbit Response": {
      "main": [
        [
          {
            "node": "Merge Lead & Enrichment",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fallback Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Lead & Enrichment": {
      "main": [
        [
          {
            "node": "Calculate Lead Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Trello Card - Qualified": {
      "main": [
        [
          {
            "node": "Notify Sales Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Trello Card - Needs Research": {
      "main": [
        [
          {
            "node": "Notify Ops",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}