Connect Telegram with Google Docs
Workflow Description
Automates Telegram message capture and intelligent response using an AI agent that analyzes conversations and logs them directly to Google Docs. Features conversation memory, OpenAI integration, and structured documentation of all interactions in real time.
How it works
- 1.Receive incoming Telegram messages via webhook trigger
- 2.Process message through AI agent with memory buffer window
- 3.Analyze content and generate intelligent response using OpenAI
- 4.Write message and response to Google Docs document
- 5.Send response back to Telegram user
Use cases
- Automatically document customer support conversations in shared documents
- Create an intelligent chatbot that answers queries and maintains searchable conversation logs
Requirements
- Active Telegram bot with webhook configuration
- Google Docs project with edit permissions
- OpenAI API key configured
- n8n instance with AI Agent and Memory Buffer nodes enabled
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