> ## Documentation Index
> Fetch the complete documentation index at: https://www.sapientpriors.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Remember each end user

> Give every customer or prospect an isolated agent that learns over time

## Example use case

You run a sales agent that tracks each prospect across calls, emails, and follow-ups. The agent must retain each prospect's budget, technical stack, objections, and timeline without ever mixing one prospect's details into another prospect's replies.

## Setup

Provision one agent per prospect when they enter your system and persist the `agent_id` on your prospect record:

* Create the agent with [POST`/v2/agents`](https://www.sapientpriors.com/docs/api-reference/v2/agents/create-agent) and poll [GET`/v2/agents/{agent_id}`](https://www.sapientpriors.com/docs/api-reference/v2/agents/get-agent) until `status` is `ready`.
* Open a thread per call, email chain, or session with [POST`/v2/agents/{agent_id}/threads`](https://www.sapientpriors.com/docs/api-reference/v2/threads/create-thread).
* Answer and learn on each turn with [POST`/v2/agents/{agent_id}/threads/{thread_id}/observe-and-respond`](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-and-answer), passing a readable `speaker` name so the agent tracks who said what.

## Benefit with Priors

* **Private continual memory:** each prospect's memory grows automatically across every thread and channel.
* **Zero manual context assembly:** you never concatenate months of transcripts or tune chunk retrieval per turn.
* **Simple offboarding:** deleting one agent erases that prospect's entire footprint in one call.

## What goes wrong

> [!WARNING]
>
> Reusing a single agent across multiple prospects leaks confidential terms, pricing, or timelines from one prospect into answers for another. Guard your `agent_id` lookup closely too: if your database returns the wrong `agent_id`, Priors cannot detect the mix-up and will answer from the wrong prospect's memory.

## Recommendation

Maintain a strict 1-to-1 mapping between each end user (or customer account) and their `agent_id`. Plan for the default ceiling of 100 live agents per organization; request a quota increase once you pass roughly 80 active customers so headroom is ready before new sign-ups hit `409 agent_quota_exceeded`.

## Calls used

* Guides: [Agents](https://www.sapientpriors.com/docs/concepts/agents.md), [Walkthrough 1: your first agent](https://www.sapientpriors.com/docs/walkthroughs/first-conversation.md), [Limits](https://www.sapientpriors.com/docs/limits.md)
* API reference: [Create agent](https://www.sapientpriors.com/docs/api-reference/v2/agents/create-agent.md), [Get agent](https://www.sapientpriors.com/docs/api-reference/v2/agents/get-agent.md), [Create thread](https://www.sapientpriors.com/docs/api-reference/v2/threads/create-thread.md), [Learn and answer](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-and-answer.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.