Use cases

Email assistants that know your contacts and commitments

Give your email assistant memory of every correspondent, commitment and preference, plus search inside attachments, so drafts and answers reflect what the user knows.

An email assistant is only as good as what it knows about the person whose inbox it works in. Drafting a polite reply is the easy part. The useful part is knowing that this sender is the user’s accountant, that the user signs off with first name only to colleagues but in full to clients, that the invoice attached last Tuesday was already paid, and that the meeting this thread keeps circling was moved to Thursday. Without that, an assistant writes generic replies and asks the user to fill in the gaps, which is the work they wanted to hand over.

The model can write. What it lacks between sessions is a durable, accurate picture of the user’s correspondents, commitments and preferences, and a way to find the one attachment or paragraph that answers today’s question. This page covers the infrastructure that gives an email assistant that memory: how it is built from mail as it arrives, how it stays current, how attachments become searchable, and how each user’s data stays sealed off.

The problem

Email is the worst-shaped data an assistant can be asked to reason over. A single user can have tens of thousands of threads, each carrying quoted history, signatures, disclaimers and forwarded chains. The fact that matters, such as a new delivery address or a changed deadline, is usually one sentence buried in a long reply. No context window holds a whole inbox, and stuffing in the last fifty threads costs a great deal while mostly filling the prompt with signatures and quoted text the model has seen before.

Retrieval over raw threads helps a little, then runs into the same wall chat assistants hit. A vector search for “Sarah’s phone number” returns every thread where Sarah’s signature appears, including the one from before she changed jobs, and nothing tells the model which number is current. Preferences are worse, because they are rarely stated outright. The user never writes “I prefer morning meetings”; they decline three afternoon invitations and accept two morning ones. A user profile has to be built from behaviour and kept up to date as it changes.

Attachments are a separate problem. The answer to “what did the landlord’s contract say about notice periods?” lives in a PDF, not the email body, so an assistant that only reads message text cannot answer it. And every email assistant handles some of the most personal data a person has, which raises two more requirements: each user’s mail must be isolated from everyone else’s, and anything the assistant stores must be inspectable and removable.

What Exabase unlocks

With memory, document extraction, search and isolation underneath, an email assistant behaves like a capable person who has been working with the user for months.

A message arrives from a supplier asking to confirm a delivery. The assistant already knows the user’s company moved offices in September, retrieves the current delivery address as a single fact, and drafts the confirmation with it. It does not offer the old address, because when the move was mentioned in an earlier thread the new address superseded the old one. That is contradiction resolution at work, and it is the difference between memory and a search index over old mail.

The user asks, “What notice period did we agree with the landlord?” The assistant searches the attachments stored for that user, finds the clause on page 4 of the tenancy agreement, and answers with the sentence and the page reference. It does not paste the whole contract into the prompt.

Over a few weeks, the assistant picks up how the user writes. Short replies to the team, fuller ones to clients, no exclamation marks, “Best” as a sign-off. These are stored as preferences, so drafts start to sound like the user without a prompt full of example emails.

How it works

Four parts of Exabase carry an email assistant. Your application keeps the connection to the mail provider; Exabase holds what the assistant learns from it.

Memory

Exabase Memory turns mail into facts. As messages arrive, your app sends the cleaned body text, without quoted history and signatures, to Memory, and the M-1 engine extracts facts, preferences and events: who a correspondent is, what was agreed, what changed, which commitments are open. It links related facts and resolves contradictions, so changed addresses, moved meetings and new job titles replace their earlier versions. Where you know a fact exactly, such as a confirmed booking reference, you write it as a verbatim memory with infer set to false. Memories that should never change can be marked immutable.

Retrieval returns a few hundred tokens of relevant facts per request, using hybrid semantic and keyword search with recency weighting, in about 200ms for simple lookups. The ask endpoint goes a step further: send a natural-language question and Exabase retrieves the relevant memories, passes them to a model and returns an answer. M-1 scores 96.4% on LongMemEval and ranks first on BEAM at 100K, 1M and 10M tokens, which matters here because an inbox is exactly the kind of long, noisy history those benchmarks test. The episodic and semantic memory distinction is useful when deciding what to send: events like “invoice paid on 3 November” and lasting facts like “Sarah is the accountant” are both kept, and both retrieved when relevant.

Bases

A Base is an isolated environment with its own memory, file storage and search index. An email assistant creates one Base per user, or per mailbox for shared inboxes, and passes its ID on every request. A call scoped to one Base cannot reach another user’s data whatever the query says. The workspace explorer in the Exabase console lets you inspect what has been stored for a user, every memory carries creation and modification timestamps, and deleting a Base removes everything in it, which helps when a user disconnects their account. The free plan allows 100 Bases and paid plans allow 10,000.

Extract and Resources

