Assist hospital doctors via Telegram with OpenAI, Google Sheets, Gmail and Slack
Ready for 3.0What this workflow does
This AI workflow has 34 nodes and runs on a schedule (every day) (plus 3 other triggers). Along the way it connects Google Sheets, Telegram, OpenAI and Gmail and 1 more.
How it runs
Trigger: On a schedule (every day) (plus 3 other triggers).
- Sheets - Get All Patients (Google Sheets): uses Google Sheets
- If: checks a condition and branches into true / false
- Slack: uses Slack
- Sheets - Update Bed Row (Google Sheets): uses Google Sheets
- Filter: keeps only the items that match a condition
- Telegram: uses Telegram
- If: checks a condition and branches into true / false
- Loop - Over Due Patients (Loop Over Items (Split in Batches)): loops over the items in batches
- Extract - Report Text (Extract from File): extracts data from a file
- Set - Extract Patient ID (Discharge) (Edit Fields (Set)): sets or maps fields
…plus 20 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (15)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Telegram
n8n-nodes-base.telegram - Telegram Trigger
n8n-nodes-base.telegramTrigger - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - OpenAI
@n8n/n8n-nodes-langchain.openAi - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - Webhook
n8n-nodes-base.webhook - Error Trigger
n8n-nodes-base.errorTrigger - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow combines a Telegram doctor bot, OpenAI, Google Sheets, Gmail, Slack, and a webhook to summarize PDF reports, generate and email discharge summaries, analyze lab values, report bed availability, send daily patient follow-ups, and…