{
  "name": "Application Auto-Filler",
  "nodes": [
    {
      "parameters": {
        "fields": {
          "values": [
            {
              "name": "applicationUrl",
              "value": "https://boards.greenhouse.io/openai/jobs/4017264005"
            }
          ]
        }
      },
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "notes": "Paste the URL of the job application page (e.g., Greenhouse, Lever)."
    },
    {
      "parameters": {
        "command": "node /path/to/your/15_application_auto_filler/autofill.js '{{ $json.applicationUrl }}' /path/to/your/15_application_auto_filler/my_info.json"
      },
      "name": "Execute Auto-Fill Script",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        650,
        300
      ],
      "notes": "Executes the Puppeteer script to fill the form. **ACTION REQUIRED:** Update the command with the absolute paths to your autofill.js and my_info.json files."
    },
    {
      "parameters": {
        "channel": "#general",
        "text": "Job application form has been filled. Please review and submit.",
        "attachments": [
          {
            "fallback": "Screenshot of the application form",
            "imageUrl": "={{ \"data:image/png;base64,\" + $node[\"Execute Auto-Fill Script\"].json.stdout }}"
          }
        ]
      },
      "name": "Notify for Review",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        850,
        300
      ],
      "notes": "Sends a Slack message with a screenshot of the filled form. **ACTION REQUIRED:** Configure your Slack credentials and channel.",
      "credentials": {
        "slackApi": {
          "id": "placeholder",
          "name": "Slack Account"
        }
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Execute Auto-Fill Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Auto-Fill Script": {
      "main": [
        [
          {
            "node": "Notify for Review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}