{
  "name": "Qualify and enrich inbound leads with contextual insights and Slack alerts",
  "tags": [],
  "nodes": [
    {
      "id": "sticky-note-main",
      "name": "Sticky Note - Main Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        350,
        -640
      ],
      "parameters": {
        "color": 1,
        "width": 450,
        "height": 460,
        "content": "\ud83c\udfaf LEAD QUALIFICATION & ENRICHMENT\n\nFOR: Sales teams, AEs, RevOps who need deep\ncontextual insights beyond basic scoring.\n\nSOLVES: Most qualification stops at \"good/bad fit\"\nleaving sales flying blind. You know they're qualified\nbut not their pain points, value props, or references.\n\nWORKS:\n1. Webhook gets lead data\n2. Octave qualifies against ICP\n3. Filter removes low scores\n4. Octave enriches with insights\n5. Slack alerts with context\n\nSETUP: Octave qualification + enrichment agents,\nSlack OAuth, webhook config\n\nCUSTOMIZE: Configure qualification at Product/\nPersona/Segment levels. Set enrichment fields\n(responsibilities, pain points, value props,\nreferences). Customize Slack alert format."
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-note-webhook",
      "name": "Sticky Note - Webhook Setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        -150
      ],
      "parameters": {
        "color": 2,
        "width": 190,
        "height": 100,
        "content": "\ud83d\ude80 START HERE\nReplace webhook path.\nConfigure lead source."
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-note-qualify",
      "name": "Sticky Note - Qualification",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -150
      ],
      "parameters": {
        "color": 4,
        "width": 190,
        "height": 100,
        "content": "\ud83c\udfaf QUALIFICATION\nOctave scores vs ICP.\nReplace agent ID."
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-note-filter",
      "name": "Sticky Note - Filter",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        -150
      ],
      "parameters": {
        "color": 5,
        "width": 190,
        "height": 100,
        "content": "\ud83d\udd0d FILTER\nRemoves low scores.\nAdjust threshold (>5)."
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-note-enrich",
      "name": "Sticky Note - Enrichment",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -150
      ],
      "parameters": {
        "color": 3,
        "width": 190,
        "height": 100,
        "content": "\ud83d\udd2c ENRICHMENT\nExtensive insights available.\nExplore output & customize."
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-note-slack",
      "name": "Sticky Note - Slack Alerts",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        -150
      ],
      "parameters": {
        "color": 6,
        "width": 190,
        "height": 100,
        "content": "\ud83d\udce2 ENRICHED ALERTS\nContextual lead insights.\nUpdate channel & format."
      },
      "typeVersion": 1
    },
    {
      "id": "726e4640-90a0-456a-8cd2-144c04db83dc",
      "name": "Inbound Lead Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        120,
        0
      ],
      "parameters": {
        "path": "your-webhook-path-here",
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "1f2e9101-e77e-4c28-ada6-fff180378dc9",
      "name": "Qualify Lead with Octave",
      "type": "n8n-nodes-octavehq.octave",
      "position": [
        320,
        0
      ],
      "parameters": {
        "agentOId": "your-octave-qualification-agent-id",
        "jobTitle": "={{ $json.body.jobTitle }}",
        "firstName": "={{ $json.body.firstName }}",
        "operation": "qualifyPerson",
        "companyName": "={{ $json.body.companyName }}",
        "companyDomain": "={{ $json.body.companyDomain }}",
        "linkedInProfile": "={{ $json.body.profileURL }}"
      },
      "credentials": {
        "octaveApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "bea7a6cc-66a5-4bd7-a5e2-1bc8ce3300e4",
      "name": "Filter Qualified Leads",
      "type": "n8n-nodes-base.filter",
      "position": [
        520,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "91ab2ad1-75cd-411f-ad07-6f2175f102bd",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{ $json.score }}",
              "rightValue": 5
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "93db30ee-393c-4244-b833-dc943f523abf",
      "name": "Enrich Lead with Context",
      "type": "n8n-nodes-octavehq.octave",
      "position": [
        720,
        0
      ],
      "parameters": {
        "agentOId": "your-octave-enrichment-agent-id",
        "jobTitle": "={{ $('Inbound Lead Webhook').item.json.body.jobTitle }}",
        "firstName": "={{ $('Inbound Lead Webhook').item.json.body.firstName }}",
        "operation": "enrichPerson",
        "companyName": "={{ $('Inbound Lead Webhook').item.json.body.companyName }}",
        "companyDomain": "={{ $('Inbound Lead Webhook').item.json.body.companyDomain }}",
        "linkedInProfile": "={{ $('Inbound Lead Webhook').item.json.body.profileURL }}"
      },
      "credentials": {
        "octaveApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "972d33c7-aeb1-4106-a083-7548f139a0bb",
      "name": "Send Enriched Lead Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        920,
        0
      ],
      "parameters": {
        "text": "=\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n\n\ud83d\udd25 *Enriched Lead Alert*\n\n\ud83d\udc64 *Name:* {{ $('Inbound Lead Webhook').item.json.body.firstName }} {{ $('Inbound Lead Webhook').item.json.body.lastName }}\n\ud83d\udcbc *Title:* {{ $('Inbound Lead Webhook').item.json.body.jobTitle }}\n\ud83c\udfe2 *Company:* {{ $('Inbound Lead Webhook').item.json.body.companyName }}\n\ud83c\udf10 *Domain:* {{ $('Inbound Lead Webhook').item.json.body.companyDomain }}\n\ud83d\udd17 *LinkedIn:* {{ $('Inbound Lead Webhook').item.json.body.profileURL }}\n\n\ud83c\udfaf *Key Responsibility:* {{ $json.persona.data.primaryResponsibilities[0] }}\n\u26a1 *Main Pain Point:* {{ $json.persona.data.painPoints[0] }}\n\ud83d\udca1 *Relevant Value Prop:* {{ $json.valueProps[0].details }}\n\ud83c\udfc6 *Reference to Mention:* {{ $json.references[0].howTheyBenefitFromProduct }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "your-slack-channel-id",
          "cachedResultName": "enriched-leads"
        },
        "otherOptions": {},
        "authentication": "oAuth2"
      },
      "credentials": {
        "slackOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.3
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "Inbound Lead Webhook": {
      "main": [
        [
          {
            "node": "Qualify Lead with Octave",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Qualified Leads": {
      "main": [
        [
          {
            "node": "Enrich Lead with Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich Lead with Context": {
      "main": [
        [
          {
            "node": "Send Enriched Lead Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Qualify Lead with Octave": {
      "main": [
        [
          {
            "node": "Filter Qualified Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}