{
  "name": "Automate patient intake & symptom triage with AI, Cal.com and Google Services",
  "nodes": [
    {
      "id": "9d63fd49-dcd0-44b5-b430-a2afe14679a5",
      "name": "Intelligent Doctor Routing",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        320,
        -60
      ]
    },
    {
      "id": "166672ec-9cc6-454d-a4f3-65668136dee3",
      "name": "Grab Appointment Time",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        120,
        -60
      ]
    },
    {
      "id": "80d6ea83-fdd5-4f0b-afa9-8b2c18b8681a",
      "name": "Extract Patient Info and AI Diagnosis",
      "type": "n8n-nodes-base.set",
      "position": [
        940,
        -60
      ]
    },
    {
      "id": "82cdfc69-cd8a-4098-88fa-1f41fe05f375",
      "name": "AI Diagnosis",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        320,
        160
      ]
    },
    {
      "id": "554a8f4d-26d5-49ab-9b88-c6ba4af51d2c",
      "name": "Get Present Appointments",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        520,
        200
      ]
    },
    {
      "id": "beafad53-227e-47d9-b019-892b36f7d9d7",
      "name": "Return Unique Appointments",
      "type": "n8n-nodes-base.code",
      "position": [
        740,
        200
      ]
    },
    {
      "id": "b1e0f815-e791-458c-9f9b-6e3370161462",
      "name": "Save new appointments",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        980,
        200
      ]
    },
    {
      "id": "a7ec4cac-1a3c-424f-9162-1b626830749e",
      "name": "Map departments with their respective calendars",
      "type": "n8n-nodes-base.code",
      "position": [
        520,
        460
      ]
    },
    {
      "id": "e2f3d3fb-3e28-4116-b653-6e4c856fd0ca",
      "name": "Check for new patient appointment Requests",
      "type": "n8n-nodes-base.calTrigger",
      "position": [
        -100,
        -60
      ]
    },
    {
      "id": "8ecacd04-ebdb-4211-8c4e-6fd490f55177",
      "name": "Create Appointment in Respective Department's calender",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        780,
        460
      ]
    },
    {
      "id": "1feca45d-b494-4245-9f53-ffc1438642fd",
      "name": "Parse Output in our preferred structure",
      "type": "n8n-nodes-base.code",
      "position": [
        700,
        -60
      ]
    }
  ],
  "connections": {
    "AI Diagnosis": {
      "ai_languageModel": [
        [
          {
            "node": "Intelligent Doctor Routing",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Grab Appointment Time": {
      "main": [
        [
          {
            "node": "Intelligent Doctor Routing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save new appointments": {
      "main": [
        [
          {
            "node": "Map departments with their respective calendars",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Present Appointments": {
      "main": [
        [
          {
            "node": "Return Unique Appointments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Intelligent Doctor Routing": {
      "main": [
        [
          {
            "node": "Parse Output in our preferred structure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Return Unique Appointments": {
      "main": [
        [
          {
            "node": "Save new appointments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Patient Info and AI Diagnosis": {
      "main": [
        [
          {
            "node": "Get Present Appointments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Output in our preferred structure": {
      "main": [
        [
          {
            "node": "Extract Patient Info and AI Diagnosis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for new patient appointment Requests": {
      "main": [
        [
          {
            "node": "Grab Appointment Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Map departments with their respective calendars": {
      "main": [
        [
          {
            "node": "Create Appointment in Respective Department's calender",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}