# Projects and accounts

Agents are built in a **project** and used in an **account**. A project holds everything its members are working on. The account shows only the agents published to it, to the people allowed to use them.

## Two places

|        | Project                       | Account                               |
| ------ | ----------------------------- | ------------------------------------- |
| Who    | The project's members         | Everyone in the account               |
| Agents | Every agent in the project    | Only agents published to the account  |
| Chat   | With any agent in the project | With the agents you can use           |
| You do | Build, try, deploy, publish   | Give agents to people, chat with them |

An agent that isn't published never shows in the account, not in **Agents** and not in **Chat**.

## From a project to people

```
 Project   build an agent ─▶ try it in the project ─▶ Share ─▶ publish to account
                                                          │
 Account   the account's agents ◀─────────────────────────┘
             give it to people ─▶ they see it in Agents and Chat
```

1. **Share, then publish.** Click **Share** on the agent. Publishing adds it to the account's agents. If the project isn't live yet, publishing deploys it to Production first, and says so before it does. Nobody has been given the agent yet.
2. **Give it to people.** An account admin, or the agent's builder, picks who gets it. It appears in their **Agents** and **Chat** at once.
3. **Withdraw.** The agent leaves the account and everyone loses it. Publishing it again starts with nobody given it.

## Who does what

|                                          | Builder (Owner or Admin of the agent's project) | Account admin         | Member                   |
| ---------------------------------------- | ----------------------------------------------- | --------------------- | ------------------------ |
| Publish an agent to the account          | ✅                                               | ✅                     |                          |
| Give it to people already in the account | ✅ their agents                                  | ✅ any agent           |                          |
| Invite someone new into the account      |                                                 | ✅                     |                          |
| Set its categories                       |                                                 | ✅                     |                          |
| Withdraw it                              | ✅ their agents                                  | ✅ any agent           |                          |
| Sees and chats with                      | their published agents, and those given to them | every published agent | the agents given to them |

## Versions

A published agent follows the project's **Production** release. Deploying the project updates what everyone chats with; nobody needs to publish again or be given the agent again. The agent's details show its **shared version**: the release people are using now.

## Next steps

* [Share an agent](/docs/agents/account-availability.md)
* [Give someone an agent](/docs/account/agent-access.md)
* [Chat with a shared agent](/docs/agents/use-shared-agent.md)
