Sales Example Memory API · 5 min read

Every deal remembered, call after call

A deal is months of calls and emails with several people on the buyer's side. Here is how a sales product gives its agents, AI or human, a memory of each account: who said what, what they need, what changed and what was promised.

This is an example of how the Memory API fits this kind of product, not a case study of a named customer. The numbers we quote as measured are ours; the time saved is arithmetic you can redo with your own figures.

The situation

Picture a software company with an AI sales agent that answers inbound leads and books meetings, and account executives who take the deals from there. One account is a logistics firm. In September its operations lead wanted 50 seats and a pilot in January. In October a new finance director joined and asked for annual billing. In November the pilot moved to March after their audit.

The CRM has a stage and an amount. The rest is spread across call notes, emails and the AI agent's chats. When the account changes hands, or the AI agent sends a follow-up, it works from the September picture.

What they build

The company keeps its own sales product and agents. localmem is the memory layer behind them, reached through an API from the product's backend. Each account is one localmem customer, held apart from every other.

  1. Every call and thread goes in. Call summaries, email threads and the AI agent's conversations go to documents.send, each dated when it happened.
  2. localmem reads it into facts. "Pilot planned for March", "Finance director wants annual billing", "Security review needs our SOC 2 report". Each fact keeps the call or email it came from.
  3. A newer fact replaces an older one, and the older one is kept. When the pilot moves from January to March, January is marked replaced, with the date and the email that moved it.
  4. The agent asks before it writes. Before a call, a follow-up or a proposal, the product searches the account's memory and gives the agent what holds today.

In code

import { Memory } from "@localmem/memory";
const lm = new Memory();

// One localmem customer per account, by your CRM's account id.
const { tenant } = await lm.customers.create("acct-logistics-0192");

// After each call.
await lm.documents.send(tenant, {
  text: callSummary,
  as_of: "2026-11-04T15:00:00Z",
});

// Before the AI agent drafts the follow-up.
const now = await lm.search(tenant, { query: "Who decides, what they need, and what is still open" });

// What the buyer had asked for when the first proposal went out.
const then = await lm.search(tenant, {
  query: "Seats, start date and billing the buyer asked for",
  at_time: "2026-09-30T00:00:00Z",
});

What the memory holds

Not a pile of call notes: each account's facts, as they stand and as they stood.

Pilot: March 2027, after the buyer's audit
Pilot: January 2027
Changed 4 November 2026, from "Email from the operations lead". January held from 12 September to 4 November.

Where it helps

MomentWithout a memory layerWith localmem
Before a callReread notes and emails, or go in coldWho decides, what they need and what changed, with sources
An AI follow-upGeneric, or based on the first callWritten from what holds today on this account
An account changes handsA handover call and gapsThe whole history, with what changed and why
A proposalBuilt from memory of the callsAnswers what the buyer actually asked for

What it could save

Say an account executive has 8 calls a day and spends 10 minutes preparing each one. That is over an hour a day. If the memory gives back even half, each executive gains more than three hours a week for selling, and buyers stop being asked what they already said.

Accounts themselves are free. One flat monthly plan covers them all, by what the memory reads and answers each month, with a pack when a busy month runs over. Nothing is charged per account.

These are assumptions for the arithmetic, not measurements. Put in your own call volume and minutes.

What we have measured

18 of 20questions about what was true on a past date answered right, in a trial on real meeting records
22 of 22isolation checks passed: no customer's memory showed in another's
20 of 24facts recalled in our first live customer's own check, in production

Those three are what matter for sales: the answer about what a buyer wanted on a past date is right, one account's terms never show up in another's, and what your team wrote comes back before the next call.

Measured by us between 30 October and 10 November 2026, not an independent benchmark.

Good to know

Give your sales agents a memory of every account

Testing is free, always. Live, one flat plan, monthly or yearly, with your customers free and 3 months free on a year.