Telegram ChatBot with multiple sessions
Triggered manually or by an app event. Connects Code, Condition, Google Sheets, Stop And Error, Switch, Telegram. Telegram ChatBot with multiple sessions This workflow creates an AI-powered Telegram chatbot with session management, allowing users to: - Start new conversations (/new). - Check current sessions (/current). - Resume past sessions (/resume). - Get summaries (/summary). - Ask questions
Front matter
name: Telegram ChatBot with multiple sessions
description: Triggered manually or by an app event. Connects Code, Condition, Google Sheets, Stop And Error, Switch, Telegram. # Telegram ChatBot with multiple sessions This workflow creates an **AI-powered Telegram chatbot** with **session management**, allowing users to: - **Start new conversations** (`/new`). - **Check current sessions** (`/current`). - **Resume past sessions** (`/resume`). - **Get summaries** (`/summary`). - **Ask questions** (`/question`). - Clone [this sheet]({{ $env.WEBHOOK_URL }} ## NEW SESSION ## GET CURRENT SESSION ## RESUME SESSION ## GET SUMMARY ## SEND QUESTION ## CHATBOT
category: Automation
kind: Workflow
software: Code|Condition|Google Sheets|Stop And Error|Switch|TelegramTelegram ChatBot with multiple sessions
Triggered manually or by an app event. Connects Code, Condition, Google Sheets, Stop And Error, Switch, Telegram. # Telegram ChatBot with multiple sessions
This workflow creates an AI-powered Telegram chatbot with session management, allowing users to:
- Start new conversations (
/new). - Check current sessions (
/current). - Resume past sessions (
/resume). - Get summaries (
/summary). - Ask questions (
/question).
- Clone [this sheet]({{ $env.WEBHOOK_URL }} ## NEW SESSION
## GET CURRENT SESSION ## RESUME SESSION ## GET SUMMARY ## SEND QUESTION ## CHATBOT
Steps
- OpenAI Chat Model (noOp)
- Simple Memory (noOp)
- Get message (telegramTrigger)
- Command or text? (switch)
- Get session (googleSheets)
- Disable previous session (googleSheets)
- Set new session (googleSheets)
- Session activated (telegram)
- Send response (telegram)
- Update database (googleSheets)
- Sticky Note (stickyNote)
- Summarization Chain (noOp)
- OpenAI Chat Model1 (noOp)
- OpenAI Chat Model2 (noOp)
- Basic LLM Chain (noOp)
- Get message1 (set)
- Set to expire (googleSheets)
- Exist? (if)
- Telegram (telegram)
- Telegram 1 (telegram)
- Trim resume (code)
- Get session1 (googleSheets)
- Prompt + Resume (code)
- Send summary (telegram)
- Get message2 (set)
- Trim question (code)
- Set new current session (googleSheets)
- Response + Text (googleSheets)
- fullText (code)
- Send answer (telegram)
- Send current session (telegram)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
- Sticky Note6 (stickyNote)
- Telegram Chatbot (noOp)
- Error Handler (stopAndError)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.