Memory
How an agent remembers each person across chats, Talk and calls — when memory is read and where it reaches prompt and flow agents, every channel, the settings, what to remember and what is never kept, the prompt lines that make the agent use it, what every conversation teaches the next one, the SDK calls, a five-minute test, and troubleshooting.
With memory on, the agent keeps short facts about each person it talks to — a preference, an open complaint, what it promised to do — and reads them at the start of their next conversation, wherever that happens: in your app, on your website or on a phone call. It works the same for prompt agents, agents with a knowledge base and flow agents. Saving happens in the background, so it never slows a reply, and what the agent remembers about one person is never used with anyone else.
How memory works
Who, notice, save, ready, recall: the agent learns during one conversation and starts the next one knowing it.
| Question | Answer |
|---|---|
| When is memory read? | At the start of each chat, Talk session or call, before the agent's first reply. The facts stay in front of the model for the whole conversation |
| Is it read again during the conversation? | Only when the person refers to an earlier conversation — “last time”, “I told you”, “pichli baar”, “yaad hai” and similar phrases, in English, Hindi and the main Indian languages (an everyday “before” or “pehle” is not one) — and then the agent looks its memory up before it answers: at most three times in a conversation, holding a call's reply at most 0.8 seconds and a chat's at most 1 second. What the look-up finds after that is used from the person's next turn. Anything else said in this conversation, the agent already knows from the conversation itself. |
| When is a new fact available? | In the person's next conversation, about a minute after this one ends |
| How much is read? | Up to four short notes on where things stand with the person, then up to 15 remembered facts — the newest, followed when there are more by the earliest that still hold (a name, a language, a standing preference) — about 1,500 characters in all |
| What if memory is slow? | The conversation starts on time without it: the start waits at most 1.5 seconds for memory, then goes ahead. If who the person is cannot be confirmed in that time (for an app user, their device), the conversation is not remembered either, and Call History says why |
- Learning runs in the background, every four of the person's turns and once more when the conversation ends. What they said counts even if they hang up or interrupt before the agent finishes replying (this arrives with the next server update). Turns that say nothing worth keeping — “ok”, “thank you”, a greeting, random letters — are not sent for saving at all. Sensitive details are removed first (what is removed). Facts are written in plain English, and a relative time such as “tomorrow at 6” or “on Friday” is saved as the actual date and time in the person's time zone. What the person agrees to is saved with what they were asked, so a “yes” keeps its meaning.
- Nothing in it can break a conversation. Memory that cannot be read or saved is skipped, and the conversation carries on.
Prompt agents and flow agents
Memory works the same way for every kind of agent. A prompt agent and a flow agent get the same recall when a conversation starts, the same look-up when the person brings up an earlier conversation, and the same saving as the conversation goes on. The only difference is where the block goes: after a prompt agent's prompt, or after a flow's Briefing. Every AI reply step reads the Briefing, so whichever step is talking knows the person. This is the block every agent receives:
The first lines are the notes on where things stand with the person (What works), at most four: their latest conversation (where — “On a phone call”, “On an in-app voice call” or “On the app chat” — and when, the topic, how it ended and what is still open), a promise still open, the language they prefer, earlier conversations when there is room and, last, when it applies, what has worked on that topic. The remembered facts follow, one per line. Facts the agent finds when it looks again during the conversation are added under “Also known about this person:”.
| Agent | Where the block goes | What it means for you |
|---|---|---|
| Prompt agent | After the agent's prompt | Every reply in the conversation can use it |
| Prompt agent with a knowledge base | After the agent's prompt, beside the knowledge it looks up | The same as a prompt agent |
| Flow agent | After the flow's Briefing (Settings › The agent), which every step reads before its own instructions | Whichever step the conversation is on, it can use the facts. Put general rules about memory in the Briefing, and rules for one step in that step's instructions |
The block also tells the model how to use it: this conversation comes first — what the person says now, the values your app or your campaign sent, the agent's instructions; pick up what was left open or promised, and confirm it before acting on it; use their preferences without asking again; never read the lines out; and on a phone call, raise nothing personal until it knows the right person answered. Your prompt decides anything more specific: Make the agent use what it remembers.
In a flow agent, choosing the next step reads that step's conversation and your path rules, not the block itself. Memory still steers it: it shapes what the agent says in the step, and that conversation is what the path is chosen from.
Both kinds switch memory on in the same place, Agent → Memory → Settings. A prompt agent:

