AI Agents

Connect Google Docs with Telegram

21 nodes 294 172 Automatic trigger
Download

Workflow Description

An intelligent automation that connects Telegram with Google Docs using an AI Agent. The system receives messages on Telegram, processes them with OpenAI, retrieves relevant document content, and sends intelligent responses back to users while maintaining conversation history.

How it works

  1. 1.Receive incoming messages from Telegram through the chat trigger
  2. 2.Process messages with an OpenAI-powered intelligent agent
  3. 3.Retrieve relevant information from Google Docs using document tools
  4. 4.Send generated responses directly to the Telegram conversation
  5. 5.Store conversation context in memory for continuous interaction

Use cases

  • Provide instant answers to team questions about shared Google Docs
  • Automate information delivery from documents to Telegram without manual intervention

Requirements

  • Valid OpenAI API key with appropriate permissions
  • Google account with access rights to target Google Docs
  • Telegram Bot authentication token
  • Read and write permissions for document integration

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Chat Trigger OpenAI Memory Google Docs Telegram AI Agent

Details

Trigger Automatic trigger
Nodes 21
Apps 6
Views 294
Downloads 172

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (21)

/

When chat message received

Chat Trigger

#1

Sticky Note7

Sticky Note

#2

Sticky Note8

Sticky Note

#3

Sticky Note9

Sticky Note

#4

gpt-4o-mini

OpenAI

#5

Chat Response

Set

#6

Window Buffer Memory

Memory Buffer Window

#7

Save Long Term Memories

Google Docs Tool

#8

Retrieve Long Term Memories

Google Docs

#9

Sticky Note

Sticky Note

#10

Telegram Response

Set

#11

Sticky Note1

Sticky Note

#12

Sticky Note2

Sticky Note

#13

DeepSeek-V3 Chat

OpenAI

#14

AI Tools Agent

Agent

#15

Sticky Note10

Sticky Note

#16

Save Notes

Google Docs Tool

#17

Sticky Note11

Sticky Note

#18

Retrieve Notes

Google Docs

#19

Aggregate

Aggregate

#20

Merge

Merge

#21