Telegram ChatBot with multiple sessions

Automated workflow: Telegram ChatBot with multiple sessions. This workflow integrates 14 different services: telegramTrigger, stickyNote, telegram, code, agent. It contains 57 nodes and follows best practices for error handling and security.

Integrations Used (2)

Workflow Structure (32 nodes)
100%
Telegram Trigger
Get message
Google Sheets
Get session
Switch
Command or text?
Set
Get message1
Telegram
Send current session
Google Sheets
Disable previous session
Code
Trim resume
Google Sheets
Set new session
Google Sheets
Set to expire
Telegram
Session activated
Google Sheets
Set new current session
If
Exist?
Telegram
Telegram
Telegram
Telegram 1
Google Sheets
Get session1
Set
Get message2
No Op
OpenAI Chat Model
No Op
Telegram Chatbot
No Op
Simple Memory
Code
Prompt + Resume
Code
Trim question
Stop And Error
Error Handler
No Op
OpenAI Chat Model1
No Op
Summarization Chain
Telegram
Send response
Google Sheets
Response + Text
Google Sheets
Update database
Telegram
Send summary
Code
fullText
No Op
OpenAI Chat Model2
No Op
Basic LLM Chain
Telegram
Send answer
Node Types:
default
trigger
logic
action
transform
code
Requires credentials

Prerequisites

Required Credentials (3)

Google Sheets

Used by: Get session, Disable previous session +6 more

Docs

OpenAI

Used by: OpenAI Chat Model, OpenAI Chat Model1 +1 more

Docs

Telegram

Used by: Get message, Session activated +6 more

Docs

Multiple services required

This workflow needs 3 different credentials. Make sure you have accounts for all services before importing.

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~50 min
Score: 80/100
Custom Code
Conditional Logic
5 Integrations

When to Use This Workflow

Streamline Team Communication

Automatically route notifications and updates to the right channels and people.

Reduce information overload while keeping everyone informed.

Automated Reporting

Automatically collect and organize data into spreadsheets for analysis.

Spend less time on data entry and more time on insights.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

workflow.json
{
  "id": "A7dRnMf9WybO8O02",
  "meta": {
    "instanceId": "workflow-b9054815",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:56.818961",
    "updatedAt": "2025-09-29T07:07:56.818978",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Telegram ChatBot with multiple sessions",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
...

Workflow Details

Nodes
39
Trigger
Event
Source
community
Added
Sep 29, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Stickynote Workflow

Automated workflow: Stickynote Workflow. This workflow integrates 9 different services: stickyNote, telegramTrigger, tel...

Telegram
Google-sheets
11 nodesEvent

BillBot

Production-ready workflow: BillBot. This workflow has been optimized for production use with comprehensive error handlin...

Telegram
Http-request
Google-sheets
Twilio
7 nodesEvent

Stickynote Workflow

Automated workflow: Stickynote Workflow. This workflow integrates 8 different services: telegramTrigger, stickyNote, wai...

Telegram
Google-sheets
24 nodesEvent

Template - SSL Expiry Alert System

Automated workflow: Template - SSL Expiry Alert System. This workflow integrates 9 different services: stickyNote, httpR...

Google-sheets
Schedule
Http-request
Gmail
21 nodesScheduled

Extract spend details (template)

A. Get data - Set up labels in Gmail - Suggested using Gmail filters to move emails to labels automatically

Gmail
Outputparserstructured
Lmchatgooglegemini
Google-sheets
24 nodesEvent
Curated

Contact Form Text Classifier for eCommerce

Important notes This very simple workflow is ideal for eCommerce businesses or customer support teams looking to automat...

Form
Textclassifier
Lmchatopenai
Emailsend
14 nodesEvent
Curated