AI Agents

Receive Telegram Messages and Store Them in Google Sheets

23 nodes 256 149 Automatic trigger
Download

Workflow Description

An automation that captures messages from Telegram users, processes them through an AI-powered agent, and automatically saves the data and conversation history in Google Sheets while delivering intelligent responses back to users.

How it works

  1. 1.Receive incoming messages from a Telegram channel or group via webhook
  2. 2.Process the message content through an AI agent that understands context and maintains conversation memory
  3. 3.Store the messages, metadata, and AI responses in connected Google Sheets tables
  4. 4.Send intelligent replies back to Telegram users based on agent processing

Use cases

  • Collect team feedback and customer inquiries directly from Telegram and automatically categorize them in spreadsheets
  • Build a smart chatbot that saves every interaction in Google Sheets for analytics and training purposes
  • Create an intelligent form that accepts Telegram responses and organizes them into structured data tables
  • Track customer requests and complaints through Telegram while maintaining a complete audit log in sheets

Requirements

  • Active Telegram bot with valid Access Token and webhook configuration
  • Google account with edit permissions on target Google Sheets
  • API key for LM Chat Open Router or compatible natural language processing service

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 256
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