{
  "name": "Real-time lead enrichment in Slack with Extruct AI in-thread reply",
  "nodes": [
    {
      "id": "867c1363-367b-4d53-b3ed-7412ae958851",
      "name": "New Message Catcher",
      "type": "n8n-nodes-base.slackTrigger",
      "position": [
        -260,
        80
      ]
    },
    {
      "id": "36520fc6-6b17-4b6b-a3cb-71e08285ca7c",
      "name": "Send Company Details",
      "type": "n8n-nodes-base.slack",
      "position": [
        2000,
        80
      ]
    },
    {
      "id": "01e11aa6-7afc-4234-a32e-284bff6f2f59",
      "name": "Extract Company Name Input",
      "type": "n8n-nodes-base.code",
      "position": [
        180,
        80
      ]
    },
    {
      "id": "559066c3-be7f-4311-be3a-a77e17ab4b53",
      "name": "Company Name Exists?",
      "type": "n8n-nodes-base.if",
      "position": [
        400,
        75
      ]
    },
    {
      "id": "614729f3-3bda-4ca9-b117-a6c73c0aefa5",
      "name": "Start Company Enrichment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        620,
        75
      ]
    },
    {
      "id": "4a7f16f7-8ee5-4fa4-8694-cf1169de224a",
      "name": "Hold for API Processing",
      "type": "n8n-nodes-base.wait",
      "position": [
        840,
        75
      ]
    },
    {
      "id": "e7fb5432-fcb9-42b3-b100-21e4cb217fbc",
      "name": "Check Enrichment Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1060,
        0
      ]
    },
    {
      "id": "5d2efdd1-870b-49c0-a152-2f28e3b7f56b",
      "name": "Is Company Info Ready?",
      "type": "n8n-nodes-base.if",
      "position": [
        1280,
        75
      ]
    },
    {
      "id": "b54128ff-f67e-45d3-8fcf-4dba739c2839",
      "name": "Get Company Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1500,
        75
      ]
    },
    {
      "id": "802f9558-1232-4785-9751-6807bf601256",
      "name": "Format Slack Company Card",
      "type": "n8n-nodes-base.code",
      "position": [
        1720,
        75
      ]
    },
    {
      "id": "39512e99-4ddf-461d-8d78-f0c69c0f667f",
      "name": "Set Extruct Table ID",
      "type": "n8n-nodes-base.set",
      "position": [
        -40,
        75
      ]
    },
    {
      "id": "787593a2-7e1e-4a8e-8e47-e35682c6976b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1220,
        -100
      ],
      "parameters": {
        "width": 880,
        "height": 1400,
        "content": "# Quickstart: Slack Lead Enricher in n8n \n\nAutomatic lead enrichment in Slack: monitors your Slack channel for new lead emails posted there, extracts each company’s name or domain, sends it to the Ext"
      }
    },
    {
      "id": "dbeafe18-c0bf-4386-baf6-e532534f45bb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -100
      ],
      "parameters": {
        "width": 420,
        "height": 360,
        "content": "## Trigger & Initialization:\nMonitors Slack for new messages and assigns the Extruct table ID for enrichment."
      }
    },
    {
      "id": "713d96c7-a697-46a0-bd21-66d0c6124461",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -100
      ],
      "parameters": {
        "width": 440,
        "height": 360,
        "content": "## Lead Extraction:\nParses each message for a company domain or name and filters out invalid entries."
      }
    },
    {
      "id": "03b330c8-2b53-4db9-9475-f6f6bef8c891",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        -100
      ],
      "parameters": {
        "width": 860,
        "height": 360,
        "content": "## Enrichment Request Flow:\nSends the domain to Extruct API and polls until the enrichment run completes."
      }
    },
    {
      "id": "cbe81611-57c5-4499-b2eb-07edab80129d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1460,
        -100
      ],
      "parameters": {
        "width": 420,
        "height": 360,
        "content": "## Data Retrieval & Formatting:\nRetrieves the enriched company details and builds a structured Slack card."
      }
    },
    {
      "id": "37f297eb-c779-4d3f-9fd2-604c1164242c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1900,
        -100
      ],
      "parameters": {
        "width": 300,
        "height": 360,
        "content": "## Slack Publishing:\nPosts the formatted company profile (name, website, LinkedIn, headcount, industry, recent news, key contacts) back into the original Slack thread."
      }
    }
  ],
  "connections": {
    "Get Company Data": {
      "main": [
        [
          {
            "node": "Format Slack Company Card",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Message Catcher": {
      "main": [
        [
          {
            "node": "Set Extruct Table ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Name Exists?": {
      "main": [
        [
          {
            "node": "Start Company Enrichment",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Set Extruct Table ID": {
      "main": [
        [
          {
            "node": "Extract Company Name Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Company Info Ready?": {
      "main": [
        [
          {
            "node": "Hold for API Processing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Company Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Enrichment Status": {
      "main": [
        [
          {
            "node": "Is Company Info Ready?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hold for API Processing": {
      "main": [
        [
          {
            "node": "Check Enrichment Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Company Enrichment": {
      "main": [
        [
          {
            "node": "Hold for API Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Slack Company Card": {
      "main": [
        [
          {
            "node": "Send Company Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Company Name Input": {
      "main": [
        [
          {
            "node": "Company Name Exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}