Docs›Core concepts›Company and department memory
Company and department memory
Your office keeps its own rules and facts on the office server: HR rules, holidays, products, sales material and IT policy. Office chats answer from them, name the item and the date it took effect, and say plainly when the office has no rule on a question.
Who sees what#
| Item | Who it reaches |
|---|---|
| Company | Everyone in the office. |
| A department (a team) | The people in that team only. A person in another team never sees it, and chat never reads it for them, not even through a linked item. |
Everyone can read their own list in Emergic: Settings → Office → Company. The list is read-only for most people.
How chat uses it#
A question about how things work at your office, such as "How many days of leave do we get?" or "Who approves a 15% discount?", goes to office memory before the office model answers. The office searches the company's items and the asker's own department's, and hands the model what it found, marked as data and not as instructions. The office does not search the web for these questions.
- Under the answer, Emergic shows each item it read, with its scope and the date it took effect.
- When nothing matches, the answer says the office has no recorded rule on it, and suggests asking HR, the admin or a department lead. The model is told not to guess a policy, a date or a number.
- Only items that are in force today are used. A retired item, an old version or a draft is never read.
- The search runs on the office server, with no model: it matches the question's words and the office's aliases (such as PTO for annual leave).
The admin turns the tool off or on in the console under Tools → Office memory. An office with no items gets no look-ups.
Add and change items (admins)#
Open the admin console and find Company and department memory.
Add#
Choose the scope (the company or a team), the category, a title, the text and the date it takes effect. A subject key, such as annual_leave_days, is optional: the office then refuses a second current item with the same key.
Edit#
Edit saves a new version. The old version stays in the history and stops applying from the new version's date. Keep the date to correct a mistake; set a later date when the rule itself changes from that day.
Retire#
Retire stops an item from today, with no replacement.
History#
History lists every version, who saved it and when, and what changed.
Stored text cannot hold the control strings chat templates use (such as <|im_start|>), and characters a person cannot see are removed, so an item cannot pose as an instruction to the model.
Drafts from a document#
An admin or a department lead can turn a document into drafts. The office model reads the document and lists the rules it states. Nothing reaches chat until a person approves a draft.
- In the admin console: choose a text, CSV or Markdown file, or paste the text, then Make drafts.
- In Emergic, as a department lead: attach the PDF, Word or PowerPoint file in an office chat so the office reads it, then open Settings → Office → Company and choose Make drafts from the file. You can paste text there too.
- For each draft: Approve, Edit, then approve, or Reject. A rejected draft stays in the record.
Department leads#
In the admin console, under Users, tick Department lead for a person and save. That person can then add, edit, retire and approve items for their own team, in Emergic under Settings → Office → Company. They cannot change company items or another team's. Renaming a team keeps its items.
For agents#
Every route is in the office server's /manifest.json: the admin routes under /admin/api/office-memory and the person routes under /v1/office-memory. An agent with the admin token can read every scope and propose items as drafts with /admin/api/office-memory/drafts; a person approves them.
Backups: the office backup includes office memory.