{
  "name": "Auto Germany apartment search & apply with Immobilienscout24 & Google Services",
  "nodes": [
    {
      "id": "00c983ef-7af4-4dd6-a401-ca768a55e06f",
      "name": "Cron Trigger",
      "type": "n8n-nodes-base.cron",
      "position": [
        -1600,
        160
      ]
    },
    {
      "id": "3d947c93-e2e3-4743-b3ae-28ca3f9863c5",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1600,
        60
      ]
    },
    {
      "id": "da8dbdd8-9eee-403b-9e31-d2ffe87e7ce6",
      "name": "Set Config",
      "type": "n8n-nodes-base.set",
      "position": [
        -1400,
        100
      ]
    },
    {
      "id": "c2e503b7-d028-407f-886c-3ef883c88dfc",
      "name": "GeoID Lookup",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1200,
        100
      ]
    },
    {
      "id": "43d968b8-fbe2-4df2-8c64-ba8c0220508f",
      "name": "Extract GeoID",
      "type": "n8n-nodes-base.function",
      "position": [
        -1000,
        100
      ]
    },
    {
      "id": "eff8bc4c-94a2-467a-9707-c5fc3cd6008b",
      "name": "Extract Listings",
      "type": "n8n-nodes-base.function",
      "position": [
        -600,
        100
      ]
    },
    {
      "id": "6205f414-714d-4b70-899c-8e61fdc995e4",
      "name": "Filter Results",
      "type": "n8n-nodes-base.function",
      "position": [
        -400,
        100
      ]
    },
    {
      "id": "79093c3e-55c0-4171-abf0-0458166edd59",
      "name": "Fetch Schufa (Google Drive)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "f7adabf8-9209-452f-9932-c4448b88e040",
      "name": "Fetch Salary Slips (Google Drive)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        0,
        200
      ]
    },
    {
      "id": "080fa809-ebd7-4d26-a700-62809eadb711",
      "name": "Generate Cover Letter",
      "type": "n8n-nodes-base.function",
      "position": [
        200,
        100
      ]
    },
    {
      "id": "e3f70e05-6af1-4828-bbd3-95b2bfa0a209",
      "name": "Send Application Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        400,
        100
      ]
    },
    {
      "id": "44249cb7-1807-4659-90c7-6ba58f587500",
      "name": "Log to Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        600,
        100
      ]
    },
    {
      "id": "421df40a-53b4-40d1-9f22-cb310ef836ae",
      "name": "Sticky: Cron Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1720,
        -60
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Triggers the workflow every day at 8 AM Berlin time."
      }
    },
    {
      "id": "0ce39af0-c398-4aa4-ba96-7b36d4eace9e",
      "name": "Sticky: Set Config",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1460,
        -60
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Set your configuration: city, max rent, rooms, email, file IDs etc."
      }
    },
    {
      "id": "7499bb85-296b-4f80-9ddd-c0901a80d5bf",
      "name": "Sticky: GeoID Lookup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1140,
        -60
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Convert city name to GeoID needed by ImmobilienScout24 API."
      }
    },
    {
      "id": "1046f60d-d23b-41d7-b5df-12c8ecf204bd",
      "name": "Sticky: Fetch Listings From immobilienscout24",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -760,
        -40
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Fetch apartment listings from ImmobilienScout24 with filters applied."
      }
    },
    {
      "id": "0a420d8a-ee43-405d-8494-737747e67b24",
      "name": "Sticky: Process Apartments One-by-One",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -40
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Process apartments one by one to send applications."
      }
    },
    {
      "id": "42e8231e-96e0-448f-a8f8-2be53940bc15",
      "name": "Sticky: Fetch Salary Slips",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        380
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Fetch latest salary slips from Google Drive for application."
      }
    },
    {
      "id": "8e0dbdeb-f7cb-4838-b126-62b243e8b4b1",
      "name": "Sticky: Fetch Schufa",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Fetch Schufa report from Google Drive to attach in application."
      }
    },
    {
      "id": "7137f4c9-1d71-45ef-9f7f-af7a29eab8a5",
      "name": "Sticky: Generate Cover Letter",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        -40
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Generate a personalized cover letter with expose ID and applicant name."
      }
    },
    {
      "id": "f18bda50-b7d3-4c09-8cd5-110a1aec113c",
      "name": "Sticky: Send Application Email",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -40
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Send the apartment application email with attachments."
      }
    },
    {
      "id": "7e26a2a5-6b06-41a2-8ce5-c0ac65220f59",
      "name": "Sticky: Log to Google Sheet",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        40
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Log applied apartments in Google Sheets for tracking."
      }
    },
    {
      "id": "6cbae05f-922a-457e-a679-e781d92ece08",
      "name": "Process Apartments One-by-One",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -200,
        100
      ]
    },
    {
      "id": "7cdefc5c-0d65-4b3e-b2d6-9cee1cb14895",
      "name": "Fetch Listings From immobilienscout24",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -800,
        100
      ]
    }
  ],
  "connections": {
    "Set Config": {
      "main": [
        [
          {
            "node": "GeoID Lookup",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cron Trigger": {
      "main": [
        [
          {
            "node": "Set Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GeoID Lookup": {
      "main": [
        [
          {
            "node": "Extract GeoID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract GeoID": {
      "main": [
        [
          {
            "node": "Fetch Listings From immobilienscout24",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Results": {
      "main": [
        [
          {
            "node": "Process Apartments One-by-One",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Set Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Listings": {
      "main": [
        [
          {
            "node": "Filter Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Cover Letter": {
      "main": [
        [
          {
            "node": "Send Application Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Application Email": {
      "main": [
        [
          {
            "node": "Log to Google Sheet",
            "type": "main",
            "index": 0
          },
          {
            "node": "Process Apartments One-by-One",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Schufa (Google Drive)": {
      "main": [
        [
          {
            "node": "Generate Cover Letter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Apartments One-by-One": {
      "main": [
        [
          {
            "node": "Fetch Schufa (Google Drive)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Salary Slips (Google Drive)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Salary Slips (Google Drive)": {
      "main": [
        [
          {
            "node": "Generate Cover Letter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Listings From immobilienscout24": {
      "main": [
        [
          {
            "node": "Extract Listings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}