{
  "name": "Rediscover past candidates for a new role and shortlist them in Slack",
  "nodes": [
    {
      "name": "About this template",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "parameters": {
        "content": "## Rediscover past candidates for a new role\n\nBefore you source from scratch, check who you already know. Submit the form with the new role, and SourceGeek searches your workspace history and connected ATS for candidates who fit, saves them as a sheet and writes a shortlist with why each one matches and what they did before. The link is posted to Slack.\n\nCredits: none for the rediscovery search.\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=rediscover-past-candidates).\n\nMore SourceGeek templates: https://www.sourcegeek.com/en/templates#rediscover-past-candidates",
        "height": 460,
        "width": 440,
        "color": 5
      },
      "id": "55a780ce-4e2f-4799-a6d9-5eb8eb02294c",
      "position": [
        0,
        120
      ]
    },
    {
      "name": "New role",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "parameters": {
        "formTitle": "Rediscover candidates",
        "formDescription": "Describe the role you are hiring for.",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Role",
              "fieldType": "textarea",
              "placeholder": "Senior data engineer, Rotterdam, dbt and Snowflake, 5+ years",
              "requiredField": true
            }
          ]
        },
        "options": {}
      },
      "webhookId": "af118199-62a6-405a-a8f3-7e5ea6387671",
      "id": "a7228ea2-91a7-43ed-add6-227a1025a7ff",
      "position": [
        520,
        300
      ]
    },
    {
      "name": "Search past candidates",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "typeVersion": 2,
      "parameters": {
        "resource": "search",
        "operation": "search_rediscovered_talent",
        "roleDescription": "={{ $json.Role }}"
      },
      "id": "38983691-04a3-462d-a208-9d2b275009ee",
      "position": [
        760,
        300
      ]
    },
    {
      "name": "Save as a sheet",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "typeVersion": 2,
      "parameters": {
        "resource": "sheet",
        "operation": "create_sheet",
        "title": "={{ $json.suggestedTitle }}",
        "csv": "={{ $json.csv }}"
      },
      "id": "767ebe60-c4b3-470f-a1c2-1e38c7d43a56",
      "position": [
        1000,
        300
      ]
    },
    {
      "name": "Shortlist them",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "typeVersion": 2,
      "parameters": {
        "resource": "sheet",
        "operation": "create_rediscovery_shortlist",
        "artifactId": "={{ $json.artifactId }}",
        "additionalFields": {
          "limit": 10
        }
      },
      "id": "7d0a283c-36a1-4a80-a933-8545c27bcdd5",
      "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": "=*Past candidates for a new role*\n{{ $('New role').item.json.Role }}\n\n{{ $('Search past candidates').item.json.count }} found, {{ $json.selectedCount }} shortlisted: {{ $json.url }}",
        "otherOptions": {}
      },
      "id": "c119605b-e643-434d-a221-2a9be7c2ea8a",
      "position": [
        1480,
        300
      ]
    }
  ],
  "pinData": {},
  "connections": {
    "New role": {
      "main": [
        [
          {
            "node": "Search past candidates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search past candidates": {
      "main": [
        [
          {
            "node": "Save as a sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save as a sheet": {
      "main": [
        [
          {
            "node": "Shortlist them",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shortlist them": {
      "main": [
        [
          {
            "node": "Post to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}
