AI Agents

Connect Telegram with Google Sheets

23 nodes 254 149 Automatic trigger
Download

Workflow Description

An intelligent automation that connects Telegram conversations with Google Sheets, where an AI agent receives, processes, and stores messages automatically. The system maintains conversation history in memory and provides smart responses based on context.

How it works

  1. 1.Receive message from Telegram via chat trigger
  2. 2.Process the message using an AI agent connected to OpenRouter LM
  3. 3.Store message and response in Google Sheets automatically
  4. 4.Manage conversation history using memory buffer window
  5. 5.Send intelligent response back to user via Telegram

Use cases

  • Record all customer inquiries and answers in an organized spreadsheet
  • Build a conversation database to analyze patterns and drive continuous improvement

Requirements

  • Active Telegram account with configured bot and valid token
  • Google Sheets with proper structure including columns for question, answer, and timestamp
  • Valid OpenRouter API key to power the language model

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Telegram Google Sheets AI Agent Chat Trigger Lm Chat Open Router Memory

Details

Trigger Automatic trigger
Nodes 23
Apps 6
Views 254
Downloads 149

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (23)

/

SendTyping

Set

#1

SetResponse

Set

#2

Settings

Set

#3

Schedule

Google Sheets

#4

ScheduleToMarkdown

Code

#5

ScheduleBot

Agent

#6

n8nChatSettings

Set

#7

telegramChatSettings

Set

#8

telegramInput

Set

#9

n8nInput

Chat Trigger

#10

Switch

Switch

#11

telegramResponse

Set

#12

n8nResponse

No Op

#13

LLM

Lm Chat Open Router

#14

Memory

Memory Buffer Window

#15

Sticky Note

Sticky Note

#16

Sticky Note1

Sticky Note

#17

Sticky Note2

Sticky Note

#18

Sticky Note3

Sticky Note

#19

Sticky Note4

Sticky Note

#20

Sticky Note5

Sticky Note

#21

Sticky Note6

Sticky Note

#22

Sticky Note7

Sticky Note

#23