Capture Telegram Messages in Google Docs Using AI Intelligence
Workflow Description
Receive Telegram messages via webhook, process them through an AI agent powered by OpenAI, maintain conversation history, and automatically save results to Google Docs. The agent learns from context to provide intelligent responses.
How it works
- 1.Trigger automation when new Telegram message arrives via webhook
- 2.Process message through AI agent with conversation memory to generate intelligent response
- 3.Create or update Google Docs with the AI-generated content
Use cases
- Convert Telegram team discussions into organized, timestamped records in Google Docs
- Build an intelligent assistant that answers Telegram inquiries and logs responses automatically
- Transform quick voice notes and ideas from Telegram into formatted documents with AI enhancement
Requirements
- Active Telegram account with configured bot token and webhook setup
- Google Workspace account with permissions to create and edit documents
- OpenAI API key to access GPT models for intelligent message 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