# Contexts

> A context is a topic such as a client or a project, with a summary and a journal of conversations.

A context is a topic your company works on, for example a client, a project, a task or a tool. Each context has:

- a **summary** in `README.md`, the shared memory of that topic,
- a **memory** file with facts and agreements, when someone has saved them,
- a **journal** with one line for every conversation that belongs to the context. See [Journal](https://enterpriseego.cafeboon.com/docs/concepts/journal).

## How conversations end up in a context

An administrator creates contexts on the Knowledge page and sets rules for each one, such as a word in the title or first message, or a project name, optionally per AI platform. A conversation is put under a context when its rules match. Enterprise Ego also suggests topics it comes across in your team's conversations, and an administrator approves them. See [Company rules and the Knowledge page](https://enterpriseego.cafeboon.com/docs/admin/company-rules).

A conversation that belongs to no context goes to the inbox, which only administrators can see.

## Who can see a context

Per context an administrator chooses between everyone in the organization, or only admins and the people they pick. Your AI only sees the contexts you may see. If you ask for a context you may not see, the answer is the same as for a context that does not exist, followed by the list of contexts you can see.

## What your AI does with a context

- `start` lists the contexts you may read. See [start](https://enterpriseego.cafeboon.com/docs/reference/start).
- `open_context` returns the summary and the recent journal of one context. See [open_context](https://enterpriseego.cafeboon.com/docs/reference/open-context).
- `search` searches in the summaries and journals. See [search](https://enterpriseego.cafeboon.com/docs/reference/search).

## Teaching a context

You can ask your AI to write down what it should remember for a context. A single fact goes into the memory with `remember`, a longer text such as a summary goes into a file with `write_file`. The previous version of `README.md` and `memory.md` is kept as a `.prev.md` file. See [remember](https://enterpriseego.cafeboon.com/docs/reference/remember) and [write_file](https://enterpriseego.cafeboon.com/docs/reference/write-file).