A flow agent:

Every channel
Memory works the same way on every channel, for an agent with memory on.
| Channel | Who the person is | Memory read | Facts saved |
|---|---|---|---|
| Chat in your app or on your website | The identifier your app sends — Identity and users | At the start of each chat | Every four of their turns, and when the chat ends |
| Talk — voice in your app or on your website | The identifier your app sends | At the start | The same |
| In-app calls in both directions, over WebRTC or the WebSocket | The identifier your app sends | At the start of the call | The same |
| Phone calls — inbound, outbound, a campaign | The caller's phone number | At the start of the call | The same |
| Calls the agent, the person or your team booked | The person the call rings | At the start of the call | The same |
| No identifier, a test from the dashboard, a device past the person's limit | Nobody | Never | Never |
On every channel the agent also looks again during the conversation when the person brings up an earlier one.
One person, several IDs
A person can be known by more than one ID: the user ID your app sends, a field of your own such as a customer
ID, their email, their phone number. Linked, they are one person, and their memory is found by any of them, on
the same agent or on agents set to share memory. New memories are kept under one of the IDs, the Main ID. An
ID is linked by your server (POST /v2/people/identifiers), or
by a verified sign-in: when your app proves the user with an ID token whose issuer verified an email
(email_verified: true) or a phone number (phone_number_verified: true), that email or number is linked
to them (a flag signed as the text "true", as some issuers do, counts too). An unverified one never is. A linked
phone number stops finding the person after 90 days with no conversation under it unless it is verified again,
because numbers are reissued; the memory under the person's other IDs stays.
People, or Agent → Memory → People, → a person: Linked IDs lists the kind, how and when each was linked, and the Main ID their memory is kept under. Only a fingerprint of each ID is stored, never the ID itself.
An Admin can link one by hand there, for someone found by their phone number too: Link another ID, choose the kind (phone number, email, user ID or your own field), type it, and Link. Only link an ID you know is theirs: their memories are found by it from then on. To unlink one, type it in its row and choose Unlink. An ID that already belongs to someone else is refused, and nothing changes.
Chat in your app
The chat in your app or on your website is with the person your app identified. Memory is read when the chat starts, before the agent's first reply, and again when the person refers to an earlier conversation. New facts are saved every four of their turns and when the chat ends. A chat that continues an earlier conversation reads memory as usual (Conversations continue).
Talk
Voice in your app or on your website works like the chat: the same identity, memory read at the start of each Talk session and saved the same way. A chat and a Talk session with the same person share one memory.
In-app calls, both directions
A call the person places from your app, and a call Graine rings for them — booked by the agent, the person or your team — is with the person your app identified, over WebRTC or the WebSocket alike. Memory is read when the call starts, the same memory as the person's chats, and saved the same way.
A ring can wake your app before it says who the user is. Call identify as early as you can at launch, not on a
screen, so the call knows from the start. If it comes too late, the call still runs as the person it was booked for,
on the phone Graine rang, when the booking allowed memory. Arrives with the next server update.
Phone calls
Inbound, outbound and campaign calls are with the caller's phone number: that is who the person is, whatever Who is the user? says. Memory is read at the start of the call and saved the same way. A call booked to a phone number uses the number it rings. A call with no caller number (withheld or hidden) is not remembered. In an A/B test, every variant's calls share the original agent's memory. What an agent remembered about a caller before this version of memory is still recalled, and moves into the person's memory after their next call.
One person in the app and on the phone. The app's identity and the phone number are
remembered as two people until something ties them together: the number is
linked to them, or Who is the user? is Phone number and
your app sends the number as phone with identify. Either way, the calls must reach
the same agent, or agents set to share memory.
Memory never mixes people. A conversation with no identity remembers nothing and recalls nothing. There is no shared memory for unknown customers, so one person's details can never surface in another's conversation. An app on an SDK that does not pass an identifier gets no memory in its conversations.
Conversations continue
Memory keeps facts; this keeps the conversation itself. A customer who comes back — later that day, next week, on another of their devices — finds their chat where they left it, the way a messaging app keeps a thread, and the agent picks up from it.
| What is kept | The last 50 messages between the customer and each agent: what they typed, the agent's replies, and what was said on calls in your app or on your website, each with when it was said |
| For how long | 7 days after the latest message — each new message starts the 7 days again |
| Each agent its own | One agent never shows another's conversation, even when the two share memory |
| For whom | Exactly the customers memory applies to: identified, memory on for the agent and for them, on one of their devices. An anonymous conversation, a dashboard test and a phone call keep nothing — a phone call keeps memories only |
When they come back:
- In the chat, the window opens on the conversation: the earlier messages, a voice call as one row, a date line where the day changes. There is no second welcome message — the agent continues, and the customer types next.
- On a call, the agent greets them as on any new call, and knows the latest 20 messages, so it carries on rather than starting over. Its memories are recalled as usual.
- If the earlier messages cannot be read in time, the conversation starts fresh rather than keep the customer waiting.
Forgetting the customer — forgetMemory() in your app, Forget this person
in the dashboard — deletes these messages with the memories. From your app, a
forgetMemory() that succeeds also clears the chat on screen; one that fails
leaves the chat as it is (Forgetting). Turning memory off for them
(setMemory(false)) stops keeping and showing them, and deletes nothing, as with
memories.
On an SDK before 0.7.0 the chat window does not show the earlier messages; the agent still continues from them. The chat window's side: Chat → Coming back to a conversation.
The memory settings
Agent → Memory has three tabs: People, where you find a person by search, Settings and What works. The settings are under Agent → Memory → Settings, and each agent has its own. Embed & Widgets → People & memory has the memory switch, Who is the user? and Devices per user too, beside Find a person and Go to Memory → People.

