Skip to main content

Post-surgery patient triage & follow-up system with Gemini AI, Telegram & Google Suite

Workflow preview

Workflow preview
100%
Post-surgery patient triage & follow-up system with Gemini AI, Telegram & Google Suite preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who’s it for This template is for clinics, hospitals, care teams, and telemedicine providers who need a structured, automated system for post surgery follow up. It helps reduce manual workload whil...

Best for

  • Ticket Management automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.telegram, n8n-nodes-base.telegramtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Pixcels Themes.

Original n8n.io source

1.1 Workflow description

Title
Post-surgery patient triage & follow-up system with Gemini AI, Telegram & Google Suite
Workflow name
Post-surgery patient triage & follow-up system with Gemini AI, Telegram & Google Suite

Who’s it for

This template is for clinics, hospitals, care teams, and telemedicine providers who need a structured, automated system for post-surgery follow-up. It helps reduce manual workload while ensuring every patient gets timely check-ins and appropriate triage.

What it does / How it works

This workflow automates daily recovery monitoring using Google Sheets and Telegram.
It sends scheduled check-in messages to all patients within their follow-up window.
When a patient replies, the message is:

  • Captured by Telegram Trigger
  • Cleaned and structured
  • Summarized by an AI agent
  • Classified into low, moderate, or high intensity

Based on the intensity level:

  • Low: Sends a supportive, non-urgent response
  • Moderate: Sends guidance + schedules a follow-up event in Google Calendar
  • High: Sends an alert email to the doctor via Gmail

All logic runs automatically.

Requirements

  • Google Sheets OAuth2 credentials
  • Gmail OAuth2 credentials
  • Google Calendar OAuth2 credentials
  • Telegram Bot credentials
  • Gemini API credentials
  • A Google Sheet with patient name, surgery type, follow-up duration, and doctor email

How to set up

  1. Connect all required credentials inside n8n.
  2. Replace the Google Sheet ID with your own patient sheet.
  3. Adjust column mappings if your sheet structure differs.
  4. Test by sending a Telegram message to your bot.
  5. Enable the Schedule Trigger to begin automated daily follow-ups.

How to customize the workflow

  • Modify AI prompts inside the AI Agent nodes
  • Adjust triage logic for intensity levels
  • Change follow-up intervals in the Schedule Trigger
  • Add additional notification channels (SMS, Slack, CRM logging)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 3 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 5 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 6 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 7 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 8 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - AI Agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 10 - Code1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - feedback msg

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - Google Gemini Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 13 - Get row(s) in sheet in Google Sheets

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.6

Block 14 - AI Agent2

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 15 - Google Gemini Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 16 - Get row(s) in sheet in Google Sheets1

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.6

Block 17 - AI Agent3

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 18 - Google Gemini Chat Model3

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 19 - Get row(s) in sheet in Google Sheets2

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.6

Block 20 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 22 - Send a text message2

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 23 - Send a text message3

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 24 - Send a text message4

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Showing the first 24 of 43 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Post-surgery patient triage & follow-up system with Gemini AI, Telegram & Google Suite
Complexity advanced
Nodes 43
Categories Ticket Management, AI Chatbot
Author Pixcels Themes
Published 10 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11649/11649.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Post-surgery patient triage & follow-up system with Gemini AI, Telegram & Google Suite do?

Who’s it for This template is for clinics, hospitals, care teams, and telemedicine providers who need a structured, automated system for post surgery follow up. It helps reduce manual workload whil...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Chatbot use case.