# Build your knowledge base

> Review starter guides, edit shared procedures and keep revision history.

Canonical: https://gosummer.ai/docs/company-knowledge
Publisher: Summer AI

The **Knowledge** workspace contains the shared procedures and references used by both conversational agents and investigators. Owners and admins can edit company guides and inspect revision history. Knowledge is available during onboarding, before the company’s case runtime is enabled.

## One company library, different roles

| Where | What belongs there | How to edit |
| --- | --- | --- |
| **Knowledge** | Shared company facts, policies, procedures, approved answers and investigator workspace instructions. | Open a document, then **Edit shared knowledge**. |
| **Messenger → Chat assistant instructions** | The conversational role’s greeting, tone, selective reading and handoff behavior in `AGENTS.md`. | Select the installation and edit **Conversational AGENTS.md**. |

Both agents receive the full library as ordinary files under `knowledge/`. The conversational assistant uses native Hermes file discovery and reads only what its current question needs; deeper research belongs to the investigator. There is no separate copy of company facts to keep synchronized. See [Assistant and knowledge](https://gosummer.ai/docs/assistant-and-knowledge).

## Edit through an agent

The Summer AI API, CLI and MCP can list and read documents, save a revision and read edit history with the `setup` permission. Read the current document before editing and send its revision with your change and reason.

For a company connected to an Ops workspace, these calls use that workspace's original documents and edit history. The connection must allow knowledge access, and editing also needs the connected operator's administrator permission. Creating new documents through these calls is available for Summer AI company libraries; it is not available for connected Ops libraries yet.

Knowledge edits apply across the company, including production and later agent runs.

## Start with your company profile

New company workspaces include a telehealth starter: core rules, operational guides, proposal guidance, a clinic operating profile and starter workspace instructions. The company-specific profile begins **unconfigured**. It does not inherit Rebody’s products, prices, providers or policies.

Open **Knowledge → company → operating-profile.md**, also linked from **Setup**. The profile’s document ID is `ops.company-profile`. Review the fields relevant to your first workflow:

- Company identity, patient-facing terminology and responsible teams.
- Coverage hours, timezone and operational owners.
- Approved authenticated portal destinations and clinical escalation channels.
- Current offerings and the sources for availability and eligibility rules.
- Billing, fulfillment and support procedures needed for the selected work.

For each configured fact, record the value, source, effective or verified date, and responsible owner. Leave unresolved facts explicitly unknown. Missing unrelated sections need not block a workflow that has the evidence it needs.

## Example profile entry

Paste a structure like this into the relevant part of the operating profile, then replace every bracketed field with an approved company fact. Leave anything unverified marked unknown.

```markdown
### Support coverage and care referrals
Owner: [responsible team]
Source: [approved policy reference]
Last verified: [date]

Support hours: [days, hours and timezone, or Unknown]
Patient sign-in: [normal authenticated sign-in URL, or Unknown]
Clinician messaging: [normal authenticated message URL, or Unknown]

For a clinical question, direct the patient to the clinician channel above.
If the destination is unknown or unavailable, hand off to [responsible team].
Do not repeat or interpret medication directions in a support reply.
```

For website referrals, also put the actual URLs into the installation’s [care-link settings](https://gosummer.ai/docs/care-links#public-destinations). A URL in a knowledge document does not configure those fields.

## Edit a guide

1. Browse **Folders**, use **Tags**, or search for a document. Folder search includes subfolders.
2. Open the document and read its current content and source information.
3. Expand **Edit shared knowledge**.
4. Update **Content** in Markdown and enter a **Reason** explaining the source or correction.
5. Keep **Status** active, or choose retired if the guide should leave the active knowledge snapshot.
6. Select **Save revision** and review the saved result.

If the document changed while you were editing, reload the current revision and reconcile your change before saving again. **Source edit history** retains earlier saved content and reasons so an authorized human can inspect how guidance changed. Open **Knowledge → Changes** to see changes across the library, including the before/after text, authenticated person, API or MCP connection, Summer AI execution run and original feedback when available. Older records keep their original metadata; missing connection details are not reconstructed.

The current editor updates the supplied documents. The [API, CLI and
MCP](https://gosummer.ai/docs/developer-platform) can also create Markdown knowledge documents.
For example, your setup agent can use `summer knowledge create` with a local
Markdown file, a document ID, a `company/` path and a reason. It should read and
edit the current revision when the document already exists. There is no customer
website crawler or file-upload import control on this screen.

## Prepare customer guides

Your onboarding agent should inventory the product's customer tasks and prepare
clear instructions with links to the relevant product pages. Use real interface
captures with example data, label illustrative images, and include captions or
transcripts for video. Keep source references and the date each workflow was
checked. Review the steps, links and presentation on a phone and a larger screen.

Write to the person using your product: what to click, what they should see and
how to get help. Keep developer notes, component names and audit language out of
articles, alt text and captions. Captions should explain the screen; keep the
capture method and source details in private provenance. A short notice that
screenshots use example information is enough.

Let the page finish loading before taking a screenshot. Frame the relevant
panel so its text and buttons are easy to read at the size used in the guide.
Leave out browser chrome and engineering/demo banners, and check the final
image on a phone and a larger screen. Use the actual interface rather than an
edited image that changes its behavior or available controls.

Customer guides use selected articles from the same company library. The
**Knowledge → Customer guides** workspace lets authorized people inspect and
edit the draft, media descriptions and publication state. Private operating
policies stay private. Saving a document or uploading a file does not publish it.

The [API, CLI and MCP](https://gosummer.ai/docs/developer-platform#guidebooks-and-media) expose the
same authoring workflow. Check your deployment's API reference and the installed
CLI's `--help` first. The CLI commands below require `--company COMPANY_ID`; add
`--json` for structured results. Guide content is company-wide.

1. Read `summer guides authoring` for complete build instructions and current
   draft context. Give these to your existing native project agent; it uses its
   own available browser, file, image and video tools. Summer AI stores and hosts
   the result; this does not start a separate cloud generation job. Read
   `summer guides get` and configure branding with `summer guides save
   --from-file settings.json --expected-version N --reason TEXT`. The settings
   file has `slug`, `title`, `description`, `accent`, `portal_url` and optional
   `logo_asset_id`.
2. Upload a screenshot, image, video, Markdown attachment, PDF or captions file
   with `summer assets upload --from-file PATH --metadata-file media.json`.
   Media metadata includes `alt_text`, `caption`, `provenance`, optional
   `transcript` and optional `poster_asset_id`. Keep the completion receipt and
   use the returned asset ID. After interruption, use the same file with
   `--resume ASSET_ID`; completed chunks are checked before reuse.
3. Write article Markdown and save it using `summer guides article save ID
   --from-file article.md --metadata-file article.json --revision N --reason
   TEXT`. The metadata file has `slug`, `title`, `summary`, `topic`, `asset_ids`,
   `source_url` and optional `verified_at`. Use revision `0` for a new article;
   read `summer guides article get ID` before editing an existing one.
   Reference an image as `![Alt text](https://gosummer.ai/help-assets/ASSET_UUID)`, a video as
   `[Watch the walkthrough](https://gosummer.ai/help-assets/ASSET_UUID)`, or a downloadable
   attachment with an ordinary link at the same path.
4. Read `summer guides preview` and inspect the returned preview. Check images,
   video, transcript, section links, product destinations and phone/desktop
   presentation before publication.
5. Publish the reviewed article revisions with `summer guides publish --from-file
   release.json --expected-version N --reason TEXT`. The release file has an
   `articles` array of exact `id` and `revision` pairs. Publication requires the
   separate `guides.publish` permission. Read the saved result and open the
   returned public page and matching Markdown URL.

Uploads are limited to 256 MiB per file and use bounded, resumable chunks. PNG,
JPEG, WebP, GIF, MP4, WebM, Markdown, VTT and PDF are supported. The server checks
the original byte length and checksum before marking an upload ready. A local
file is read by the trusted CLI; the hosted MCP server cannot read your laptop's
path. MCP returns a CLI handoff for bytes, without placing a bearer upload link
or binary content into the conversation.

Use `summer assets list`, `get ID` and `edit ID` to inspect media and correct
its descriptions with an expected version and reason. Use `summer guides
history` to inspect changes. New edits remain drafts until the next exact
publication. `summer guides unpublish --expected-version N --reason TEXT`
removes the current public release from Summer AI; downloaded copies cannot be
recalled.

### Set up your own help address

The published guide has a company-specific Summer AI address. A custom subdomain
can serve the same articles when your deployment's hosting provider is
configured. Read `summer guides hosting get`, then save the requested address
with `summer guides hosting save --hostname help.example.com --expected-version
N`. Follow the returned DNS instructions exactly. After setting the records,
run `summer guides hosting verify --expected-version N` and check both domain
ownership and HTTPS. A saved hostname or DNS record is not a working help site.
Use `--hostname none` to remove it. Keep the Summer AI address until custom hosting
is ready.

### Shared instructions for your agents

Investigators, executors and widget chat agents reference the same published
instructions and customer-facing URLs in the company library. They can link to
an article section and the relevant portal page. Instructions do not establish
that the customer completed a step; agents still check the original case
records. Only clinicians supply medication directions.

## When changes take effect

Operational agents receive a file snapshot of current knowledge when a run starts. Existing investigations retain their original snapshot. Conversational sessions refresh changed files before the next turn and keep their native history; unchanged files are reused. Check a new run or turn’s evidence before assuming it used a later correction.

Connected operational workspaces may also expose **Learned lessons**, with source feedback and retirement controls. Starter workspaces do not inherit another company’s learned lessons. Correct the shared guidance through the authorized workspace rather than treating a private agent note as durable company policy.

Retiring a guide excludes it from future active snapshots while retaining its revisions. Knowledge edits never waive access checks, clinical boundaries, model budgets or exact approval requirements.

Next, use [Write useful guidance](https://gosummer.ai/docs/knowledge-writing) to turn your policies into clear instructions.

## Teach Summer from a case

Give Summer your correction in the case's private Copilot conversation. Say when the correction is a reusable rule, and include its conditions. Summer can propose a `knowledge.update` step alongside the customer work. Review the complete proposed text and target revision in the plan. The rule becomes active when the approved step saves successfully; future runs receive that revision through the normal company knowledge snapshot.

A one-time exception stays scoped to that case. Offering a credit and applying it are separate actions. For example, a scoped no-refund decision with an offer of $25 credit toward another product does not establish that every refund request qualifies for that offer. Original operator feedback stays in private revision history. This does not publish a customer article.

## Learn from case feedback

The knowledge base is the single source for durable company guidance, including operational lessons. There is no separate learned-lessons store. Feedback corrects the current case plan. When it also establishes a reusable rule, Summer AI can propose `knowledge.update` or `knowledge.create` in that plan. These steps follow the ordinary approval and configured auto-run policy; a successful saved revision makes the text available to later agents. A single order's status or an exception belongs in its case unless it establishes a lasting rule.

The API, CLI and MCP expose `knowledge.changes` (`summer knowledge changes`) for the same company-wide history shown in the UI. Each document's `knowledge.history` includes the same provenance and previous text. Original feedback is private history, never inserted into the shared guidance text.