| Setting | What it does | Good to know |
|---|---|---|
| Remembers people across chats and calls | Turns memory on for this agent, on every channel: in your app, on your website and on the phone. Off by default | Off: nothing is read or saved |
| Who is the user? | Which field from your app identifies a person: User ID (user_id, the default), Email, Phone number, or a Custom field such as customer_id. Phone calls always use the caller's number | Your app must send exactly this field when it identifies the user. A new choice starts new people: what was remembered under the old field is not carried over — Identity and users |
| Devices per user | How many phones or browsers can act as the same person: 1 to 10, 2 by default | Every install counts: each phone, emulator, Android reinstall, browser profile and private window — and, in a browser that blocks storage, every page load. A place frees up on sign-out, after 30 days unused, or with Reset devices. A device beyond the limit still works, without that person's memory. App and website only — Installs and devices |
| Shared with | This agent only (the default): the facts this agent learns stay with it. Agents that share memory: every agent in the workspace set to share recalls the same person. Notes on where things stand (What works) reach every agent with memory on, whatever this says | Switching to shared: this agent's existing facts move into the shared memory after each person's next conversation with it. Switching back: the agent starts its own memory again; what was shared — including what it knew before the switch — stays with the sharing agents |
| Keep memories for | How long a fact is kept, counted from when it was saved: 1 to 3,650 days, 365 by default | A new setting applies to facts saved after it. A fact past its time is no longer recalled or shown, and a daily clean-up deletes it. Deleting the agent does not delete its memories early |
| What to remember — and what never to | Your rules for what is worth keeping, up to 1,000 characters | Empty: the default alone (below). Your rules are added after the default and win where the two disagree. They shape the remembered facts only — not the notes on where things stand, which keep amounts and dates |
| The People tab | Find a person: search by the identifier your app sends, or by a caller's phone number, and open what the agent remembers about them | Forget this person erases their memory, and the agent forgets them at once — Forgetting |
| The What works tab | What the agent has learned works, topic by topic | Fills in by itself as the agent has conversations — What works |
The agent's website and in-app conversations, and its A/B test variants, share its memory: a customer is one customer to the agent, whichever answered.
Saving these settings is a change to the agent like any other: on a live agent, in a workspace that reviews changes, it goes for approval. They apply from the next conversation.
What to remember, and what never to
Each time facts are saved, the default rules below go with the conversation, followed by your own rules, which win where the two disagree. Leave the box empty to use the default alone.
The default
- Communication: the language they prefer, how they like to be addressed, formal or casual.
- Commitments: what they promised, agreed to or asked for — a callback, a visit, a payment date.
- Preferences and availability: what they want or dislike; when to contact them, or not to.
- Concerns: objections, complaints or problems they raised.
- Personal context they chose to share: city, profession, budget range, family situation.
- Intent: clear signs of interest or of refusal.
Left out by default: greetings and goodbyes, a bare yes, no or ok, test messages and random text; questions they asked; the conversation's own progress; your own product details, prices and policies; and the values your business sent for the conversation (amounts, balances, policy numbers, scores). Your rules can change these.
Never kept, whatever your rules say: passwords, PINs and one-time codes; card, bank account and UPI numbers; government ID numbers. A stretch of conversation that is only greetings, acknowledgements or random text is never sent for saving.
Writing your own
- Name the facts you want, in plain sentences: “Remember the person's preferred language, their goal and the time they like to be called.”
- Add what never to keep: “Never remember payment amounts or the names of family members.” Your rules shape the remembered facts only: the notes on where things stand still keep amounts, so a promise keeps its sum.
- Keep it short and specific: three to six lines work better than a long policy.
- Test it with a real conversation (Test it in five minutes) and adjust.
Removed before anything is saved
Whatever your rules say, these are removed before facts are saved: phone numbers, email addresses, ID numbers (Aadhaar, PAN, passport, voter ID, driving licence), bank account, card and UPI details, full names used as identifiers, addresses and their postal codes, dates of birth, and medical conditions, prescriptions and diagnoses; passwords, PINs and one-time codes are never kept. Text that cannot be checked for them is not saved at all. A coaching agent can remember goals, habits and preferences, but not a diagnosis or a medicine. Notes on where things stand are checked differently — see What works › What is kept.
Make the agent use what it remembers
The block already tells the model to use preferences, pick up what was left open and never read the lines out. For anything more specific, add a few lines:



