{
  "id": "aPAPHwoMqaN5r5rb",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Auto-fill Monday.com with leads from FullEnrich People Search",
  "tags": [],
  "nodes": [
    {
      "id": "55f79f7a-dc2d-44c9-b4dc-07a2e1931903",
      "name": "Monday.com Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1648,
        640
      ],
      "parameters": {
        "path": "00ffac35-076e-42cd-a794-16cee3805405",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2.1
    },
    {
      "id": "ddd16de3-96f4-4c4c-ad3b-abc1cb70dfbe",
      "name": "Challenge Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1904,
        640
      ],
      "parameters": {
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ]
          }
        },
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify({ challenge: $json.body.challenge }) }}"
      },
      "typeVersion": 1.5
    },
    {
      "id": "d12d84b5-ee3c-4c27-9bde-2cb621ccc279",
      "name": "FullEnrich People Search",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2160,
        640
      ],
      "parameters": {
        "url": "https://app.fullenrich.com/api/v2/people/search",
        "body": "={\n  \"offset\": 0,\n  \"limit\": {{ $json.body.event.columnValues.YOUR_NUMBER_COLUMN_ID.value }},\n  \"job_titles\": [\n    {\n      \"value\": \"{{ $json.body.event.columnValues.YOUR_JOB_TITLE_COLUMN_ID.value }}\",\n      \"exact_match\": false,\n      \"exclude\": false\n    }\n  ],\n  \"industries\": [\n    {\n      \"value\": \"{{ $json.body.event.columnValues.YOUR_INDUSTRY_COLUMN_ID.value }}\",\n      \"exact_match\": false,\n      \"exclude\": false\n    }\n  ],\n  \"locations\": [\n    {\n      \"value\": \"{{ $json.body.event.columnValues.YOUR_LOCATION_COLUMN_ID.value }}\",\n      \"exact_match\": false,\n      \"exclude\": false\n    }\n  ],\n  \"current_company_headcounts\": [\n    {\n      \"value\": \"{{ $json.body.event.columnValues.YOUR_COMPANY_SIZE_COLUMN_ID.value }}\",\n      \"exact_match\": true,\n      \"exclude\": false\n    }\n  ]\n}",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "raw",
        "sendHeaders": true,
        "authentication": "predefinedCredentialType",
        "rawContentType": "application/json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "nodeCredentialType": "fullEnrichApi"
      },
      "typeVersion": 4.4
    },
    {
      "id": "01d548d2-4bf0-48f9-aa33-77e919139dbc",
      "name": "Split Results",
      "type": "n8n-nodes-base.code",
      "position": [
        2400,
        640
      ],
      "parameters": {
        "jsCode": "return $input.first().json.people.map(person => ({ json: person }));"
      },
      "typeVersion": 2
    },
    {
      "id": "b69dfd84-8484-4a30-bbba-25edc0a91f83",
      "name": "Create Monday.com Items",
      "type": "n8n-nodes-base.mondayCom",
      "position": [
        2688,
        640
      ],
      "parameters": {
        "name": "={{ $json.full_name }}",
        "resource": "boardItem",
        "additionalFields": {
          "columnValues": "={\n  \"YOUR_FIRST_NAME_COL\": \"{{ $json.first_name }}\",\n  \"YOUR_LAST_NAME_COL\": \"{{ $json.last_name }}\",\n  \"YOUR_JOB_TITLE_COL\": \"{{ $json.employment.current.title }}\",\n  \"YOUR_COMPANY_NAME_COL\": \"{{ $json.employment.current.company.name }}\",\n  \"YOUR_COMPANY_DOMAIN_COL\": \"{{ $json.employment.current.company.domain }}\",\n  \"YOUR_LINKEDIN_COL\": \"{{ $json.social_profiles.linkedin.url }}\",\n  \"YOUR_LOCATION_COL\": \"{{ $json.location.city ?? '' }}, {{ $json.location.country ?? '' }}\"\n}"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5f9f8b5d-d026-46a5-a602-8cddc2deb85f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        288
      ],
      "parameters": {
        "color": 4,
        "width": 620,
        "height": 300,
        "content": "## \ud83d\ude80 Auto-fill Monday.com with FullEnrich People Search\n\nThis workflow searches for leads using FullEnrich's People Search API based on criteria from a Monday.com board, then creates items with the results on a second board.\n\n**Flow:** Monday.com webhook \u2192 challenge response \u2192 FullEnrich People Search \u2192 split results \u2192 create Monday.com items"
      },
      "typeVersion": 1
    },
    {
      "id": "d25a5b1e-e70b-48eb-9eba-b38d5bd5f018",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        624
      ],
      "parameters": {
        "color": 6,
        "width": 480,
        "height": 400,
        "content": "## \u2699\ufe0f Setup\n\n1. **Search Criteria board** \u2014 Create a Monday.com board with columns: Job Title, Industry, Location, Company Size, Number of Results\n2. **Results board** \u2014 Create a board with: First Name, Last Name, Job Title, Company, Domain, LinkedIn, Location\n3. **Monday.com automation** \u2014 On the search board: *When item created \u2192 send webhook* to this workflow's **production URL**\n4. **Column IDs** \u2014 Replace all `YOUR_*_COLUMN_ID` placeholders in the HTTP Request and Monday.com nodes with your actual column IDs\n5. Set the **board ID** and **group ID** in the \"Create Monday.com Items\" node\n6. Connect **FullEnrich** and **Monday.com** credentials\n7. Activate the workflow"
      },
      "typeVersion": 1
    },
    {
      "id": "85b676eb-bc2c-40d9-b582-cfdfc030a440",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        480
      ],
      "parameters": {
        "color": 3,
        "width": 220,
        "height": 136,
        "content": "## 1\ufe0f\u20e3 Webhook\nReceives a POST from Monday.com when a new item is created on your search criteria board."
      },
      "typeVersion": 1
    },
    {
      "id": "2918e47c-e2f4-4fa6-b087-c7a658d79247",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1840,
        464
      ],
      "parameters": {
        "color": 3,
        "width": 198,
        "height": 136,
        "content": "## 2\ufe0f\u20e3 Challenge\nResponds to Monday.com's webhook challenge handshake (required for verification)."
      },
      "typeVersion": 1
    },
    {
      "id": "511a485d-f2fd-4389-af9c-2a742de9cf2b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        480
      ],
      "parameters": {
        "color": 3,
        "width": 260,
        "height": 120,
        "content": "## 3\ufe0f\u20e3 People Search\nCalls FullEnrich API with job title, industry, location, and company size from your Monday.com columns."
      },
      "typeVersion": 1
    },
    {
      "id": "3dc1f1d5-8ce9-4f35-ae72-c53fc552586d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2368,
        480
      ],
      "parameters": {
        "color": 3,
        "width": 220,
        "height": 120,
        "content": "## 4\ufe0f\u20e3 Split\nSplits the array of people results into individual items for Monday.com."
      },
      "typeVersion": 1
    },
    {
      "id": "6e2df4f7-5738-4818-b767-2bb60f709dbe",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2608,
        480
      ],
      "parameters": {
        "color": 3,
        "width": 260,
        "height": 136,
        "content": "## 5\ufe0f\u20e3 Create Items\nCreates a new Monday.com item for each person found, with name, title, company, domain, LinkedIn, and location."
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "settings": {
    "binaryMode": "separate",
    "availableInMCP": false,
    "executionOrder": "v1"
  },
  "versionId": "e2bcf279-ea56-478c-8eed-40417006664d",
  "connections": {
    "Split Results": {
      "main": [
        [
          {
            "node": "Create Monday.com Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Challenge Response": {
      "main": [
        [
          {
            "node": "FullEnrich People Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monday.com Webhook": {
      "main": [
        [
          {
            "node": "Challenge Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FullEnrich People Search": {
      "main": [
        [
          {
            "node": "Split Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}