{
  "id": "tGpclkTJpimH61nsYvin0",
  "name": "wf3",
  "tags": [],
  "nodes": [
    {
      "id": "2e77434f-cf6e-4bd0-9b35-29488e1e8a70",
      "name": "Cron \u2014 Daily 9AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -3072,
        -224
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 9 * * *"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "806bd976-2591-4667-be14-327424719947",
      "name": "R1 \u2014 IF Has Phone",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        -256
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "7ca7afa1-0bf4-4851-aab7-45ac2d2e1ba8",
              "operator": {
                "type": "string",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.phoneE164 }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "9c3ebf4b-0b5e-47b1-a70a-4ab8f7506fc0",
      "name": "R1 \u2014 Airtable Mark Reminder 1 Sent",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -1728,
        -352
      ],
      "parameters": {
        "base": {
          "__rl": true,
          "mode": "id",
          "value": "appmHaHEnNwsKqWmK"
        },
        "table": {
          "__rl": true,
          "mode": "id",
          "value": "tblFQ18WoHvTNiKCN"
        },
        "columns": {
          "value": {
            "id": "={{ $('Airtable \u2014 List Eligible Leads1').item.json.id }}",
            "Reminder 1 Sent": true
          },
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": true,
              "required": false,
              "displayName": "id",
              "defaultMatch": true
            },
            {
              "id": "First  Name",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "First  Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last Name",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Last Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "For funding purposes, please confirm your age. (You must be 19 or over as of 31st August 2025)",
              "type": "number",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "For funding purposes, please confirm your age. (You must be 19 or over as of 31st August 2025)",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "DWP Work Coach or Employer Advisor Name",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "DWP Work Coach or Employer Advisor Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Job Center",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "DE - Alfreton",
                  "value": "DE - Alfreton"
                },
                {
                  "name": "DE - Matlock",
                  "value": "DE - Matlock"
                },
                {
                  "name": "DE - Chesterfield",
                  "value": "DE - Chesterfield"
                },
                {
                  "name": "DE - Belper",
                  "value": "DE - Belper"
                },
                {
                  "name": "DE - Heanor",
                  "value": "DE - Heanor"
                },
                {
                  "name": "DE - Ilkeston",
                  "value": "DE - Ilkeston"
                },
                {
                  "name": "DE - Derby",
                  "value": "DE - Derby"
                },
                {
                  "name": "NG - Mansfield",
                  "value": "NG - Mansfield"
                },
                {
                  "name": "NG - Ashfield",
                  "value": "NG - Ashfield"
                },
                {
                  "name": "NG - Shirebrook",
                  "value": "NG - Shirebrook"
                },
                {
                  "name": "NG - Nottingham",
                  "value": "NG - Nottingham"
                },
                {
                  "name": "NG - Beeston",
                  "value": "NG - Beeston"
                },
                {
                  "name": "NG - Long Eaton",
                  "value": "NG - Long Eaton"
                },
                {
                  "name": "NG - Arnold",
                  "value": "NG - Arnold"
                },
                {
                  "name": "NG - Bulwell",
                  "value": "NG - Bulwell"
                },
                {
                  "name": "Other...",
                  "value": "Other..."
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Job Center",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Email",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Phone Number",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Phone Number",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Nationality",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Nationality",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Are you in receipt of either Universal Credit, JSA or ESA?",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Yes",
                  "value": "Yes"
                },
                {
                  "name": "No",
                  "value": "No"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Are you in receipt of either Universal Credit, JSA or ESA?",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "I have lived in England",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Most/All of my life",
                  "value": "Most/All of my life"
                },
                {
                  "name": "Under 3 Years",
                  "value": "Under 3 Years"
                },
                {
                  "name": "More than 3 Years / Less than 5 years",
                  "value": "More than 3 Years / Less than 5 years"
                },
                {
                  "name": "More than 5 years",
                  "value": "More than 5 years"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "I have lived in England",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Send Outreach Now",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Send Outreach Now",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Reffering Person's Email",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Reffering Person's Email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Conviction",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Yes ",
                  "value": "Yes "
                },
                {
                  "name": "No",
                  "value": "No"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Conviction",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Course List Pipeline",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Course List Pipeline",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Status",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Leads",
                  "value": "Leads"
                },
                {
                  "name": "Applied",
                  "value": "Applied"
                },
                {
                  "name": "Confirmed",
                  "value": "Confirmed"
                },
                {
                  "name": "Closed",
                  "value": "Closed"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Info Event Outcome",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Attended",
                  "value": "Attended"
                },
                {
                  "name": "Did Not Attend",
                  "value": "Did Not Attend"
                },
                {
                  "name": "Rescheduled",
                  "value": "Rescheduled"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Info Event Outcome",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Course Outcome",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Started",
                  "value": "Started"
                },
                {
                  "name": "Did Not Start/Withdrawn",
                  "value": "Did Not Start/Withdrawn"
                },
                {
                  "name": "Completed",
                  "value": "Completed"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Course Outcome",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Decision",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Approved",
                  "value": "Approved"
                },
                {
                  "name": "Rejected",
                  "value": "Rejected"
                },
                {
                  "name": "Pending",
                  "value": "Pending"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Decision",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Application Sent",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Application Sent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Reminder 1 Sent",
              "type": "boolean",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "Reminder 1 Sent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Reminder 2 Sent",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Reminder 2 Sent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Urgent Call Required",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Urgent Call Required",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Referrer Notified \u2013 Info Event",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Referrer Notified \u2013 Info Event",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Referrer Notified \u2013 Course Start",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Referrer Notified \u2013 Course Start",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Application Sent Date",
              "type": "dateTime",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Application Sent Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Info Event Date",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "Info Event Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Course Start Date",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "Course Start Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last modified time",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "Last modified time",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Do you have any unspent criminal convictions and/or limitations that restrict you from being in the presence of under 18's",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Yes ",
                  "value": "Yes "
                },
                {
                  "name": "No",
                  "value": "No"
                },
                {
                  "name": "Prefer Not To Say (You won't be able to do the course)",
                  "value": "Prefer Not To Say (You won't be able to do the course)"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Do you have any unspent criminal convictions and/or limitations that restrict you from being in the presence of under 18's",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Morestarts will not share this data with any third party organisation other than Qualitrain Ltd, who delivers the course. By clicking Submit, you acknowledge and accept the above terms and wish to proceed with submitting the application.",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Morestarts will not share this data with any third party organisation other than Qualitrain Ltd, who delivers the course. By clicking Submit, you acknowledge and accept the above terms and wish to proceed with submitting the application.",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Outreach Sent",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Outreach Sent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Outreach Sent At",
              "type": "dateTime",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Outreach Sent At",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Outreach Triggered At",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "Outreach Triggered At",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "update"
      },
      "credentials": {
        "airtableTokenApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "9cf62c34-0eb4-457a-86eb-2c51ce514e80",
      "name": "R2 \u2014 IF Has Email",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        -832
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "773219ad-f085-4654-8567-018c143a3f63",
              "operator": {
                "type": "string",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.email }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "db9407df-2213-4a93-ae6c-9f202dfa64e2",
      "name": "R2 \u2014 IF Has Phone",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        -640
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "823a8049-a51e-4bc4-864b-9ffde5dcb42a",
              "operator": {
                "type": "string",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.phoneE164 }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "6f4ce343-58e6-4b9d-929b-4b61fd2627a4",
      "name": "R2 \u2014 Airtable Mark Reminder 2 + Urgent Call",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -1728,
        -736
      ],
      "parameters": {
        "base": {
          "__rl": true,
          "mode": "id",
          "value": "appmHaHEnNwsKqWmK"
        },
        "table": {
          "__rl": true,
          "mode": "id",
          "value": "tblFQ18WoHvTNiKCN"
        },
        "columns": {
          "value": {
            "id": "={{ $('Airtable \u2014 List Eligible Leads1').item.json.id }}",
            "Reminder 2 Sent": true,
            "Urgent Call Required": true
          },
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": true,
              "required": false,
              "displayName": "id",
              "defaultMatch": true
            },
            {
              "id": "First  Name",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "First  Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last Name",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Last Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "For funding purposes, please confirm your age. (You must be 19 or over as of 31st August 2025)",
              "type": "number",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "For funding purposes, please confirm your age. (You must be 19 or over as of 31st August 2025)",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "DWP Work Coach or Employer Advisor Name",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "DWP Work Coach or Employer Advisor Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Job Center",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "DE - Alfreton",
                  "value": "DE - Alfreton"
                },
                {
                  "name": "DE - Matlock",
                  "value": "DE - Matlock"
                },
                {
                  "name": "DE - Chesterfield",
                  "value": "DE - Chesterfield"
                },
                {
                  "name": "DE - Belper",
                  "value": "DE - Belper"
                },
                {
                  "name": "DE - Heanor",
                  "value": "DE - Heanor"
                },
                {
                  "name": "DE - Ilkeston",
                  "value": "DE - Ilkeston"
                },
                {
                  "name": "DE - Derby",
                  "value": "DE - Derby"
                },
                {
                  "name": "NG - Mansfield",
                  "value": "NG - Mansfield"
                },
                {
                  "name": "NG - Ashfield",
                  "value": "NG - Ashfield"
                },
                {
                  "name": "NG - Shirebrook",
                  "value": "NG - Shirebrook"
                },
                {
                  "name": "NG - Nottingham",
                  "value": "NG - Nottingham"
                },
                {
                  "name": "NG - Beeston",
                  "value": "NG - Beeston"
                },
                {
                  "name": "NG - Long Eaton",
                  "value": "NG - Long Eaton"
                },
                {
                  "name": "NG - Arnold",
                  "value": "NG - Arnold"
                },
                {
                  "name": "NG - Bulwell",
                  "value": "NG - Bulwell"
                },
                {
                  "name": "Other...",
                  "value": "Other..."
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Job Center",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Email",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Phone Number",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Phone Number",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Nationality",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Nationality",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Are you in receipt of either Universal Credit, JSA or ESA?",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Yes",
                  "value": "Yes"
                },
                {
                  "name": "No",
                  "value": "No"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Are you in receipt of either Universal Credit, JSA or ESA?",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "I have lived in England",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Most/All of my life",
                  "value": "Most/All of my life"
                },
                {
                  "name": "Under 3 Years",
                  "value": "Under 3 Years"
                },
                {
                  "name": "More than 3 Years / Less than 5 years",
                  "value": "More than 3 Years / Less than 5 years"
                },
                {
                  "name": "More than 5 years",
                  "value": "More than 5 years"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "I have lived in England",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Send Outreach Now",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Send Outreach Now",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Reffering Person's Email",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Reffering Person's Email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Conviction",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Yes ",
                  "value": "Yes "
                },
                {
                  "name": "No",
                  "value": "No"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Conviction",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Course List Pipeline",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Course List Pipeline",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Status",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Leads",
                  "value": "Leads"
                },
                {
                  "name": "Applied",
                  "value": "Applied"
                },
                {
                  "name": "Confirmed",
                  "value": "Confirmed"
                },
                {
                  "name": "Closed",
                  "value": "Closed"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Info Event Outcome",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Attended",
                  "value": "Attended"
                },
                {
                  "name": "Did Not Attend",
                  "value": "Did Not Attend"
                },
                {
                  "name": "Rescheduled",
                  "value": "Rescheduled"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Info Event Outcome",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Course Outcome",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Started",
                  "value": "Started"
                },
                {
                  "name": "Did Not Start/Withdrawn",
                  "value": "Did Not Start/Withdrawn"
                },
                {
                  "name": "Completed",
                  "value": "Completed"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Course Outcome",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Decision",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Approved",
                  "value": "Approved"
                },
                {
                  "name": "Rejected",
                  "value": "Rejected"
                },
                {
                  "name": "Pending",
                  "value": "Pending"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Decision",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Application Sent",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Application Sent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Reminder 1 Sent",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Reminder 1 Sent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Reminder 2 Sent",
              "type": "boolean",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "Reminder 2 Sent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Urgent Call Required",
              "type": "boolean",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "Urgent Call Required",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Referrer Notified \u2013 Info Event",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Referrer Notified \u2013 Info Event",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Referrer Notified \u2013 Course Start",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Referrer Notified \u2013 Course Start",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Application Sent Date",
              "type": "dateTime",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Application Sent Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Info Event Date",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "Info Event Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Course Start Date",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "Course Start Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last modified time",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "Last modified time",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Do you have any unspent criminal convictions and/or limitations that restrict you from being in the presence of under 18's",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Yes ",
                  "value": "Yes "
                },
                {
                  "name": "No",
                  "value": "No"
                },
                {
                  "name": "Prefer Not To Say (You won't be able to do the course)",
                  "value": "Prefer Not To Say (You won't be able to do the course)"
                }
              ],
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Do you have any unspent criminal convictions and/or limitations that restrict you from being in the presence of under 18's",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Morestarts will not share this data with any third party organisation other than Qualitrain Ltd, who delivers the course. By clicking Submit, you acknowledge and accept the above terms and wish to proceed with submitting the application.",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Morestarts will not share this data with any third party organisation other than Qualitrain Ltd, who delivers the course. By clicking Submit, you acknowledge and accept the above terms and wish to proceed with submitting the application.",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Outreach Sent",
              "type": "boolean",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Outreach Sent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Outreach Sent At",
              "type": "dateTime",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "Outreach Sent At",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Outreach Triggered At",
              "type": "string",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "Outreach Triggered At",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "update"
      },
      "credentials": {
        "airtableTokenApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "c1b58d1b-c64d-4b76-9342-30bdb6ffbad3",
      "name": "Airtable \u2014 List Eligible Leads1",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -2848,
        -224
      ],
      "parameters": {
        "base": {
          "__rl": true,
          "mode": "id",
          "value": "appmHaHEnNwsKqWmK"
        },
        "table": {
          "__rl": true,
          "mode": "id",
          "value": "tblFQ18WoHvTNiKCN"
        },
        "options": {},
        "operation": "search",
        "filterByFormula": "=AND({Status}='Leads',{Outreach Sent}=1,NOT({Outreach Sent At}=''))"
      },
      "credentials": {
        "airtableTokenApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "65f73e1b-5bc5-43d4-a0c2-9cdb64014896",
      "name": "WF3 Complete1",
      "type": "n8n-nodes-base.set",
      "position": [
        -1504,
        -544
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "result",
              "value": "WF3 finished"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 2
    },
    {
      "id": "b7af1c87-5201-4364-9319-9d6052c161a7",
      "name": "Prepare Candidate Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -2624,
        -224
      ],
      "parameters": {
        "jsCode": "const now = new Date();\n\nreturn items.map((item) => {\n  const r = item.json || {};\n\n  const recordId = r.id;\n  const firstName = String(r[\"First Name\"] ?? r[\"First  Name\"] ?? \"\").trim();\n  const email = String(r[\"Email\"] ?? \"\").trim();\n\n  const phoneRaw = String(r[\"Phone Number\"] ?? \"\").trim();\n  const phoneE164 = phoneRaw ? (phoneRaw.startsWith(\"+\") ? phoneRaw : \"+\" + phoneRaw) : \"\";\n\n  const outreachSentAtRaw = r[\"Outreach Sent At\"];\n  const sentAt = outreachSentAtRaw ? new Date(outreachSentAtRaw) : null;\n\n  const rem1Raw = r[\"Reminder 1 Sent\"];\n  const rem2Raw = r[\"Reminder 2 Sent\"];\n\n  const rem1Sent = rem1Raw === true || rem1Raw === \"checked\";\n  const rem2Sent = rem2Raw === true || rem2Raw === \"checked\";\n\n  let hoursSinceOutreach = null;\n\n  // 0 = none, 1 = reminder1, 2 = reminder2\n  let routeCode = 0;\n\n  if (sentAt && !isNaN(sentAt.getTime())) {\n    hoursSinceOutreach = Math.floor((now.getTime() - sentAt.getTime()) / (1000 * 60 * 60));\n\n    // Priority: reminder2 wins\n    if (hoursSinceOutreach >= 96 && !rem2Sent) routeCode = 2;\n    else if (hoursSinceOutreach >= 48 && !rem1Sent) routeCode = 1;\n  }\n\n  return {\n    json: {\n      recordId,\n      email,\n      firstName,\n      phoneE164,\n      hasEmail: !!email,\n      hasPhone: !!phoneE164,\n      hoursSinceOutreach,\n      routeCode,\n      applyLink: \"https://www.morestarts.co.uk/welding-course/\"\n    }\n  };\n});\n"
      },
      "typeVersion": 2
    },
    {
      "id": "095386a5-3958-4885-8fe8-8bd1f03ef91b",
      "name": "router",
      "type": "n8n-nodes-base.if",
      "position": [
        -2400,
        -224
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 3,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "11dfa0ae-4dbe-471b-a400-5f6b858500ca",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.routeCode === 2 }}",
              "rightValue": ""
            },
            {
              "id": "3c6c3e14-e129-4e2d-a569-753ca0cb0d5a",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "=={{ $json.routeCode === 1 }}",
              "rightValue": ""
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.3
    },
    {
      "id": "71514fe9-f428-4f04-8017-635bcd923441",
      "name": "R1 \u2014 IF Has Email",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        -448
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "8e68319e-cc26-4f07-b30a-180320bc18e6",
              "operator": {
                "type": "string",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.email }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "a5833132-305b-4be7-abfb-b1d75cbc14ca",
      "name": "Send a transactional email2",
      "type": "n8n-nodes-base.sendInBlue",
      "position": [
        -1952,
        -832
      ],
      "parameters": {
        "sender": "user@example.com",
        "subject": "Still time to apply (few spaces left)",
        "receipients": "={{ $json.email }}",
        "textContent": "=Hi {{ $json.firstName }},\n\u00a0\nWe haven\u2019t received your application form for our Engineering, Fabrication and Welding Course yet.\n\nThere are only a few spaces left now on the next course.\n\nTo ensure you don\u2019t miss out, please complete the form on this link ASAP, it takes 1 min.\n\n\n-----------------------------------------------------------\nhttps://www.morestarts.co.uk/welding-course\n-----------------------------------------------------------\n\u00a0\nKind regards,\n\nAndreas Datjis\nMorestarts",
        "requestOptions": {},
        "additionalFields": {}
      },
      "credentials": {
        "sendInBlueApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d62da718-dd3f-4bea-8f54-87ef72311e31",
      "name": "Brevo Sms",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1952,
        -640
      ],
      "parameters": {
        "url": "https://api.brevo.com/v3/transactionalSMS/send",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"sender\": \"Morestarts\",\n  \"recipient\": \"{{ $json.phoneE164 || $json.fields['Phone Number'] }}\",\n  \"content\": \"Hi {{ $json.firstName || $json.fields['First  Name'] }},\\n\\nWe haven\u2019t received your application form for our Engineering, Fabrication and Welding Course yet.\\n\\nThere are only a few spaces left on the next course.\\n\\nTo ensure you don\u2019t miss out, please complete the form using the link below (takes 1 minute):\\n\\nhttps://www.morestarts.co.uk/welding-course/\\n\\nAndreas\\nMorestarts\",\n  \"type\": \"transactional\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "api-key",
              "value": "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"
            },
            {
              "name": "content-type",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.3
    },
    {
      "id": "29bcfb3e-89ec-4702-a3ec-d94c0960ef78",
      "name": "Brevo Sms1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1952,
        -256
      ],
      "parameters": {
        "url": "https://api.brevo.com/v3/transactionalSMS/send",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"sender\": \"Morestarts\",\n  \"recipient\": \"{{ $json.phoneE164 || $json.fields['Phone Number'] }}\",\n  \"content\": \"Hi {{ $json.firstName || $json.fields['First  Name'] }},\\n\\nThanks for your interest in our Engineering, Fabrication and Welding Course at Qualitrain in Alfreton.\\n\\nWe are still waiting for you to complete your application form.\\n\\nTo ensure you don\u2019t miss out, please complete the form using the link below (takes 1 minute):\\n\\nhttps://www.morestarts.co.uk/welding-course/\\n\\nAndreas\\nMorestarts\",\n  \"type\": \"transactional\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "api-key",
              "value": "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"
            },
            {
              "name": "content-type",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.3
    },
    {
      "id": "e9a0b895-3477-49cd-b32b-a5bff952a791",
      "name": "Send a transactional email3",
      "type": "n8n-nodes-base.sendInBlue",
      "position": [
        -1952,
        -448
      ],
      "parameters": {
        "sender": "user@example.com",
        "subject": "Still time to apply (few spaces left)",
        "receipients": "={{ $json.email }}",
        "textContent": "=Hi {{ $json.firstName }},\n\u00a0\nWe haven\u2019t received your application form for our Engineering, Fabrication and Welding Course yet.\n\nThere are only a few spaces left now on the next course.\n\nTo ensure you don\u2019t miss out, please complete the form on this link ASAP, it takes 1 min.\n\n\n-----------------------------------------------------------\nhttps://www.morestarts.co.uk/welding-course\n-----------------------------------------------------------\n\u00a0\nKind regards,\n\nAndreas Datjis\nMorestarts",
        "requestOptions": {},
        "additionalFields": {}
      },
      "credentials": {
        "sendInBlueApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "98cfa590-ddc1-40e0-b1e6-887103cd5158",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3808,
        -1312
      ],
      "parameters": {
        "width": 448,
        "height": 896,
        "content": "## Automated Application Reminder Sequence (Email + SMS)\nHow it works\n\nThis workflow automatically sends follow-up reminders to candidates who have received an application link but have not yet applied. It runs on a daily schedule and scans Airtable for eligible candidates based on how much time has passed since outreach was sent.\n\nThe workflow uses Airtable as the source of truth for timing and state. It calculates how many hours have elapsed since outreach and decides whether to send a first reminder, second reminder, or no message at all. Each reminder is sent only once using checkbox \u201csent\u201d flags to ensure idempotency.\n\nAll routing logic is centralized in a Code node that outputs a simple route key. This avoids fragile IF conditions and prevents duplicate messages if the workflow retries or runs again the next day.\n\nSetup steps\n\nConnect Airtable and select the table containing candidate records.\n\nEnsure Airtable includes a timestamp field for when outreach was sent.\n\nEnsure checkbox fields exist for each reminder (e.g. \u201cReminder 1 Sent\u201d, \u201cReminder 2 Sent\u201d).\n\nConnect your email provider (Brevo) and SMS provider.\n\nSet the Cron node to run once per day at your preferred time.\n\nInitial setup typically takes 10\u201315 minutes.\n\nCustomization\n\nYou can adjust reminder timing, message content, or disable SMS/email independently without changing the core logic."
      },
      "typeVersion": 1
    },
    {
      "id": "bcf82774-d8c1-40d4-95ce-ea3333f8759b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3136,
        -464
      ],
      "parameters": {
        "color": 7,
        "height": 256,
        "content": "## Cron node + Airtable search/list node\nRuns daily and retrieves candidates who have received outreach but have not yet applied.\nAirtable controls eligibility via timestamps and flags."
      },
      "typeVersion": 1
    },
    {
      "id": "c7c0fc6f-df08-41c0-9bee-2e3e0e9a16ff",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2688,
        -464
      ],
      "parameters": {
        "color": 7,
        "height": 256,
        "content": "## Code node + Switch node\nCalculates elapsed time since outreach and outputs a single route key.\nEnsures only one reminder path can run per record.."
      },
      "typeVersion": 1
    },
    {
      "id": "239e72f3-d354-45e2-bb71-2700422ac4f6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2416,
        -992
      ],
      "parameters": {
        "color": 7,
        "width": 1312,
        "height": 1184,
        "content": "## Email/SMS nodes + Airtable update nodes\nSends the appropriate reminder and immediately updates Airtable \u201csent\u201d flags.\nPrevents duplicate reminders on future runs."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "availableInMCP": false,
    "executionOrder": "v1"
  },
  "versionId": "06e764fa-1b0b-4f23-8a17-0934e8e1e9a7",
  "connections": {
    "router": {
      "main": [
        [
          {
            "node": "R2 \u2014 IF Has Phone",
            "type": "main",
            "index": 0
          },
          {
            "node": "R2 \u2014 IF Has Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "R1 \u2014 IF Has Email",
            "type": "main",
            "index": 0
          },
          {
            "node": "R1 \u2014 IF Has Phone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brevo Sms": {
      "main": [
        [
          {
            "node": "R2 \u2014 Airtable Mark Reminder 2 + Urgent Call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brevo Sms1": {
      "main": [
        [
          {
            "node": "R1 \u2014 Airtable Mark Reminder 1 Sent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cron \u2014 Daily 9AM": {
      "main": [
        [
          {
            "node": "Airtable \u2014 List Eligible Leads1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "R1 \u2014 IF Has Email": {
      "main": [
        [
          {
            "node": "Send a transactional email3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "R1 \u2014 IF Has Phone": {
      "main": [
        [
          {
            "node": "Brevo Sms1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "R2 \u2014 IF Has Email": {
      "main": [
        [
          {
            "node": "Send a transactional email2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "R2 \u2014 IF Has Phone": {
      "main": [
        [
          {
            "node": "Brevo Sms",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Candidate Data": {
      "main": [
        [
          {
            "node": "router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a transactional email2": {
      "main": [
        [
          {
            "node": "R2 \u2014 Airtable Mark Reminder 2 + Urgent Call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a transactional email3": {
      "main": [
        [
          {
            "node": "R1 \u2014 Airtable Mark Reminder 1 Sent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable \u2014 List Eligible Leads1": {
      "main": [
        [
          {
            "node": "Prepare Candidate Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "R1 \u2014 Airtable Mark Reminder 1 Sent": {
      "main": [
        [
          {
            "node": "WF3 Complete1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "R2 \u2014 Airtable Mark Reminder 2 + Urgent Call": {
      "main": [
        [
          {
            "node": "WF3 Complete1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}