{
  "name": "Build a prospecting list with LeadIQ and save it to Airtable CRM",
  "nodes": [
    {
      "id": "37b124c9-8716-4eaa-aed1-dec4863a1e98",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        816,
        -400
      ]
    },
    {
      "id": "5d629316-407b-45eb-9932-e1d66adb555f",
      "name": "Airtable: Create Account",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -112,
        272
      ]
    },
    {
      "id": "08862fe8-dccf-46fa-9475-4a8fc675d88f",
      "name": "Web Enrichment Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        368,
        -176
      ]
    },
    {
      "id": "46738e70-6d9c-4035-9598-a3745bfa7f32",
      "name": "Add Contact",
      "type": "n8n-nodes-base.airtable",
      "position": [
        560,
        272
      ]
    },
    {
      "id": "4594921c-be00-41d0-a886-d416c51d7bc1",
      "name": "Return an Array for Account",
      "type": "n8n-nodes-base.code",
      "position": [
        352,
        272
      ]
    },
    {
      "id": "6f709c44-c565-4be8-b934-0083d1d56070",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -256
      ],
      "parameters": {
        "width": 224,
        "height": 224,
        "content": "## Manage Number of Leads \nSet the number of LeadIQ credits you want to spend per single run:\n**Change the code line**:  <input.limit = 1>\n(enter your number instead)"
      }
    },
    {
      "id": "466dceb4-d403-48f7-8bf2-9d8b265f3002",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -208,
        -608
      ]
    },
    {
      "id": "67a6bda4-23da-4d0a-8e69-0401c97e13cc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -800
      ],
      "parameters": {
        "width": 1552,
        "height": 1296,
        "content": "## Step #1: Lead Research & List Building\n**Use this workflow** to build a list of leads with **LeadIQ**\nand save them to **Airtable**. Brown notes explain specific nodes and nuances."
      }
    },
    {
      "id": "23eea7e7-1456-43ec-b89d-f3596c146d14",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        -800
      ],
      "parameters": {
        "width": 608,
        "height": 1296,
        "content": "## Step #2: Enrichment: Additionally Search for Email\n**Use this workflow** to enrich leads with web search and **LeadIQ email** (if available)."
      }
    },
    {
      "id": "f68a46eb-cc3d-4014-b503-be6d3d4f1511",
      "name": "Open Mistral 7B",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        912,
        -256
      ]
    },
    {
      "id": "2a521434-6cc1-41bd-8625-39632dbbf30c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        -736
      ],
      "parameters": {
        "width": 304,
        "height": 128,
        "content": "## Search Filters Summary\nThis agent combines filters from the contact and company data agents to build a GraphQL query.\n\n"
      }
    },
    {
      "id": "6f0f60ea-3abd-4c0a-9bac-66d33bb0768f",
      "name": "Company-level data preparation",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        336,
        -608
      ]
    },
    {
      "id": "96bd25b9-7830-4252-af7c-e2d2412775c6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        -272
      ],
      "parameters": {
        "width": 224,
        "height": 128,
        "content": "## Web Search\nThis agent finds missing company data on the internet.\n\n"
      }
    },
    {
      "id": "13904fd2-fe5b-423e-abdd-ec31a6a87223",
      "name": "Tavily Tool",
      "type": "@tavily/n8n-nodes-tavily.tavilyTool",
      "position": [
        496,
        48
      ]
    },
    {
      "id": "4c777abb-58ee-4190-832d-763e89047550",
      "name": "Mistral Medium Latest",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        368,
        48
      ]
    },
    {
      "id": "21023249-3ef8-4d1c-a84a-01a760202fdb",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        -800
      ],
      "parameters": {
        "width": 528,
        "height": 1296,
        "content": "\n🎥 [Video Trailer – How It Works](https://vimeo.com/1151100805)\n\n\n## How it Works\n\n1. Start from \"On Chat Message\" Trigger Node. Use a simple prompt to get leads, example: «Founder at software enginee"
      }
    },
    {
      "id": "cbcf7b3d-336c-4b04-93a6-846e550cfacb",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -288,
        160
      ],
      "parameters": {
        "width": 384,
        "height": 128,
        "content": "## Airtable Note\nAccount should be an array, even if it's a single record. To add a contact you have to obtaine ID of it's account in array format\n"
      }
    },
    {
      "id": "f24f65cf-c484-4867-986e-b634f1dbcc7e",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        -704
      ],
      "parameters": {
        "width": 288,
        "height": 144,
        "content": "## Start Here\nStart the workflow by entering a prompt into the chat - describe which leads you want to find.\n\n"
      }
    },
    {
      "id": "2ad66748-8aff-4c7d-8117-4065bc314004",
      "name": "LeadIQ Database (Find People)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        112,
        -176
      ]
    },
    {
      "id": "bd7e8455-d95f-4161-9475-bec9cab676a4",
      "name": "LeadIQ Database (Find Email)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        -336
      ]
    },
    {
      "id": "8b981a46-72d2-4770-b07d-508d3d8465cc",
      "name": "Mistral Small Latest #1",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        16,
        -432
      ]
    },
    {
      "id": "0bf32cf1-318a-40e1-9f51-a1be17cc69d4",
      "name": "Mistral Small Latest #2",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        320,
        -432
      ]
    },
    {
      "id": "0ed451ad-fb71-4ce4-8ba3-f7de0b91ca77",
      "name": "Mistral Small Latest #3",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        688,
        -400
      ]
    },
    {
      "id": "35c558f2-978b-4f15-b64d-7798b4bf6a44",
      "name": "GraphQL Query #2",
      "type": "n8n-nodes-base.code",
      "position": [
        1504,
        -624
      ]
    },
    {
      "id": "0d356efb-38b4-480d-910c-3a5d6e8f416a",
      "name": "GraphQL Query #1",
      "type": "n8n-nodes-base.code",
      "position": [
        -112,
        -176
      ]
    },
    {
      "id": "eddaefec-8d54-4161-854b-05dbd6b2e759",
      "name": "Output Divider (Three Parts)",
      "type": "n8n-nodes-base.code",
      "position": [
        688,
        -176
      ]
    },
    {
      "id": "f05fe412-b055-4f8c-adec-0e89111546af",
      "name": "Contact-Level Search Criteria",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        16,
        -608
      ]
    },
    {
      "id": "38c445e5-e18b-4e84-83fa-0f65dea226b8",
      "name": "Filters Summary Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        672,
        -608
      ]
    },
    {
      "id": "845a8bf3-c1f3-42e4-9da0-bbf55a477ea0",
      "name": "Search and Filter Records by Campaign ",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1280,
        -624
      ]
    },
    {
      "id": "c5049218-0d4d-412b-93c9-49dcae473269",
      "name": "Update Record",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1504,
        -336
      ]
    },
    {
      "id": "19e887c1-58b0-41a4-bfb4-e5494cb970ce",
      "name": "Get Record",
      "type": "n8n-nodes-base.airtable",
      "position": [
        112,
        272
      ]
    }
  ],
  "connections": {
    "Get Record": {
      "main": [
        [
          {
            "node": "Return an Array for Account",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tavily Tool": {
      "ai_tool": [
        [
          {
            "node": "Web Enrichment Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Open Mistral 7B": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "GraphQL Query #1": {
      "main": [
        [
          {
            "node": "LeadIQ Database (Find People)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GraphQL Query #2": {
      "main": [
        [
          {
            "node": "LeadIQ Database (Find Email)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Web Enrichment Agent": {
      "main": [
        [
          {
            "node": "Output Divider (Three Parts)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filters Summary Agent": {
      "main": [
        [
          {
            "node": "GraphQL Query #1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Medium Latest": {
      "ai_languageModel": [
        [
          {
            "node": "Web Enrichment Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Small Latest #1": {
      "ai_languageModel": [
        [
          {
            "node": "Contact-Level Search Criteria",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Small Latest #2": {
      "ai_languageModel": [
        [
          {
            "node": "Company-level data preparation",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Small Latest #3": {
      "ai_languageModel": [
        [
          {
            "node": "Filters Summary Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Airtable: Create Account": {
      "main": [
        [
          {
            "node": "Get Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Filters Summary Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Contact-Level Search Criteria",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Return an Array for Account": {
      "main": [
        [
          {
            "node": "Add Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LeadIQ Database (Find Email)": {
      "main": [
        [
          {
            "node": "Update Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Output Divider (Three Parts)": {
      "main": [
        [
          {
            "node": "Airtable: Create Account",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Contact-Level Search Criteria": {
      "main": [
        [
          {
            "node": "Company-level data preparation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LeadIQ Database (Find People)": {
      "main": [
        [
          {
            "node": "Web Enrichment Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company-level data preparation": {
      "main": [
        [
          {
            "node": "Filters Summary Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search and Filter Records by Campaign ": {
      "main": [
        [
          {
            "node": "GraphQL Query #2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}