Process Telegram messages and document them in Google Docs with AI
Workflow Description
Automation that receives messages from Telegram via webhook, processes them through an AI agent with conversation memory, then formats the results and automatically appends them to a designated Google Docs document.
How it works
- 1.Receive Telegram message through webhook and trigger the workflow
- 2.Process text using AI agent while maintaining conversation history context
- 3.Write the final output to Google Docs
Use cases
- Document team notes and ideas from Telegram directly into a shared document
- Create an adaptive journal or memo log that evolves based on Telegram messages
- Collect customer questions from a Telegram channel and store AI-generated responses
Requirements
- Active Telegram account with configured webhook endpoint
- Valid OpenAI API key
- Write permissions on the target Google Docs document
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