Build a Telegram mental health support bot with GPT-4o
UnknownWhat this workflow does
This workflow has 9 nodes and runs on Telegram events (message). Along the way it connects Telegram and Aimlapi (community).
How it runs
Trigger: On Telegram events (message).
- Show Typing Indicator (Telegram): send chat action
- Route by Input Type (Switch): routes items into 4 branches
- Vent prompt (Edit Fields (Set)): sets or maps fields
- Insight prompt (Edit Fields (Set)): sets or maps fields
- Cope prompt (Edit Fields (Set)): sets or maps fields
- Main prompt for all other messages (Edit Fields (Set)): sets or maps fields
- Generate personalised answer (Aiml Api): uses Aiml Api
- Send message to Telegram (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-aimlapi is verified or supports 3.0 (used in Generate personalised answer).
Nodes used (5)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - Aiml Api
n8n-nodes-aimlapi.aimlApi - Telegram
n8n-nodes-base.telegram
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. n8n Workflow Template: AI‑Powered Mental Health Support Bot Overview: This template enables you to build a Telegram bot that delivers real‑time, empathetic…