Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Building a Self-Learning AI Agent with Long-Term Memory Using n8n

Michele Torti via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a self-learning AI agent using n8n that maintains long-term memory through Google Sheets integration and continuously improves through user interactions. Discover how to create an intelligent automation workflow that receives input via Telegram (supporting both text and audio messages), processes information using OpenAI's capabilities, and strategically decides when to store new knowledge versus simply responding to queries. Master the setup of Telegram triggers for seamless user communication, implement memory retrieval systems from Google Sheets databases, and handle multi-format input processing including audio transcription services. Explore the core logic that enables the AI agent to make autonomous decisions about learning new information, configure sophisticated AI prompts for intelligent responses, and develop memory management tools that allow the agent to evolve over time. Follow along with live demonstrations showing the complete workflow in action, from initial setup through advanced memory operations, while understanding the fundamental concepts behind persistent AI memory systems and automated learning mechanisms.

Syllabus

00:00 - Intro
00:31 - Live Demo
02:10 - The Problem
03:24 - The Core Concept
05:49 - Setting Up the Telegram Trigger
06:36 - Retrieving Existing Memories
08:52 - Handling Both Text & Audio Messages
10:54 - Transcribing Audio to Text with OpenAI
12:53 - Merging All Information
14:01 - Configuring the Main AI Prompt
15:41 - Creating the "Memory Tool
16:35 - Live Demo
18:58 - Outro

Taught by

Michele Torti

Reviews

Start your review of Building a Self-Learning AI Agent with Long-Term Memory Using n8n

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.