AI Agents

Connect Telegram with Google Docs

23 nodes 232 143 Webhook
Download

Workflow Description

An intelligent automation that bridges Telegram conversations with Google Docs using an advanced AI agent. Receives messages from Telegram, processes them with artificial intelligence, stores conversations in a linked Google Docs file while maintaining context and memory across sessions.

How it works

  1. 1.Receive incoming message via Telegram webhook trigger
  2. 2.Process message through AI agent leveraging conversation memory buffer
  3. 3.Write message and AI response to the connected Google Docs document

Use cases

  • Create a shared team repository of important Telegram discussions
  • Build an intelligent searchable archive of conversations with AI insights
  • Automate capturing ideas and decisions from Telegram group chats

Requirements

  • Valid webhook URL configured with Telegram Bot API credentials
  • Google account with write permissions to target Google Docs file
  • OpenAI API key to power the intelligent agent processing

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Telegram AI Agent Memory Chat Trigger Google Docs OpenAI

Details

Trigger Webhook
Nodes 23
Apps 6
Views 232
Downloads 143

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)

/

Check User & Chat ID

If

#1

Error message

Set

#2

Sticky Note

Sticky Note

#3

Listen for Telegram Events

Webhook

#4

Sticky Note1

Sticky Note

#5

Validation

Set

#6

Sticky Note4

Sticky Note

#7

Message Router

Switch

#8

AI Agent

Agent

#9

Merge

Merge

#10

Window Buffer Memory

Memory Buffer Window

#11

When chat message received

Chat Trigger

#12

Sticky Note10

Sticky Note

#13

Telegram Response

Set

#14

Save Long Term Memories

Google Docs Tool

#15

Sticky Note3

Sticky Note

#16

Retrieve Long Term Memories

Google Docs

#17

Sticky Note5

Sticky Note

#18

Sticky Note6

Sticky Note

#19

Response Error message

Set

#20

Sticky Note12

Sticky Note

#21

DeepSeek-R1 Reasoning

OpenAI

#22

DeepSeek-V3 Chat

OpenAI

#23