AI Agent Chatbot with Long Term Memory and Note Storage for Telegram
detail.loadingPreview
An AI chatbot that uses long-term memory and note storage for personalized Telegram interactions.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow enables an AI agent to interact with users via Telegram, leveraging both short-term and long-term memory, as well as a note-taking system. It processes incoming chat messages, retrieves and stores information in Google Docs for long-term memory, and responds to users, creating a more personalized and context-aware chat experience.
Key Features
- Integrates with Telegram for chat input and output.
- Utilizes OpenAI's GPT models for AI capabilities.
- Implements a window buffer memory for short-term context.
- Stores and retrieves long-term memories using Google Docs.
- Supports saving distinct notes separately from memories.
- Configurable system message to define the AI's role and rules.
How To Use
- Set up Telegram Bot: Create a Telegram bot and obtain the API token.
- Configure OpenAI Credentials: Set up your OpenAI API credentials.
- Configure Google Docs Credentials: Set up your Google Docs OAuth2 API credentials and ensure the bot has access to the specified Google Doc.
- Set Environment Variable: Define the
BASE_URLenvironment variable to point to your Google Doc. - Configure Chat ID: Replace
1234567891in the Telegram Response node with your actual Telegram Chat ID. - Customize System Message: Modify the
systemMessagein the AI Tools Agent node to define the AI's persona, rules, and memory/note management strategies. - Trigger Workflow: Manually trigger the workflow or set up an external trigger for incoming Telegram messages.
Apps Used
Workflow JSON
{
"id": "cc20aee6-fa62-43d8-bbad-040bb0fd70eb",
"name": "AI Agent Chatbot with Long Term Memory and Note Storage for Telegram",
"nodes": 0,
"category": "AI & Machine Learning",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: cc20aee6-fa62...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Telegram AI Chatbot with Long-Term Memory and Note Storage
Build a sophisticated Telegram chatbot powered by AI, capable of maintaining long-term memory and storing notes using Google Docs. This workflow leverages Langchain and n8n nodes to create an intelligent conversational agent.
Create an AI-Powered Telegram Bot with Langchain and DALL-E 3
Build a sophisticated Telegram bot using n8n, integrating Langchain for AI conversation and DALL-E 3 for image generation. This workflow allows for dynamic chat interactions and creative image creation directly through Telegram.
Build a Conversational AI Agent with LangChain, Tools, and Memory in n8n
This workflow demonstrates how to create an intelligent AI agent using LangChain in n8n. It leverages an OpenAI model, buffer memory for conversation history, and external tools like Wikipedia and SerpAPI for enhanced responses. The 'On new manual Chat Message' node initiates the agent's interaction.
Telegram AI Langchain Bot with DALL-E 3 Image Generation
An n8n workflow that acts as a Telegram bot, powered by Langchain, for AI chat interactions and image generation using DALL-E 3.
Automated Car Insurance Quote Generator with AI and Vector Store
This n8n workflow generates car insurance quotes using an AI agent. It leverages LangChain nodes like Webhook, Text Splitter, Embeddings, and Vector Store (Pinecone) to process and retrieve relevant information, then logs the results to a Google Sheet.
AI-Powered Company Research and Enrichment for Google Sheets
Leverage AI with OpenAI and LangChain to automatically research companies, extract key data like domain, market, and pricing, and update Google Sheets. This workflow uses the 'OpenAI Chat Model', 'get_website_content' tool, and 'SerpAPI - Search Google' to enrich your data.