When the person brings up an earlier conversation, the agent looks its memory up by itself before it answers (up to three times in a conversation); you need no line for that.
Instructions come first. When a flow is told to speak English, a remembered “prefers Hindi” will not change it. Add the language line above if remembered preferences should change the conversation. One exception: an agent set up with more than one language starts a call in the language remembered for the person when it speaks it, unless the call itself names a language.
What works — every conversation makes the next one better
Memory keeps facts about a person. After every conversation the agent remembers, Graine also notes where things stand, in a few short lines written in English:
| Noted | For example |
|---|---|
| The topic | loan repayment |
| How it ended | resolved, still open, made a promise, asked to be contacted again, or not interested |
| An open item | wants the statement for September |
| A promise, with its due date | pay 4,000, due 25 Oct 2026 |
| The approach the agent took | sharing a clear next step |
| The language they prefer | Marathi, once they asked for it, said so, or ended two calls in a row in it |
Only conversations the agent remembers are noted: memory on, the person identified on one of their devices, and not opted out. Voicemail is never noted. Topics are not a fixed list. Each agent's topics come from its own conversations, and a new conversation reuses one when it fits.
Two things are built from the notes, and both reach the agent at the start of the next conversation:
- For each person, one profile your workspace shares. Their recent topics and how each ended, open items, promises and whether they were kept, and the language they prefer. Every agent in the workspace with memory on reads it, on every channel, whatever Shared with says: that setting is about remembered facts. At the start of a conversation the agent reads up to four lines from it: their latest conversation (where and when, the topic, how it ended and what is still open), a promise still open, the language they prefer, then earlier conversations. Whether a promise was kept or broken shows in People, not in the agent's lines. An agent with more than one language starts in the person's preferred language when it speaks it; a language sent with the call comes first.
- For each agent, what works. For every topic, how often each approach the agent took worked. A conversation that was resolved, or ended with a promise, counts as worked, and a promise later broken stops counting. On each topic, the approach that worked best — once it has been tried at least 5 times and worked at least half the time — is added, as the last of those lines, at the start of the next conversation with a person whose latest conversation with this agent was on that topic and was not resolved. Until then it is only counted. An agent learns from its own conversations only, never from another workspace's.
- For someone with no earlier conversations, what usually works. A person the agent remembers but who has no notes yet starts with one line about the agent itself: the topic its conversations are most often about, and the approach that worked best there, by the same rule (tried at least 5 times, worked at least half the time), for example "Conversations with this agent are most often about loan repayment; for that, sharing a clear next step worked in 71% of 42 conversations." It arrives in its own block, never with what is remembered about the person, and the agent is told to find out what this person needs before acting on it. Nothing is said while that topic has no such approach.
Where to see it
| Where | What it shows |
|---|---|
| Agent → Memory → What works | Each topic, every approach the agent took, how often each worked and in how many conversations, Used by the agent beside the approach its instructions carry, and A first conversation: the line someone with no earlier conversations starts with |
| Agent → Memory → People → Find a person, someone in your app | What we know: the language they prefer and how it was learned, their latest open item, their latest promise with its due date and whether it was kept, and how their last five conversations ended |
Both are open to anyone who can view calls. Someone limited to some agents sees only those agents' conversations under What we know.
Branch a flow on it
A conversation with a person who has notes starts with up to five call fields, for up to 30 days after their latest noted conversation (or the agent's Keep memories for, if shorter), on every agent with memory on. On a device new to the person, they arrive from its second conversation on it. A flow's rules can branch on them, and a prompt or a flow's text can say them:
| Field | What it holds |
|---|---|
caller_context_topic | The topic of their latest conversation, for example loan repayment |
caller_context_status | How it ended: resolved, open, promised, callback_requested, not_interested, or no_conversation (none of their noted conversations had them engage) |
caller_context_promise_due | The due date of their open promise, as YYYY-MM-DD |
caller_context_language | The language they prefer, as a code such as mr |
caller_context_last_channel | Where their latest conversation happened (counting one where they did not engage): phone, in_app_voice (a call or Talk in your app or on your website) or in_app_chat |
They sit with the call's own variables: a rule names them in full, as
recipient_data.caller_context_status, and text says {caller_context_topic}.
A variable of the same name sent with the call wins. A field with nothing to
hold, such as no open promise, is missing, and a rule on a missing field
doesn't hold, except is empty
(How a rule compares values).
The open item is never a field: the agent reads it with the other notes.
| To do this | Rule |
|---|---|
| Follow up on a promise | recipient_data.caller_context_status is promised |
| Check on an open promise | recipient_data.caller_context_promise_due is filled in |
| Don't pitch again to someone who said no | recipient_data.caller_context_status is not_interested |
| Give a topic its own step | recipient_data.caller_context_topic is loan repayment, worded as What works shows it |
| Start a Marathi branch | recipient_data.caller_context_language is mr |

What is kept, and for how long
- No transcript text is kept, only the short notes above.
- Phone numbers, email addresses, long account or card numbers and reference codes are removed from every note before it is saved, and names are left out. Amounts and dates stay, so a promise keeps its sum and its due date. Notes are not checked for health details the way facts are, and What to remember — and what never to does not apply to them.
- It follows the agent's retention: a person's notes are deleted once Keep memories for has passed since their latest noted conversation (the longest, when several agents noted them).
- Forgetting a person clears their notes, at once and for every agent in the
workspace: Forget this person in the dashboard, or
forgetMemory()from your app (Forgetting). What works keeps its counts: they are about the agent, and name no one.
In your app
Memory follows the identity your app sends. Every SDK has the same calls:
- Send exactly the field Who is the user? names, with a real value. A
placeholder (
guest,unknown,0…) or a masked value is nobody, and that conversation has no memory — what does not count. - Identify before the chat or a call opens: at sign-in and at every launch. A chat with no identity is a new visitor every time — no memory and no history. Identity is fixed when a conversation starts. If the user signs in while the chat is open, the chat ends that conversation and reconnects at once as them; a call keeps the identity it started with.
memories()andforgetMemory()work only from one of the person's own devices (see Devices per user): another device is refused withdevice_limit, and nobody signed in withidentity_required. Called from a new install while the person has a free place, they make it one of the person's devices. When the device could not be checked just then, they answerunavailable: try again.- Other details sent with identify, such as the name, are prompt variables for the agent, masked on the device. They are not saved as memory.
- A call carries the same identity. In-app calls, in both directions, take it
from
identify; phone calls use the caller's number.
The full walk-through, platform by platform: Identify the user. Every signature and error: Identity and memory.
Each customer's choice
A customer can turn memory off for themselves. Pass it with identify(), or on
its own with setMemory(); the SDK remembers the choice for that customer on
that install, so you need not repeat it at every launch. It applies from the
next conversation.
With memory off, that customer's conversations are neither recalled nor stored. It defaults to on.
Show a customer what is remembered
memories() returns the facts the agent remembers about the signed-in customer,
for this agent's memory scope: current facts only (a fact replaced by a newer one
is not listed), newest first, at most 100, each already redacted. It does not
list the notes on where things stand; forgetMemory() clears those too. Show it
on a privacy screen beside the switch that turns memory off and the button that
forgets.
| Field | |
|---|---|
id | The memory's id |
text | What the agent remembers, already redacted |
createdAt, updatedAt | When it was stored and last changed, or empty when unknown |
Like forgetting, it answers only on one of the customer's own devices — another is
refused with device_limit, and one that could not be checked just then with
unavailable (try again) — and needs an identifier (identity_required).
Every return type and error: Identity and memory, and the fields of GraineMemory.
Forgetting
From your app, forgetMemory() deletes everything remembered about the
signed-in customer, for this agent's memory scope, the conversation kept so it can
continue (with shared memory, the conversations kept with every agent), and the
notes on where things stand with them for every agent in the workspace — and
resolves with how many stored memories it deleted, earlier versions of a fact
included (0 when there were none). From that moment memories(), the People
tab and the person's next conversation show none of it. For a person your app identifies by phone
number, that includes what was remembered from their phone calls before user
keys. It works only from one of the customer's own devices; another device is
refused with device_limit, and one with no identifier with identity_required.
The chat on screen clears only when it succeeds. The conversation is part of
what was forgotten, so a successful forgetMemory() empties the chat window too.
A refusal (device_limit, identity_required) or no network deletes nothing.
unavailable means it did not finish — the device could not be checked just
then, or part of it may already be gone: call it again until it succeeds. On any
failure the chat on screen stays as it is.
From the dashboard, under Agent → Memory → People: search for the
person. Choose App or website and type the identifier your app sends — the
value of the field Who is the user? names, such as a user ID u_8812 — or
Phone call and type a caller's number, then Find. On the phone, a person
is their number. Their panel opens, headed by their identifier as in Call
History: User ID · u_8812, Phone · +91 98765 43210. People are found by
search alone, since an agent can know tens of thousands. Embed & Widgets →
People & memory has the same Find a person, and Go to Memory → People
opens this tab.
From People in the sidebar, find someone without opening an agent: choose the agent whose memory to search — agents with memory on, the most recently changed first — then Find a person. Their panel is the same as under Agent → Memory → People, with Reset devices in its Settings tab. Anyone who can view calls can open it.
| Action | What it does | Who can |
|---|---|---|
| Find a person | Choose App or website and type the identifier your app sends, or Phone call and type a caller's number, and open what the agent remembers about them | Anyone who can view calls |
| Delete this memory | Deletes one memory, from the person's panel | Anyone who can edit agents |
| Forget this person | Deletes everything the agent remembers about them — for a person known by their phone number, what was remembered from their phone calls before user keys too — the conversation kept for them, and the notes on where things stand with them. The agent forgets them at once | Anyone who can edit agents |
| Reset devices | Releases every device bound to that person: in their panel, Settings → Reset devices. For people in your app or on your website | Anyone who can edit agents |
A person's panel has four tabs. Overview shows What we know about someone in your app (What works) and what the agent remembers now; Map draws how it all connects (each topic and its conversations, how each ended, promises, open items, and every fact with where it came from); History lists what changed, newest first; and Settings shows the memory settings that govern them, when each fact expires, and the actions above: Forget this person and Reset devices. Map and History also show the earlier versions of a fact, faded beside the one that replaced it: they are kept as history only, the agent uses the facts as they are now, and forgetting the person deletes them too.
The activity log records that an agent's memory was forgotten, and by whom — never whose memory it was.
Deleting an agent does not delete its memories. They expire when their retention ends. Forget a customer before you delete the agent if they asked to be forgotten.
Test it in five minutes
Sign in as a test user in your app or on your website — identify with the
field Who is the user? names, on an agent with memory on — and open the chat.
Tell the agent two facts your rules should keep, for example: “I prefer Hindi, and call me after 7 pm.”
Close the chat, then wait about a minute. The conversation ends 15 seconds after the chat closes (or after your app's chat close delay), and its facts are ready about a minute later.
Start a new conversation — New conversation in the chat's header, or
newConversation() — and ask: “What do you remember about me?” A new
conversation proves memory rather than the conversation continuing.
The agent answers with both facts. In Agent → Memory → People, find the test identifier: the panel shows both facts. In the same chat, say “like I told you last time…”: the agent looks its memory up before it answers.
Forget this person in their panel, start a new conversation and ask again: the agent no longer knows.
Phone calls: call the agent, say a fact, hang up, wait a minute, and call again from the same number, with caller ID shown.
Privacy and what is stored
- A person is remembered under a one-way key made from their identity, never the identity itself. Graine stores the identifier your app sends so your team can see who each conversation was with; the memory service only ever receives the one-way key derived from it (What Graine keeps).
- Facts about one person are never used in another person's conversation or another workspace, nor by another agent — unless you choose shared memory, which shares facts only between your own agents set to share. Inside your workspace, the notes on where things stand with a person reach every agent with memory on, and What works counts outcomes across an agent's conversations, by topic and approach, naming no one.
- Short facts are stored, each with the agent, the channel and the conversation it came from. Sensitive details are removed first (above).
- Facts are deleted once the time you set has passed since each was saved, by a daily clean-up, and at once when your team forgets a person or the person erases their own memory from your app.
- To save facts, Graine sends the memory service the conversation's turns after sensitive details are removed, your rules, and the opening of the agent's prompt (up to 300 characters, before any variable is filled in) as its purpose — never the identifier.
- Notes on where things stand with a person (topic, outcome, open item, promise, preferred language) hold no transcript text, follow the agent's retention and are cleared when the person is forgotten (What works).
- A person can opt out: identify them with memory off.
- For a customer whose conversation continues, their last 50 messages with each agent are kept as they were said, for 7 days after the latest (Conversations continue).
Memory is personal data. Tell your customers the agent remembers them, use What to remember — and what never to to keep anything sensitive out, and give them the way to turn it off and to be forgotten.
Limits
| Memory read | At the start of each conversation, within 1.5 seconds; again during it only when the person refers to an earlier conversation, at most three times, never holding a call's reply more than 0.8 seconds or a chat's more than 1 second |
| What is read | Up to four short notes on where things stand with the person, then up to 15 remembered facts — the newest, followed when there are more by the earliest that still hold — about 1,500 characters in all |
| A new fact | Ready about a minute after the conversation ends |
| What to remember | 1,000 characters |
| Retention | 1 to 3,650 days |
| Devices per customer | 1 to 10 |
memories() | Current facts only, newest first, at most 100 |
| A conversation kept to continue | The last 50 messages per agent and customer, for 7 days after the latest |
| What works | An approach reaches the agent from 5 tries, when it worked at least half the time: on each topic, the one that worked best |
| What we know | The language, the latest open item and promise, and the last five conversations |
Troubleshooting
Start in Call History. Each conversation with an agent that has memory is marked Remembered or Not remembered, with the reason underneath: memory isn't switched on for this agent; the app sent no user ID; the conversation didn't come through a signed app session; the user turned memory off; the app didn't identify the device; the user is already on their maximum number of devices; the device isn't linked to the user; the device couldn't be checked (usually temporary); the conversation ended before the device was checked; the call didn't come through Graine's phone network; there was no caller number; or memory took too long to load. Open the conversation to see what to change. When a device is past the limit, Reset devices is right there.
| What you see | Why | Fix |
|---|---|---|
| Every chat is a stranger | The app sends no identity, or a different field from the one Who is the user? names | Send exactly that field with identify, before the chat opens |
| The agent remembers nothing for one person | Memory is off for the agent, the person turned it off, or this device is past their Devices per user | Turn memory on; check the person's memory choice; sign out on another device, or Reset devices |
| It forgot everyone after a settings change | Who is the user? changed: a new field means new people | Keep the field stable once real users are on it |
| It doesn't know what was said a moment ago in another chat | New facts are ready about a minute after a conversation ends | Wait a minute, then start a new conversation |
| It knows the fact but doesn't act on it | The prompt or the flow doesn't say to | Add the lines in Make the agent use what it remembers |
| What works says nothing learned yet | Only conversations the agent remembers are noted, and an approach is used from 5 tries | Turn memory on and identify people; it fills in as they talk to the agent |
| It remembers things you don't want | The default rules are broad | Write your own in What to remember — and what never to |
| Something sensitive was remembered | Your rules allowed it | Forget the person, and add it to your rules as something never to keep |
| It never remembers a health condition | Medical details are removed before facts are saved, by design. Notes on where things stand are not checked for health details | Remember goals and habits instead |
| The app and phone calls are two people | Phone calls use the caller's number | Link the number to them, or set Who is the user? to Phone number and send the number with identify |
| A second phone has no memory | More devices than Devices per user. Every install counts: an Android reinstall, an emulator, another browser profile or a private window is a new device | Raise the limit, sign out on another device, or Reset devices for the person |
| A test from the dashboard remembers nothing | By design: a dashboard test has no customer, so it never reads or writes anyone's memory | Test from your app, your website or a phone |
forgetMemory() answers device_limit | It was called from a device that is not one of the person's | Sign out on another device, or reset their devices |
memories() or forgetMemory() answers unavailable | The device could not be checked just then, or the forget did not finish | Try again until it succeeds |
React Native: nobody is ever remembered; memories() rejects with invalid_request | The app has no install ID | Pass storage to the provider, or link the calls package |
| The chat opens empty for a returning customer | They are not identified, memory is off for the agent or for them, their last message was more than 7 days ago, they were forgotten, or the app's SDK is older than 0.7.0 | Identify them before the chat opens, and check memory is on |
Where next
Identity and users
How the platform decides who the customer is.
Identify the user
The code on every platform, step by step.
Context
Where memory sits in what the agent reads on every turn, and what wins when sources disagree.
Flow agents
The Briefing and each step's instructions.
Privacy and security
What leaves the device, and what is stored.

