Connect Telegram with Google Docs
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.Receive incoming message via Telegram webhook trigger
- 2.Process message through AI agent leveraging conversation memory buffer
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (23)
Check User & Chat ID
If
Error message
Set
Sticky Note
Sticky Note
Listen for Telegram Events
Webhook
Sticky Note1
Sticky Note
Validation
Set
Sticky Note4
Sticky Note
Message Router
Switch
AI Agent
Agent
Merge
Merge
Window Buffer Memory
Memory Buffer Window
When chat message received
Chat Trigger
Sticky Note10
Sticky Note
Telegram Response
Set
Save Long Term Memories
Google Docs Tool
Sticky Note3
Sticky Note
Retrieve Long Term Memories
Google Docs
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Response Error message
Set
Sticky Note12
Sticky Note
DeepSeek-R1 Reasoning
OpenAI
DeepSeek-V3 Chat
OpenAI