Skip to main content

πŸ€–πŸ§  AI agent chatbot + LONG TERM memory + note storage + Telegram

Workflow preview

Workflow preview
100%
πŸ€–πŸ§  AI agent chatbot + LONG TERM memory + note storage + Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow template creates an AI agent chatbot with long term memory and note storage using Google Docs and Telegram integration. Google Docs Integration [n8n Google Docs Node Setup](https:/...

Best for

  • Personal Productivity automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.googledocstool, n8n-nodes-base.googledocs, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Joseph LePage.

Original n8n.io source

1.1 Workflow description

Title
πŸ€–πŸ§  AI agent chatbot + LONG TERM memory + note storage + Telegram
Workflow name
πŸ€–πŸ§  AI agent chatbot + LONG TERM memory + note storage + Telegram

This workflow template creates an AI agent chatbot with long-term memory and note storage using Google Docs and Telegram integration.

Google Docs Integration πŸ“„

n8n Google Docs Node Setup Google Credentials

Telegram Integration πŸ’¬

Telegram Setup

Core Features 🌟

AI Agent Integration πŸ€–

  • Implements a sophisticated AI agent with memory management capabilities
  • Uses GPT-4o-mini and DeepSeek models for intelligent conversation handling
  • Maintains context awareness through session management

Memory System 🧠

  • Long-term memory storage using Google Docs
  • Separate note storage system for specific information
  • Window buffer memory for maintaining conversation context
  • Intelligent memory retrieval and storage mechanisms

Communication Interface πŸ’¬

  • Telegram integration for message handling
  • Real-time message processing and response generation

Technical Components πŸ”§

Memory Architecture πŸ“š

  • Dual storage system separating memories from notes
  • Automated memory retrieval before each interaction
  • Structured memory saving with timestamps

AI Models πŸ€–

  • Primary GPT-4o-mini mini model for general interactions
  • DeepSeek-V3 Chat for specialized processing
  • Custom agent system with tool integration

Storage Integration πŸ’Ύ

  • Google Docs integration for persistent storage
  • Separate document management for memories and notes
  • Automated document updates and retrievals

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - gpt-4o-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.1

Block 6 - Chat Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Window Buffer Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 8 - Save Long Term Memories

Type / Role
n8n-nodes-base.googleDocsTool - googleDocsTool
Config choices
Version 2

Block 9 - Retrieve Long Term Memories

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Telegram Response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - DeepSeek-V3 Chat

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.1

Block 15 - AI Tools Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 16 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Save Notes

Type / Role
n8n-nodes-base.googleDocsTool - googleDocsTool
Config choices
Version 2

Block 18 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Retrieve Notes

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 20 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 21 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

3. Summary Table

Workflow πŸ€–πŸ§  AI agent chatbot + LONG TERM memory + note storage + Telegram
Complexity advanced
Nodes 21
Categories Personal Productivity, AI Chatbot
Author Joseph LePage
Published 09 Feb 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2872/2872.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does πŸ€–πŸ§  AI agent chatbot + LONG TERM memory + note storage + Telegram do?

This workflow template creates an AI agent chatbot with long term memory and note storage using Google Docs and Telegram integration. Google Docs Integration [n8n Google Docs Node Setup](https:/...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, AI Chatbot use case.