Attachments go through Extract. PDFs, scanned documents, Word files and images come back as text chunks with page numbers, and invoices, resumes and contracts are recognised and returned with structured fields, such as an invoice’s vendor, number, due date, line items and total. Your app stores each attachment as a file in the user’s Base through the Resources API, where it is indexed for search the moment it is written. Notes the assistant writes, such as a weekly summary, are stored the same way.

Deep Search

Deep Search finds the passage inside stored attachments and notes. It is hybrid search, so “notice period” finds a clause headed “Termination by the tenant”, and it returns the matching chunk with its page number. A precision setting from 0 to 1 lets the assistant ask for one exact passage when answering a question, or a broad set when preparing a summary.

Example architecture

The design is a background write path that keeps memory current and a light read path when the user asks for something.

When a user connects their mailbox, create a Base for them and store its ID. If they want history, backfill a bounded window, for example the last 90 days, rather than the whole archive.

As each message arrives, strip quoted replies and signatures, then send the body to Memory. Submit attachments to Extract, use an extraction webhook to learn when each one is done, and save the file as a resource in the user’s Base.

When drafting a reply, retrieve memories about the sender and the thread’s topic, and put them in the prompt with the current message. When the user asks a question, run a Deep Search over their attachments and notes, or use the ask endpoint for questions about people and commitments.

Once a day, a Worker in the user’s Base can summarise new documents into a digest note, file attachments into folders by correspondent, and tag anything that looks like it needs a reply.

Mail flows in through your connector, facts go to Memory, documents go to Extract and Resources, and the assistant reads a small, relevant slice of each when it needs to act.

What compounds over time

An email assistant built this way improves with every message. In week one it knows a handful of facts. By month three it knows the user’s main correspondents and their roles, how the user writes to each of them, which suppliers are paid on which terms, and what is still outstanding. Because the memory consolidates duplicates and resolves contradictions as it grows, the profile gets sharper rather than noisier, and drafts need fewer edits.

The cost stays flat while that happens. A prompt built from a few hundred tokens of retrieved facts costs about the same in month three as in week one, where pasting recent threads would grow with the inbox. The reduce token costs solution shows the arithmetic. The attachment library compounds too, so every contract, invoice and statement the user receives stays findable by meaning.

Who’s building this

Teams building inbox copilots, executive and personal assistants, sales follow-up tools, customer success inboxes and finance assistants that work through invoices and statements by email. The memory pattern overlaps with our personal AI assistants and sales copilots use cases, and the attachment side with invoice processing and contract analysis.

Exabase is the memory, storage and search layer here, not the mail client. Reading and sending mail, deciding what to draft and filtering instructions hidden in incoming messages, a form of indirect prompt injection, stay in your application. Treat incoming mail as untrusted, and consider writing only facts you have checked as verbatim memories for anything that triggers an action.

Get started

Start with the getting started guide, then memory scoping for per-user isolation. The agent memory solution and the file extraction solution cover the two halves of the design, and the memory-powered personal assistant example walks through the add-and-retrieve loop in a small project. To compare options, see best agent memory platforms. The free plan includes 200 credits a month and up to 100 Bases, and current prices are on the pricing page.

Frequently asked questions

Does Exabase connect to Gmail or Outlook?

No, Exabase does not connect to mail providers directly. Your application reads mail through the provider’s API and sends message text to Memory and attachments to Extract.

How does the assistant learn a user’s preferences?

Memory extracts preferences from the content you send, such as how the user signs off or which meeting times they accept, and keeps them current as behaviour changes. You can also write a preference directly as a verbatim memory.

What happens when a contact’s details change?

The newer fact supersedes the older one when it is written. If a correspondent changes job or address, the assistant retrieves the current version rather than both.

Can the assistant search inside attachments?

Yes. Extract turns PDFs, scans, Word files and images into text chunks with page numbers, and Deep Search returns the matching passage with its page reference.

How is each user’s email kept private from other users?

Each user gets their own Base, and every request is scoped to it. Data in one Base is invisible to calls scoped to another, and the isolation is enforced at the infrastructure level.

Can a user delete what the assistant remembers?

Yes. Individual memories can be updated or deleted through the API, and deleting a user’s Base permanently removes their files, memories and search index.

Should I send whole threads to Memory?

Send the new message body without quoted history or signatures. Repeated quoted text adds cost without adding facts, and Memory already holds what earlier messages said.

Is Exabase compliant for handling email data?

Exabase is CASA certified with AES-256 encryption at rest and encryption in transit, and the Scale plan includes a zero data retention policy. Whether that meets your obligations for a particular deployment is a decision for your own legal and engineering review.

Related pages: Personal AI assistants, Sales copilots, Customer support agents, Voice agents, Agent memory solution, User profile, Preference learning, Agent memory, Best agent memory platforms, Chat history is not a user profile, AI companions

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.