I Built My Own Agent Memory Database. Here's What It Actually Costs.
Description and use
<h1> I Built My Own Agent Memory Database. Here's What It Actually Costs. </h1> <p>My n8n lead-scoring agent kept forgetting. Every run woke up blind: no idea what it decided yesterday, no memory of which leads it had already contacted, nothing about the rules I'd corrected twice before. So I did what every operator does. I built my own memory database.</p> <p>Supabase project. A documents table with a pgvector column. A nightly pipeline: pull new rows from n8n's chat histories, summarize with a cheap model, embed, insert. A retrieval function exposed to the agent as a tool. It worked. And it
Problem
<h1> I Built My Own Agent Memory Database. Here's What It Actually Costs. </h1> <p>My n8n lead-scoring agent kept forgetting. Every run woke up blind: no idea what it decided yesterday, no memory of which leads it had already contacted, nothing about the rules I'd corrected twice before. So I did what every operator does. I built my own memory database.</p> <p>Supabase project. A documents table with a pgvector column. A nightly pipeline: pull new rows from n8n's chat histories, summarize with a cheap model, embed, insert. A retrieval function exposed to the agent as a tool. It worked. And it
Outcome
<h1> I Built My Own Agent Memory Database. Here's What It Actually Costs. </h1> <p>My n8n lead-scoring agent kept forgetting. Every run woke up blind: no idea what it decided yesterday, no memory of which leads it had already contacted, nothing about the rules I'd corrected twice before. So I did what every operator does. I built my own memory database.</p> <p>Supabase project. A documents table with a pgvector column. A nightly pipeline: pull new rows from n8n's chat histories, summarize with a cheap model, embed, insert. A retrieval function exposed to the agent as a tool. It worked. And it
Evidence
I Built My Own Agent Memory Database. Here's What It Actually Costs.
- Record date: 2026-09-22T16:45:34.729Z