Process Telegram inquiries and retrieve Google Docs content intelligently
Workflow Description
An AI agent receives messages from Telegram, analyzes them using OpenAI, retrieves relevant information from Google Docs, and sends automated responses. It maintains conversation history to provide contextual and accurate answers.
How it works
- 1.Receive user inquiries from Telegram using a chat trigger
- 2.Analyze the message with OpenAI while maintaining conversation memory
- 3.Search and extract relevant data from Google Docs
- 4.Send intelligent responses back to the user via Telegram
Use cases
- Answer employee questions based on company policies stored in Google Docs
- Process customer requests in real-time by accessing shared documents
- Create automated reports from Telegram and update documentation
Requirements
- Active Telegram account with a valid bot token
- OpenAI API key with sufficient usage quota
- Edit permissions for the target Google Docs files
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 (21)
When chat message received
Chat Trigger
Sticky Note7
Sticky Note
Sticky Note8
Sticky Note
Sticky Note9
Sticky Note
gpt-4o-mini
OpenAI
Chat Response
Set
Window Buffer Memory
Memory Buffer Window
Save Long Term Memories
Google Docs Tool
Retrieve Long Term Memories
Google Docs
Sticky Note
Sticky Note
Telegram Response
Set
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
DeepSeek-V3 Chat
OpenAI
AI Tools Agent
Agent
Sticky Note10
Sticky Note
Save Notes
Google Docs Tool
Sticky Note11
Sticky Note
Retrieve Notes
Google Docs
Aggregate
Aggregate
Merge
Merge