> ## 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.

# Organizations, projects, and agents

> How a Priors account is laid out, what each level owns, and how to map your own product onto it.

A Priors account has four levels: an **organization** holds **projects**, a project holds **agents**, and an agent holds **threads**. Memory lives in the agent and never crosses agents. People and keys get access through a role in a project.

| Level | What it is | What it holds |
| - | - | - |
| **Organization** | Your company's account. | People, credits, and projects. |
| **Project** | One product, team, or environment inside the organization. | Its own people with roles, service accounts, API keys, and agents. |
| **Agent** | One memory. | Everything it has learned, its files, and its threads. |
| **Thread** | One conversation inside an agent, such as a call, a chat, or an upload session. | The recent turns of that conversation. |

> [!WARNING]
>
> **Each agent's memory is its own, and everyone who talks to one agent shares what it learns.** Threads separate conversations, not memory. To keep two customers' facts apart, give them two agents. See [Each agent's memory is its own](https://www.sapientpriors.com/docs/how-to-use/each-agents-memory-is-its-own.md).

## Organization

The first person in an organization is its **Org admin**. An Org admin can do everything in every project, buys credits, creates projects, and invites people to the organization. Credits belong to the organization, and every project spends from them.

## Projects

A project keeps one product apart from another. Each project has its own:

* **People**, each with one role in the project. See [Roles and permissions](https://www.sapientpriors.com/docs/access/roles.md).
* **Service accounts** that run your product in production. See [Service accounts](https://www.sapientpriors.com/docs/access/service-accounts.md).
* **API keys**. A key belongs to one project and never reaches another one. See [Authentication](https://www.sapientpriors.com/docs/authentication.md).
* **Agents**. An agent that a key creates lives in that key's project.

Every organization also has a **Default project**. It cannot be renamed or deleted. You can leave it empty.

Only an Org admin creates a project, in the Priors app on the **Projects** page. A new project needs at least one Project admin, picked when you create it.

## Agents

An agent is **public** or **private**:

* **Public:** everyone with a role in the project can chat with it, and the project's service-account keys reach it. This is the kind of agent your product serves to its own customers.
* **Private:** only its creator uses it, together with Project admins and Org admins. It is not shared, and service-account keys never reach it.

See [Agents](https://www.sapientpriors.com/docs/concepts/agents.md) for how to create one.

## Map your product onto Priors

| In your product | In Priors |
| - | - |
| One app or product line | One project |
| Production traffic from your servers | A service account in that project, with its own key |
| One customer, one user, or one shared space whose facts must stay apart | One agent. Store its `agent_id` on your own record. |
| One meeting, chat, ticket, or upload session | One thread on that agent |
| The person a request is made for | `X-SP-End-User` on the request, with a service-account key |
| The person who said something | `speaker`, and optionally `speaker_id`, on each turn |

For complete examples, see [A meeting notetaker](https://www.sapientpriors.com/docs/how-to-use/meeting-notetaker.md) and [A team knowledge base](https://www.sapientpriors.com/docs/how-to-use/team-knowledge-base.md).


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