This workflow corresponds to n8n.io template #6406 โ we link there as the canonical source.
This workflow follows the Chainllm โ Google Sheets recipe pattern โ see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide โ
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "9d63fd49-dcd0-44b5-b430-a2afe14679a5",
"name": "Intelligent Doctor Routing",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
320,
-60
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "166672ec-9cc6-454d-a4f3-65668136dee3",
"name": "Grab Appointment Time",
"type": "n8n-nodes-base.dateTime",
"position": [
120,
-60
],
"parameters": {},
"typeVersion": 2
},
{
"id": "80d6ea83-fdd5-4f0b-afa9-8b2c18b8681a",
"name": "Extract Patient Info and AI Diagnosis",
"type": "n8n-nodes-base.set",
"position": [
940,
-60
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "82cdfc69-cd8a-4098-88fa-1f41fe05f375",
"name": "AI Diagnosis",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
320,
160
],
"parameters": {},
"typeVersion": 1
},
{
"id": "554a8f4d-26d5-49ab-9b88-c6ba4af51d2c",
"name": "Get Present Appointments",
"type": "n8n-nodes-base.googleSheets",
"position": [
520,
200
],
"parameters": {},
"typeVersion": 4.6,
"alwaysOutputData": true
},
{
"id": "beafad53-227e-47d9-b019-892b36f7d9d7",
"name": "Return Unique Appointments",
"type": "n8n-nodes-base.code",
"position": [
740,
200
],
"parameters": {},
"typeVersion": 2
},
{
"id": "b1e0f815-e791-458c-9f9b-6e3370161462",
"name": "Save new appointments",
"type": "n8n-nodes-base.googleSheets",
"position": [
980,
200
],
"parameters": {},
"typeVersion": 4.6
},
{
"id": "a7ec4cac-1a3c-424f-9162-1b626830749e",
"name": "Map departments with their respective calendars",
"type": "n8n-nodes-base.code",
"position": [
520,
460
],
"parameters": {},
"typeVersion": 2
},
{
"id": "e2f3d3fb-3e28-4116-b653-6e4c856fd0ca",
"name": "Check for new patient appointment Requests",
"type": "n8n-nodes-base.calTrigger",
"position": [
-100,
-60
],
"parameters": {},
"typeVersion": 2
},
{
"id": "8ecacd04-ebdb-4211-8c4e-6fd490f55177",
"name": "Create Appointment in Respective Department's calender",
"type": "n8n-nodes-base.googleCalendar",
"position": [
780,
460
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "1feca45d-b494-4245-9f53-ffc1438642fd",
"name": "Parse Output in our preferred structure",
"type": "n8n-nodes-base.code",
"position": [
700,
-60
],
"parameters": {},
"typeVersion": 2
}
],
"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
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
๐จ DISCLAIMER (READ FIRST):
Source: https://n8n.io/workflows/6406/ โ original creator credit. Request a take-down โ
More Data & Sheets workflows โ ยท Browse all categories โ
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This template is ideal for B2B founders, solopreneurs, growth marketers, SDRs, or anyone looking to scale their lead generation and enrichment with no-code tools to low-code tools.
This workflow demonstrates a simple way to run evals on a set of test cases stored in a Google Sheet.
This workflow demonstrates a simple way to run evals on a set of test cases stored in a Google Sheet.
This template is designed for developers, back-office teams, and automation builders (especially in Thailand or Thai-speaking environments) who need to process multi-file, multi-page Thai PDFs and aut
This workflow is designed to automate the generation and updating of SEO meta titles and descriptions for WooCommerce products using n8n. It leverages Google Sheets for data input, a FREE language mod