{
  "name": "Weekday URL status log (Skillaisle)",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "30 8 * * 1-5"
            }
          ]
        }
      },
      "id": "a1b2c3d4-0001-4000-8000-000000000001",
      "name": "Weekdays 08:30",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [0, 0]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a1b2c3d4-0001-4000-8000-0000000000c1",
              "name": "url",
              "value": "https://example.com/",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "a1b2c3d4-0001-4000-8000-000000000002",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [240, 0]
    },
    {
      "parameters": {
        "url": "={{ $json.url }}",
        "options": {
          "response": {
            "response": {
              "fullResponse": true,
              "neverError": true
            }
          },
          "timeout": 20000
        }
      },
      "id": "a1b2c3d4-0001-4000-8000-000000000003",
      "name": "Fetch URL",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [480, 0]
    },
    {
      "parameters": {
        "jsCode": "const item = items[0].json;\nconst status = item.statusCode ?? item.status ?? null;\nconst url = $('Config').first().json.url;\nreturn [{\n  json: {\n    checked_at: new Date().toISOString(),\n    url,\n    status_code: status,\n  }\n}];"
      },
      "id": "a1b2c3d4-0001-4000-8000-000000000004",
      "name": "Build row",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [720, 0]
    },
    {
      "parameters": {
        "operation": "toCsv",
        "options": {
          "header": true
        }
      },
      "id": "a1b2c3d4-0001-4000-8000-000000000005",
      "name": "Convert to CSV",
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [960, 0]
    }
  ],
  "connections": {
    "Weekdays 08:30": { "main": [ [ { "node": "Config", "type": "main", "index": 0 } ] ] },
    "Config": { "main": [ [ { "node": "Fetch URL", "type": "main", "index": 0 } ] ] },
    "Fetch URL": { "main": [ [ { "node": "Build row", "type": "main", "index": 0 } ] ] },
    "Build row": { "main": [ [ { "node": "Convert to CSV", "type": "main", "index": 0 } ] ] }
  },
  "settings": { "executionOrder": "v1" },
  "pinData": {}
}
