Connect Telegram with Google Docs
Workflow Description
Automation that receives Telegram messages via webhook, processes them with an AI agent powered by OpenAI while maintaining conversation memory, then writes results directly to a specified Google Docs document in real time.
How it works
- 1.Receive message from Telegram through webhook and store it in temporary memory buffer
- 2.Process text with an intelligent agent using OpenAI model for understanding and generating responses
- 3.Write outputs and conversation history to Google Docs automatically
Use cases
- Document Telegram conversations in a centralized document with real-time updates
- Collect team ideas and notes from Telegram and save them organized in Docs
- Create smart daily journals supporting two-way dialogue while preserving context
Requirements
- Active Telegram account and bot token available for authentication
- Google Docs document with write permissions and Google Docs tool configured in n8n
- Valid OpenAI API key and current model version (GPT-3.5 or higher)
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