Chat is still the main way to interact with Sofie. Use chat for one-off work and exploration. Use Orchestrations when the process itself should be reused.
Choose the right Sofie surface
Start by deciding whether you need an Orchestration at all.
Good Orchestration candidates have three traits:
- The same workflow repeats for many projects, batches, documents, studies, products, or investigations.
- Users can provide a consistent set of inputs.
- The output can be reviewed against expectations.
Define the workflow before you build
Before creating agents or tasks, write the workflow in plain language. Use this structure:Understand the main settings
The Orchestration editor includes settings that change how a run behaves. Set these before you tune individual agents and tasks.Design around inputs
Inputs are the contract between the person running the Orchestration and the workflow. Good inputs are specific:
For each input, make the user-facing Label and Description do real work. Tell users what to provide, when to use the input, and what happens if it is missing.
Use required inputs for material that the workflow cannot evaluate without. Use optional inputs for helpful context that should not block the run.
Input types can include Text, Number, Yes/No, Dropdown, Date, Workspace, File, Orchestration, CoMeeting, CoDraft, and CoSheet. Use Single when the workflow needs one value. Use Multiple when the user may provide several files, documents, meetings, or sheets.
Reference inputs inside agent and task instructions with curly braces, such as
{Investigation Workspace} or {CAPA plan CoDraft}. This keeps the workflow reusable because the instruction points to the run’s selected input instead of today’s example file.
Use dropdown inputs when you want users to choose from a controlled list, such as Review focus, Product type, Investigation phase, or Output destination.
Set source rules
Most weak Orchestration runs come from vague source handling. Tell the workflow what sources matter and what to do when they conflict. Include source rules such as:- Use the selected Workspace as the project source set.
- Use Workspace search for project files before using older chat assumptions.
- Treat attached files as the current run’s evidence.
- Use CoDraft templates for structure, not as factual evidence unless the user says so.
- Use CoMeeting transcripts as discussion context, not final source decisions.
- If sources conflict, list the conflict instead of resolving it silently.
- If a required source is missing, pause and ask for it.
Use agents only when roles are different
Agents are useful when the workflow needs different responsibilities. They are not useful when they only split one task into more names. Good agent roles:- Evidence reviewer.
- Data analyst.
- Source gap reviewer.
- Report drafter.
- Quality reviewer.
- Researcher.
Expert 1,Expert 2,Expert 3.ReviewerandCheckerwith the same instructions.- A general
Quality expertexpected to do every step.
Use agent memory carefully
Agent memory is useful, but it can also make a workflow harder to reason about if you use it for the wrong information. Use Short-Term Memory (Within Run) when tasks in the same run need to pass forward useful discoveries:- The evidence reviewer finds a missing batch record page.
- The data analyst identifies outlier lots that the drafter must mention.
- The researcher finds a source conflict that the reviewer must resolve.
- A QA reviewer repeatedly asks for facts, assumptions, gaps, and SME questions to be separated.
- A report drafter learns the preferred structure for a recurring CoDraft template.
- A data analyst learns that a specific metric should be explained with the same caveat.
Make each task reviewable
A task should produce something a person can inspect before trusting the next step. Weak task:- Specific.
- Source-aware.
- Limited to one kind of work.
- Easy to compare against the expected output.
- Clear about what Sofie should not decide.
Choose output modes deliberately
Use the output mode that matches how the result will be reviewed or reused.
Use Structured Output when the answer must be checked field by field or handed to another agent. Use Fill Template when you already know the document structure and want the Orchestration to fill defined placeholders. Use Surface when a task should update a defined Surface part and leave a traceable source record. For detailed schema patterns, see Structured Outputs. For Surface mapping, see Refresh a Surface with an Orchestration.
Structured outputs can include fields such as text, numbers, yes/no values, dropdown choices, images, charts, objects, and lists. For each field, write a clear name, description, formatting guidance, and whether it is required or may appear multiple times.
When you use Fill Template, also decide whether the output should stay in the run result or save to a Workspace. Save to a Workspace only when the destination is clear and the user has reviewed the workflow behavior.
Add tools with intent
Tools let an Orchestration do work beyond plain text generation. Add tools because a task needs a capability, not because the workflow might use it someday. Use tools when the workflow needs to:- Search selected Workspace content.
- Read or create CoDraft content.
- Analyze CoSheet data.
- Use CoMeeting context.
- Request human input.
- Create or update an artifact.
- Use connected app context when your organization enables it.
Put human review before risk
Use Require Human Review when the workflow should pause before continuing. Add review before:- Drawing a root cause conclusion.
- Recommending CAPA effectiveness.
- Interpreting conflicting evidence.
- Creating a final CoDraft.
- Saving output to a shared Workspace.
- Sending or changing content in a connected app.
- Continuing after missing required sources.
Build small, then expand
The first version should be the smallest useful Orchestration.1
Create the core path
Build the required inputs, one or two agents, and the smallest task sequence that creates a useful output.
2
Run it with realistic inputs
Use a real Workspace, representative files, and a source set similar to what users will provide later.
3
Inspect the first failure
Look for vague inputs, missing source rules, unsupported conclusions, weak output shape, or late human review.
4
Fix one layer at a time
Improve inputs first, then task instructions, then tools, then output shape, then tests.
5
Save a version
Use Save Current Version before major changes so you can restore a known-good state.
Test like a user will run it
Use tests to check whether the workflow still behaves the way you expect. In the editor, use Create Test to define test inputs and expected task outputs. Use Run Test or Run All Tests after changes. If your workspace shows Drift Detected, review the drift before running the test again. Test cases should cover:- A normal source set.
- Missing optional inputs.
- Missing required evidence.
- Conflicting sources.
- A larger Workspace with irrelevant files.
- A CoSheet with unexpected blank values.
- A template output with required placeholders.
- A run that should pause for human review.
Publish only after users can run it
Keep an Orchestration private or shared with a small group while it is changing. Publish to the organization when:- The name and description tell users when to run it.
- Required inputs are clear.
- Optional inputs are helpful but not confusing.
- Source priority is explicit.
- Each task has a reviewable output.
- Human review happens before key decisions or shared outputs.
- Tests cover realistic inputs.
- A person other than the builder can run it without hidden context.
Share editing carefully
Use sharing to bring in people who can improve or review the workflow. Suggested roles:
Give edit access to people who should change the workflow. Give view or run access to people who only need to use it.
Run Orchestrations from chat intelligently
When you run an Orchestration from chat, Sofie starts by asking for required information if it is missing. Good run request:- The Orchestration name is the one you intend to use.
- The Workspace and artifacts are the correct project.
- Attached files are current.
- Dates and options are unambiguous.
- Sofie should pause before any conclusion or artifact creation that needs review.
Maintain Orchestrations over time
An Orchestration can become stale when source patterns, templates, team expectations, or review needs change. Review important Orchestrations when:- A template changes.
- The expected output changes.
- A new source type becomes common.
- Users report confusing inputs.
- Tests start failing.
- Drift Detected appears.
- A workflow produces unsupported or hard-to-review output.
- A published workflow should be limited again.
Common problems and fixes
Useful Orchestration prompts
Use these in chat before or after editing an Orchestration.Design before building
Design before building
Review an existing Orchestration
Review an existing Orchestration
Create a test plan
Create a test plan
Improve a failed run
Improve a failed run
Prepare for publishing
Prepare for publishing
Life sciences patterns
Deviation investigation
Use the Orchestration to separate evidence collection from interpretation. Recommended structure:- Required inputs: deviation description, investigation Workspace, evidence files, batch or equipment references.
- Early task: confirmed facts and timeline.
- Middle task: source gaps and SME questions.
- Review point: before root cause analysis.
- Output: CoDraft investigation section with placeholders for unresolved evidence.
CAPA effectiveness check
Use the Orchestration to make evidence and criteria visible before drafting. Recommended structure:- Required inputs: CAPA plan, effectiveness criteria, observation window, metrics CoSheet, evidence files.
- Early task: criteria extraction.
- Middle task: metric review and evidence table.
- Review point: before conclusion.
- Output: CoDraft section plus evidence table.
Validation protocol generation
Use the Orchestration to move from source comparison to controlled drafting. Recommended structure:- Required inputs: URS, risk assessment, equipment or process description, protocol template, Workspace.
- Early task: source map and gaps.
- Middle task: protocol outline and test section plan.
- Review point: before acceptance criteria or final section generation.
- Output: filled CoDraft template with placeholders for SME confirmation.
Batch record review
Use the Orchestration to keep exceptions, source references, and follow-up questions traceable. Recommended structure:- Required inputs: batch record file, product, batch number, review focus, Workspace.
- Early task: section inventory and missing pages.
- Middle task: exception table.
- Review point: before disposition language.
- Output: CoSheet tracker or CoDraft review summary.