Generate Google Docs content from Telegram messages using AI
Workflow Description
Automation that receives messages from a Telegram channel via webhook, processes them through an AI agent with memory capabilities powered by OpenAI, and writes responses directly into Google Docs. Supports continuous conversations and intelligent text analysis.
How it works
- 1.Receive incoming message from Telegram via webhook trigger
- 2.Process text through OpenAI AI agent with access to conversation history
- 3.Write the generated response to the designated Google Docs document
Use cases
- Automatically document discussions and ideas from Telegram groups into a shared document
- Convert questions submitted via Telegram into organized answers stored in Google Docs
Requirements
- Active Telegram channel with configured webhook endpoint
- Google Docs document with edit permissions
- Valid OpenAI API key configured
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