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

Retrieve Long Term Memories Google Docs

Workflow Structure (13 nodes)
100%
Google Docs
Retrieve Long Term Memories
Telegram
Telegram Response
Langchain.chat Trigger
When chat message received
Google Docs
Retrieve Notes
Merge
Merge
Aggregate
Aggregate
Langchain.lm Chat Open Ai
gpt-4o-mini
Langchain.lm Chat Open Ai
DeepSeek-V3 Chat
Langchain.agent
AI Tools Agent
Langchain.memory Buffer Window
Window Buffer Memory
Set
Chat Response
Google Docs Tool
Save Long Term Memories
Google Docs Tool
Save Notes
Node Types:
trigger
default
transform
action
logic
Requires credentials

Prerequisites

Required Credentials (3)

Google Docs

Used by: Save Long Term Memories, Retrieve Long Term Memories +2 more

Docs

OpenAI

Used by: gpt-4o-mini, DeepSeek-V3 Chat

Docs

Telegram

Used by: Telegram Response

Docs

Multiple services required

This workflow needs 3 different credentials. Make sure you have accounts for all services before importing.

Complexity

Complex

Advanced features used. Requires n8n experience.

Setup time: ~40 min
Score: 55/100
Conditional Logic
4 Integrations

When to Use This Workflow

Streamline Team Communication

Automatically route notifications and updates to the right channels and people.

Reduce information overload while keeping everyone informed.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "id": "QJZLBn9L6NbmjmLK",
  "meta": {
    "instanceId": "31e69f7f4a77bf465b805824e303232f0227212ae922d12133a0f96ffeab4fef"
  },
  "name": "πŸ€–πŸ§  AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram",
  "tags": [],
  "nodes": [
    {
      "id": "20a2d959-5412-447b-a2c4-7736b6b758b3",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -320,
        1600
      ],
      "webhookId": "8ba8fa53-2c24-47a8-b4dd-67b88c106e3d",
      "parameters": {
        "options": {}
      },
...

Workflow Details

Nodes
21
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

πŸ‹πŸ€– DeepSeek AI Agent + Telegram + LONG TERM Memory 🧠

Receive Telegram Message with Webhook

Telegram
Webhook
Agent
Memorybufferwindow
23 nodesWebhook
Curated

Agentic Telegram AI bot with LangChain nodes and new tools

Generate an image with Dall-E-3 and send it via Telegram

Lmchatopenai
Memorybufferwindow
Telegram
Telegramtool
8 nodesEvent
Curated

Angie, Personal AI Assistant with Telegram Voice and Text

Process Telegram Request

Googlecalendartool
Memorybufferwindow
Gmailtool
Lmchatopenai
15 nodesEvent
Curated

Telegram AI Langchain bot

Generate an image with Dall-E 3 and send it via Telegram

Lmchatopenai
Memorybufferwindow
Telegram
Executeworkflow
12 nodesEvent
Curated

Telegram AI multi-format chatbot

Receive and pre-process messages

Lmchatopenai
Memorybufferwindow
Telegram
Openai
15 nodesEvent
Curated

Basic Automatic Gmail Email Labelling with OpenAI and Gmail API

Gmail trigger Poll Gmail every x minutes, trigger when a new email is received. - Gmail API

Gmail
Lmchatopenai
Gmailtool
Agent
13 nodesEvent
Curated