Skip to content

akshaykarthicks/Context-Memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Telegram-based AI Chatbot with Context Memory using n8n + Zep + OpenRouter

This workflow implements a Telegram bot using n8n that connects users to an AI assistant powered by OpenRouter (LLMs), Zep and Postgres. It processes messages in real time and responds contextually using user-specific memory.

image image

πŸš€ Features

  • βœ… Telegram Bot Trigger
  • 🧠 AI Agent powered by LangChain + OpenRouter (e.g., Mistral 7B)
  • πŸ“₯ User input processed with Zep Graph API
  • 🧾 Fact extraction via Code Node
  • 🧠 Long-term memory using:
    • Zep memory vector store
    • Postgres memory (optional)
  • πŸ“€ Responses sent back to the user
  • 🧠 Memory updates stored after each interaction

πŸ› οΈ Technologies Used

  • n8n (workflow automation)
  • Telegram Bot API
  • OpenRouter API
  • Zep (vector memory & user graph)
  • LangChain Nodes for n8n
  • Postgres DB (for hybrid memory)
  • JavaScript (for fact extraction)

πŸ“Œ Setup Instructions

  1. Clone or import this workflow JSON into your n8n instance.
  2. Set up the following credentials in n8n:
    • Telegram API
    • Zep API
    • OpenRouter API
  3. Start the Telegram bot and interact with it via chat.
  4. Incoming queries are enriched with facts from Zep, processed by LLMs, and memory is updated per session.

About

Telegram-based AI Chatbot with Context Memory using n8n + Zep + OpenRouter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published