Skip to main content

Track post-therapy wellness with GPT-4o-mini, Telegram, Slack and Sheets

Workflow preview

Workflow preview
100%
Track post-therapy wellness with GPT-4o-mini, Telegram, Slack and Sheets preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow uses Google Sheets, OpenAI, Telegram, and Slack to send post therapy check in messages, analyze patient replies for sentiment and risk, alert therapists to at risk resp...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.telegram, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.slack

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Track post-therapy wellness with GPT-4o-mini, Telegram, Slack and Sheets
Workflow name
Track post-therapy wellness with GPT-4o-mini, Telegram, Slack and Sheets

Quick Overview

This workflow uses Google Sheets, OpenAI, Telegram, and Slack to send post-therapy check-in messages, analyze patient replies for sentiment and risk, alert therapists to at-risk responses, and log non-urgent replies for ongoing wellness tracking.

How it works

  1. Runs every hour on a schedule trigger.
  2. Reads session records from Google Sheets and keeps only sessions that have a session date and have not been marked as check-in sent.
  3. Uses OpenAI (gpt-4o-mini) to generate a personalized, non-clinical Telegram check-in message from the patient’s session details.
  4. Sends the check-in to the patient via Telegram and updates the Google Sheets session row to store the message and mark the check-in as sent.
  5. Triggers on incoming Telegram messages, looks up the patient in a Google Sheets master list by Telegram ID, and selects the most relevant recent session to provide context.
  6. Sends the patient reply and session context to OpenAI for JSON-formatted sentiment classification and parses the result into structured fields.
  7. If the sentiment is classified as at-risk, posts an urgent alert to a Slack channel; otherwise, appends the reply and sentiment details to a Google Sheets wellness log.

Setup

  1. Connect Google Sheets OAuth credentials and update the spreadsheet document ID and sheet names for Sessions, Patients_Master, and Wellness_Log.
  2. Create and connect a Telegram bot credential, set up the Telegram trigger webhook, and ensure patient Telegram chat IDs are stored in Google Sheets.
  3. Add an OpenAI API key credential and confirm the selected model (gpt-4o-mini) meets your requirements.
  4. Connect Slack OAuth credentials and replace the placeholder Slack channel ID used for therapist alerts, and confirm the error-alert channel is set correctly.
  5. Verify your Google Sheets columns match the workflow’s expected fields (for example session_id, checkin_sent, checkin_message_sent, therapist_slack_id) before activating.

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 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section: AI Check-In Generation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section: Patient Reply Capture

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section: Sentiment Analysis

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section: Escalation & Logging

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Credentials & Security

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Schedule Trigger (Every Hour)

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

Block 8 - Read Completed Sessions

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

Block 9 - AI: Generate Personalised Check-In Message

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.4

Block 10 - Telegram: Send Check-In to Patient

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

Block 11 - Sheets: Mark Check-In Sent

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

Block 12 - Code: Parse Sentiment JSON

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

Block 13 - IF: At-Risk Detected?

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

Block 14 - Slack: Alert Therapist (Human-in-Loop)

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

Block 15 - Sheets: Append to Wellness Log

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

Block 16 - Filter: Due for Check-In (24h passed)1

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

Block 17 - Merge

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

Block 18 - Read Completed Sessions (Reply Branch)

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

Block 19 - AI: Sentiment Analysis on Reply

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.4

Block 20 - Sheets: Lookup Patient by Telegram ID

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

Block 21 - Telegram Trigger: Capture Patient Reply

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

Block 22 - Code: Parse Merge Output

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

Block 23 - Section: Trigger & Filter

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - On Workflow Error

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

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

3. Summary Table

Workflow Track post-therapy wellness with GPT-4o-mini, Telegram, Slack and Sheets
Complexity advanced
Nodes 26
Categories Ticket Management, AI Chatbot
Author Rahul Joshi
Published 16 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16428/16428.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 Track post-therapy wellness with GPT-4o-mini, Telegram, Slack and Sheets do?

Quick Overview This workflow uses Google Sheets, OpenAI, Telegram, and Slack to send post therapy check in messages, analyze patient replies for sentiment and risk, alert therapists to at risk resp...

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.