{
  "name": "Manage patient appointments and care follow-ups with OpenAI, Gmail and Twilio",
  "nodes": [
    {
      "id": "60146e73-2a1f-4859-af30-b5ba3d481249",
      "name": "Patient Input",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -2032,
        96
      ]
    },
    {
      "id": "c166480a-4f95-4764-af40-9bff8bb056c8",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1680,
        96
      ]
    },
    {
      "id": "ef093a84-c16e-41c1-8823-a3666e949bbd",
      "name": "Intake Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1128,
        96
      ]
    },
    {
      "id": "93a63871-52bf-40c7-a948-02d3e5117e97",
      "name": "Care Coordination Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1328,
        320
      ]
    },
    {
      "id": "3861b9fe-42fc-49a3-83ec-e518ed0aa4ab",
      "name": "Notification Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -944,
        320
      ]
    },
    {
      "id": "5c87b722-4210-427b-bf79-7bc29faa38b4",
      "name": "OpenAI Model - Intake",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1456,
        320
      ]
    },
    {
      "id": "9b707b9e-a26b-4adc-8802-185269625152",
      "name": "OpenAI Model - Care Coordination",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1472,
        496
      ]
    },
    {
      "id": "4599a1d8-ed45-4fcb-8929-9ba8def74fa5",
      "name": "OpenAI Model - Notification",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -912,
        608
      ]
    },
    {
      "id": "14e15b9d-849e-4310-adec-d8822b6ea57a",
      "name": "Intake Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -656,
        320
      ]
    },
    {
      "id": "3a57c3a5-16d0-4bd8-9ad8-ba24a82a782e",
      "name": "Care Coordination Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1056,
        528
      ]
    },
    {
      "id": "2f103855-602d-474a-8af9-b4bf8b4ccf39",
      "name": "Notification Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -768,
        544
      ]
    },
    {
      "id": "3d33bed0-3c14-423e-9ba0-33a8064b1f32",
      "name": "Conversation Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -1960,
        320
      ]
    },
    {
      "id": "3b8c5693-8a7c-4c53-ad11-facbbb083d9a",
      "name": "Prepare Final Output",
      "type": "n8n-nodes-base.set",
      "position": [
        -448,
        96
      ]
    },
    {
      "id": "62305031-da10-48fe-8cce-d534cf7b0986",
      "name": "Check Notification Method",
      "type": "n8n-nodes-base.if",
      "position": [
        -224,
        96
      ]
    },
    {
      "id": "93da0383-64eb-4b61-bab6-8196afaff9cd",
      "name": "Send Email Notification",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        0,
        80
      ]
    },
    {
      "id": "4437958f-3537-4657-8c5c-c0afd3d1e2e4",
      "name": "Send SMS Notification",
      "type": "n8n-nodes-base.twilio",
      "position": [
        16,
        336
      ]
    },
    {
      "id": "51cd9d7a-3a69-45aa-a067-7dee2e38a184",
      "name": "EHR System Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -1312,
        528
      ]
    },
    {
      "id": "4887d524-9fbe-4adc-93ed-964c23b204b7",
      "name": "Scheduling System Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -1184,
        640
      ]
    },
    {
      "id": "22ba5a9f-d605-40fe-94fb-dd723e2e7703",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        -416
      ],
      "parameters": {
        "width": 400,
        "height": 352,
        "content": "## Prerequisites\nActive OpenAI API account with credits, connected email service (Gmail recommended)\n## Use Cases\nPost-appointment follow-up reminders, medication adherence check-ins, preventive care "
      }
    },
    {
      "id": "f26037a2-2c4b-4b25-aa10-6446e6341baa",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1344,
        -368
      ],
      "parameters": {
        "width": 400,
        "height": 304,
        "content": "\n## Setup Steps\n1. Configure OpenAI credentials with API key for AI model access\n2. Set up EHR System Tool node with your electronic health records integration endpoint\n3. Configure Scheduling System "
      }
    },
    {
      "id": "54bc3d50-b939-4904-b107-941c2e90ee69",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2000,
        -336
      ],
      "parameters": {
        "width": 608,
        "height": 272,
        "content": "## How It Works\nThis workflow automates patient care coordination in healthcare settings by intelligently processing patient information and scheduling follow-up communications through multiple channe"
      }
    },
    {
      "id": "6b6ab613-cea1-4b26-b8ba-bd6ff920aaee",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2096,
        -32
      ],
      "parameters": {
        "width": 560,
        "height": 592,
        "content": "## Patient Information Capture\n**Why:** Initiates the workflow with structured patient data including medical history, appointment details, and contact preferences, establishing the foundation for per"
      }
    },
    {
      "id": "41719b05-703a-46bb-bc65-99900f9cdc54",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        -32
      ],
      "parameters": {
        "width": 992,
        "height": 848,
        "content": "## AI Care Coordination Analysis\n**Why:** Processes patient information through intelligent agents that evaluate care requirements, determine optimal follow-up schedules, and generate contextually app"
      }
    },
    {
      "id": "7fcaf5ad-dc19-48aa-ace8-fc4528daa101",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        -32
      ],
      "parameters": {
        "width": 704,
        "height": 800,
        "content": "## Multi-Channel Notification Delivery\n**Why:** Automatically sends personalized follow-up messages through patient-preferred channels (email/SMS), ensuring reliable communication delivery and improve"
      }
    }
  ],
  "connections": {
    "Intake Agent": {
      "main": [
        [
          {
            "node": "Prepare Final Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Intake Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Intake Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Patient Input": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "EHR System Tool": {
      "ai_tool": [
        [
          {
            "node": "Care Coordination Agent Tool",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Conversation Memory": {
      "ai_memory": [
        [
          {
            "node": "Intake Agent",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Patient Input",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Notification Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Notification Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Final Output": {
      "main": [
        [
          {
            "node": "Check Notification Method",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Intake": {
      "ai_languageModel": [
        [
          {
            "node": "Intake Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Scheduling System Tool": {
      "ai_tool": [
        [
          {
            "node": "Care Coordination Agent Tool",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Intake Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notification Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Intake Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Care Coordination Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Care Coordination Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Check Notification Method": {
      "main": [
        [
          {
            "node": "Send Email Notification",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send SMS Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Notification": {
      "ai_languageModel": [
        [
          {
            "node": "Notification Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Care Coordination Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Intake Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Care Coordination": {
      "ai_languageModel": [
        [
          {
            "node": "Care Coordination Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}