{
  "name": "Job Filter",
  "nodes": [
    {
      "parameters": {},
      "id": "c84c19b4-e3b4-4ebc-b1cc-afa6007e5464",
      "name": "Execute Workflow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1,
      "position": [
        -640,
        280
      ]
    },
    {
      "parameters": {
        "model": "=meta-llama/llama-3.1-405b-instruct:free",
        "options": {
          "baseURL": "https://openrouter.ai/api/v1"
        }
      },
      "id": "459dd7c2-a09e-45de-a4a3-e861b759b3af",
      "name": "Open Router Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [
        460,
        320
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {},
      "id": "4ad99944-9f60-47b5-8337-af0478c2a549",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.2,
      "position": [
        620,
        360
      ]
    },
    {
      "parameters": {
        "operation": "get",
        "documentURL": "1eMxq0wVyLr6dMb5JNc711QCqNUt3Rvtv5fDMpujUhAY"
      },
      "id": "64549f2a-84b4-45cc-b156-53817cc7a450",
      "name": "Google Docs1",
      "type": "n8n-nodes-base.googleDocsTool",
      "typeVersion": 2,
      "position": [
        760,
        360
      ],
      "credentials": {
        "googleDocsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": {
          "__rl": true,
          "value": "88a66b72-0f34-4e22-9449-f8518a1108ab",
          "mode": "list",
          "cachedResultName": "Openings",
          "cachedResultUrl": "https://www.notion.so/88a66b720f344e229449f8518a1108ab"
        },
        "options": {}
      },
      "id": "4f28ff00-2bfe-47d9-8be2-c82d7f9b96d6",
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        260,
        280
      ],
      "credentials": {
        "notionApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "Help me determine which of these jobs is right for this resume",
        "options": {}
      },
      "id": "515b727b-83bb-460e-b6b7-0a60eb8333e5",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.6,
      "position": [
        500,
        160
      ],
      "executeOnce": true
    },
    {
      "parameters": {
        "operation": "get",
        "documentURL": "1eMxq0wVyLr6dMb5JNc711QCqNUt3Rvtv5fDMpujUhAY"
      },
      "id": "3bfe665f-086e-4801-99b4-7961abd8f64d",
      "name": "Current Resume",
      "type": "n8n-nodes-base.googleDocs",
      "typeVersion": 2,
      "position": [
        680,
        520
      ],
      "credentials": {
        "googleDocsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const regex = /^(?!.*\\b(?:staff|principal)\\b)\\b(?:ux|react|software|front[- ]?end|full[- ]?stack|web)\\s(?:[a-zA-Z]+\\s)?(?:developer|engineer)\\b/i\n\nconst jobs = $input.all()\nreturn jobs.filter(j => j.json.title.match(regex))"
      },
      "id": "660f1b49-5d46-4182-86df-bdad660b2dda",
      "name": "UX Job Title Filter (In-Progress)",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -380,
        160
      ]
    },
    {
      "parameters": {
        "jsCode": "const regex = /\\b(?:AI|ML|Machine\\s+Learning|Artificial\\s+Intelligence|Deep\\s+Learning|Natural\\s+Language\\s+Processing|NLP|Computer\\s+Vision|Data\\s+Science|Data\\s+Engineer|Data\\s+Scientist|Robotics|Reinforcement\\s+Learning|Neural\\s+Networks)\\b/i\n\nconst jobs = $input.all()\nreturn jobs.filter(j => j.json.title.match(regex))"
      },
      "id": "ac675a46-5982-4ab8-9211-788e9ffab008",
      "name": "AI Job Title Filter (In-Progress)",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -380,
        380
      ]
    },
    {
      "parameters": {
        "mode": "combine",
        "fieldsToMatchString": "title, city, employment_type",
        "joinMode": "keepEverything",
        "options": {}
      },
      "id": "7bd4374f-59b0-412c-b832-48f8e1f48114",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3,
      "position": [
        -160,
        260
      ]
    }
  ],
  "connections": {
    "Open Router Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Google Docs1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Notion": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Job Title Filter (In-Progress)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "UX Job Title Filter (In-Progress)",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Job Title Filter (In-Progress)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "UX Job Title Filter (In-Progress)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1cf77d65-3139-4dfa-8390-9a8b93bf30a1",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "RLBsw2PdWSjkPsif",
  "tags": []
}