# Track post-therapy wellness with OpenAI and Telegram: n8n workflow

> Started by an incoming Telegram message, and works across Google Sheets, Slack and Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/track-post-therapy-wellness-with-openai-and-telegram (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Track post-therapy wellness with OpenAI and Telegram

Started by an incoming Telegram message, and works across Google Sheets, Slack and Telegram. It hands the judgement calls to OpenAI. 18 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftrack-post-therapy-wellness-with-openai-and-telegram)

**18 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 3 Model 2 Logic 5 Service 8

The steps in the order they run, from what starts it.

- 1 **Schedule Trigger (Every Hour)** Schedule trigger *Starts it*
- 2 **Telegram Trigger: Capture Patient Reply** Telegram trigger *Starts it*
- 3 **On Workflow Error** Error trigger *Starts it*
- 4 **Read Completed Sessions** Google Sheets *Service*
- 5 **Sheets: Lookup Patient by Telegram ID** Google Sheets *Service*
- 6 **Read Completed Sessions (Reply Branch)** Google Sheets *Service*
- 7 **Slack – Send Error Alert** Slack *Service*
- 8 **Filter: Due for Check-In (24h passed)1** Filter *Logic*
- 9 **Merge** Merge *Logic*
- 10 **AI: Generate Personalised Check-In Message** Open Ai *Model*
- 11 **Code: Parse Merge Output** Code *Logic*
- 12 **Telegram: Send Check-In to Patient** Telegram *Service*
- 13 **AI: Sentiment Analysis on Reply** Open Ai *Model*
- 14 **Sheets: Mark Check-In Sent** Google Sheets *Service*
- 15 **Code: Parse Sentiment JSON** Code *Logic*
- 16 **IF: At-Risk Detected?** If *Logic*
- 17 **Slack: Alert Therapist (Human-in-Loop)** Slack *Service*
- 18 **Sheets: Append to Wellness Log** Google Sheets *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 18, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Google Sheets, Slack, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets, Slack and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftrack-post-therapy-wellness-with-openai-and-telegram)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**AI blog creator - multi-model Telegram bot with Gemini** 18 steps · calls a model · Telegram](https://millionrounds.com/workflow/ai-blog-creator-multi-model-telegram-bot-with-gemini)
- [**AI-powered content factory: RSS to blog, Instagram & TikTok** 18 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/ai-powered-content-factory-rss-to-blog-instagram-and-tiktok)
- [**Analyze Facebook post comment sentiment with OpenAI** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/analyze-facebook-post-comment-sentiment-with-openai)
- [**Analyze Reddit posts with OpenAI and Gmail** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/analyze-reddit-posts-with-openai-and-gmail)
- [**Audio transcription & chat bot with AssemblyAI and Gemini** 18 steps · calls a model · Google Sheets, Pinecone](https://millionrounds.com/workflow/audio-transcription-and-chat-bot-with-assemblyai-and-gemini)
- [**Audit landing page SEO with OpenAI** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/audit-landing-page-seo-with-openai)
