Service Context & Content
Two things tell a service’s AI what it needs to know: SOP and Instructions, a plain-language description of how the service runs, and the content library, the documents agents and AI encounters can draw on.
SOP and Instructions
The SOP and instructions card on the service’s Overview (closed until you select Open; and step 2 of the setup wizard, How the service runs) holds free text that Medbot turns into the agent context given to every service agent run. Describe:
- how the service runs and the steps patients and staff go through
- who does what, and when
- when to escalate, and to whom
- how to use the content library, e.g. “Answer dietary questions from the ‘Post-op nutrition’ handout in the content library”
A starting set of protocols is filled in for a new service. To change it:
- On Overview, click Edit protocols and instructions.
- Edit the text.
- Click Save. The button reads “Saving and generating agent context…” while Medbot rebuilds the agent context, and a “Protocols saved” message confirms it.
The generated agent context sits collapsed under the text, so you can check what agents will actually be given. There is no graph or builder; it is just text. It replaces the old program Workflow text.
Other context agents receive
The SOP is one layer. Agents also receive:
- each care team member’s agent context, built from their preferences (see Care Team)
- each patient’s context, built from their encounter notes (see Patients & Cohort)
Content library
The service’s AI content library (/services/<service>/content, under the service’s name in the sidebar, for Clinic Admins, doctors and nurses; also step 3 of the setup wizard, under Education and counselling) holds the clinical resources this service’s agents and AI encounters can use: documents, and pictures that agents can show patients.
Select Add content to add to it. The organisation also has its own AI content library at Org Level (/content-library), with All content, Health education, Reference materials, Explanation wording and Approved answers tabs, each item tagged to the services that use it. See Approved answers.
Adding a document
-
Upload a document or picture: choose a PDF, Word, Excel or CSV file, give it a Title and an optional Description, and pick its type:
- Reference material: background the assistant can quote from, such as a handout or guideline.
- Counselling protocol: a structured script for a counselling or education session. A spreadsheet is split into tables of rows, not session steps, so it usually belongs under reference material.
Click Upload & add to library.
-
Attach an existing resource: pick a document you have already uploaded elsewhere in Medbot.
A new document is processed before it can be used; until then it shows as pending or processing. Remove takes a document out of this service’s library, and Mark as reference or Mark as protocol changes its type.
Adding a picture
A picture is reference material an agent can show the patient while it explains: a diagram, a device, a breakdown of costs. Use the same Upload a document or picture form:
- Choose a JPEG, PNG or WebP file. A preview appears, and the type selector disappears: a picture is always reference material.
- Give it a Title and a Caption: “what the picture shows (patients see this)”. The caption is required. It is what the agent reads to decide whether to show the picture, and what the patient reads under it.
- Click Upload & add to library. Camera details such as location are removed on upload.
In the Reference material list the picture shows as a thumbnail with its title, caption and a picture badge. It cannot be marked as a protocol.
Where the library is used
- AI encounters can have documents attached by default, attach the best matches automatically, and let the assistant search the library. See AI Encounters.
- Service agents with the Clinical resources tool can look things up in it.
- The patient agent answers health-education questions from it, and walks patients through counselling protocols with its Education & counselling sessions tool.
- Session agents on the patient portal (history taking, health education and financial counselling) can show a picture from the library under their reply, with its title and caption. Patients tap it to open it full size, on the web and in the mobile app.