← All N8N workflows
AI & researchAgentAggregateChat TriggerGoogle DocsGoogle Docs Tool

πŸ€–πŸ§  AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram

Configured with Agent, Aggregate, Chat Trigger, Google Docs, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen chat messagereceivedChat TriggerAI & modelsgpt-4o-miniOpenAI Chat ModelTransformChat ResponseEdit FieldsData storeWindow Buffer MemoryMemory Buffer WindowFiles / mediaSave Long Term MemoriesGoogle Docs ToolFiles / mediaRetrieve Long TermMemoriesGoogle DocsMessagingTelegram ResponseTelegramAI & modelsDeepSeek-V3 ChatOpenAI Chat ModelAI & modelsAI Tools AgentAgentFiles / mediaSave NotesGoogle Docs ToolFiles / mediaRetrieve NotesGoogle DocsTransformAggregateAggregateTransformMergeMerge

Node categories in this workflow

  • Trigger
  • AI & models
  • Transform
  • Data store
  • Files / media
  • Messaging

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and βˆ’ to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When chat message receivedTriggerChat TriggerSee node parameters
gpt-4o-miniAI & modelsOpenAI Chat ModelSee node parameters
Chat ResponseTransformEdit FieldsSee node parameters
Window Buffer MemoryData storeMemory Buffer WindowSee node parameters
Save Long Term MemoriesFiles / mediaGoogle Docs Toolupdate
Retrieve Long Term MemoriesFiles / mediaGoogle Docsget
Telegram ResponseMessagingTelegramSee node parameters
DeepSeek-V3 ChatAI & modelsOpenAI Chat ModelSee node parameters
AI Tools AgentAI & modelsAgentSee node parameters
Save NotesFiles / mediaGoogle Docs Toolupdate
Retrieve NotesFiles / mediaGoogle Docsget
AggregateTransformAggregateSee node parameters
MergeTransformMergeSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleDocsOAuth2Api
  • openAiApi
  • telegramApi

Workflow notes

Retrieve Long Term Memories

Retrieve Long Term Memories

Google Docs

Save Long Term Memories

Save Long Term Memories

Google Docs

Telegram

Telegram

(Optional)

Save Notes

Save Notes

Google Docs

Retrieve Notes

Retrieve Notes

Google Docs

πŸ€–πŸ§  AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram

πŸ€–πŸ§  AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram

Purpose and structure

This folder contains the πŸ€–πŸ§  AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram workflow. Its executable nodes use agent, aggregate, chatTrigger, googleDocs, googleDocsTool, lmChatOpenAi, memoryBufferWindow, merge, set, telegram. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When chat message received

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Telegram/2053_Telegram_Googledocs_Automate_Triggered.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Save To Current Chat Memory (Optional)
  • LLM
  • AI AGENT with Long Term Memory & Note Storage

More in AI & research