Build a Telegram mental health support bot with GPT-4o
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER 🎉 Early Black Friday Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
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 mental health support. Incoming messages tagged with #vent, #insight, or #cope are routed to GPT‑4o via the AI/ML API, which returns tailored, compassionate responses.
How it works:
- Telegram Trigger listens for new chat messages or voice notes.
- Show Typing Indicator immediately signals “typing…” in the chat.
- Switch Node examines the text prefix and routes to one of four branches (
Vent,Insight,Cope, or default). - Set Prompt nodes build a JSON payload with a specific role‑play prompt for each branch.
- AI/ML API node (model
gpt-4o) generates the response. - Telegram node sends the AI’s answer back to the user.
Setup Steps:
- Connect your Telegram bot token in the Telegram credentials.
- Add your AI/ML API key (GPT‑4o) in n8n’s credential settings.
- Activate the workflow and deploy your n8n instance webhook URL to BotFather.
- Test by sending
#vent I’m stressed,#insight Why do I feel…, or any tag in your Telegram chat.
This plug‑and‑play workflow brings AI‑driven emotional support directly into Telegram.