{
  "name": "Keep a talent pool sheet growing with new matching candidates every month",
  "nodes": [
    {
      "name": "About this template",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "parameters": {
        "content": "## Refresh a talent pool every month\n\nKeep one SourceGeek sheet as the talent pool for a role you hire for again and again. On the first of each month this workflow searches for matching candidates and adds only the people the sheet doesn't have yet, then tells Slack how many were new.\n\nIn the **Pool** node, set the search and the id of the pool sheet (open the sheet in SourceGeek, the id is in its link).\n\nCredits: one fast search a month and a profile lookup per new candidate.\n\n### Set up\n1. Install the community node **n8n-nodes-sourcegeek** (Settings → Community nodes).\n2. In SourceGeek, create an API key under Settings → Connected apps → API keys, and add it as a **SourceGeek API** credential. No account yet? [Start a free 14-day trial](https://chat.sourcegeek.com/sign-up?utm_source=n8n&utm_medium=template&utm_campaign=n8n_templates&utm_content=monthly-talent-pool-refresh).\n\nMore SourceGeek templates: https://www.sourcegeek.com/en/templates#monthly-talent-pool-refresh",
        "height": 480,
        "width": 440,
        "color": 5
      },
      "id": "97e5b59e-2a11-40f5-a8df-799017e53945",
      "position": [
        0,
        120
      ]
    },
    {
      "name": "First of the month",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "months",
              "triggerAtDayOfMonth": 1,
              "triggerAtHour": 8
            }
          ]
        }
      },
      "id": "d8572824-728c-41af-a886-2386d81b393b",
      "position": [
        520,
        300
      ]
    },
    {
      "name": "Pool",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "3dde99f6-f290-4abc-ad6c-ed04573791ff",
              "name": "poolSheetId",
              "value": "paste-your-sheet-id",
              "type": "string"
            },
            {
              "id": "441ab4c0-0f33-489c-a9e8-f08a26583557",
              "name": "searchQuery",
              "value": "Registered nurses with ICU experience in the Randstad",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "757afb67-1c2b-4ab2-a953-15141a924635",
      "position": [
        760,
        300
      ]
    },
    {
      "name": "Search candidates",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "typeVersion": 2,
      "parameters": {
        "resource": "search",
        "operation": "fast_search_leads",
        "query": "={{ $json.searchQuery }}",
        "additionalFields": {
          "limit": 20
        }
      },
      "id": "e4b10e88-d823-4723-abc8-6a653ee0573c",
      "position": [
        1000,
        300
      ]
    },
    {
      "name": "Add to the pool",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "typeVersion": 2,
      "parameters": {
        "resource": "sheet",
        "operation": "create_sheet",
        "title": "Talent pool",
        "csv": "={{ $json.csv }}",
        "additionalFields": {
          "artifactId": "={{ $('Pool').item.json.poolSheetId }}",
          "searchId": "={{ $json.searchId }}"
        }
      },
      "id": "18c223f0-7649-4466-a1b6-52141060521e",
      "position": [
        1240,
        300
      ]
    },
    {
      "name": "Post to Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "value": "#recruiting",
          "mode": "name"
        },
        "text": "=*{{ $json.title }}*: {{ $json.addedCount }} new candidates this month ({{ $json.duplicateCount }} already in the pool)\n{{ $json.url }}",
        "otherOptions": {}
      },
      "id": "0252c940-a52c-43a1-aabf-344652385509",
      "position": [
        1480,
        300
      ]
    }
  ],
  "pinData": {},
  "connections": {
    "First of the month": {
      "main": [
        [
          {
            "node": "Pool",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pool": {
      "main": [
        [
          {
            "node": "Search candidates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search candidates": {
      "main": [
        [
          {
            "node": "Add to the pool",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add to the pool": {
      "main": [
        [
          {
            "node": "Post to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}
