For AI agents: the complete documentation index is available at https://docs.heys.ai/workstation/en/llms.txt, the full documentation bundle is available at https://docs.heys.ai/workstation/en/llms-full.txt, and this page is available as Markdown at https://docs.heys.ai/workstation/en/cases.md.
  • English
  • Cases

    A regular task suits "please do this for me". Some work comes back again and again, follows a fixed process with only the inputs changing, and needs someone checking every step: weekly reports, first-pass contract review, competitor research, onboarding paperwork… Work like this is a good fit for a Case.

    A Case = one piece of work handled in a fixed sequence of steps:

    • Intake form: what you fill in each time (period, source material, audience…). What you enter is substituted into the instructions of every step;
    • Sequential steps: a few steps run top to bottom, with no branching. Each step is one regular task done by the AI;
    • Outputs and completion criteria per step: each step states which files it must deliver and what counts as done;
    • Review: after each step, a separate, read-only reviewer checks whether it was really done. Only a passing step moves on to the next; otherwise the Case stops and hands it to you.

    Think of it this way: you turn an approach that worked once into a standard process, so next time you can rerun it with a new set of inputs, and every step leaves a record.

    A few terms:

    TermMeaning
    TemplateThe process definition: how many steps, what each does, what counts as done. Built under Templates
    CaseOne specific run started from a template. Editing the template later does not affect Cases already running; each uses the version from the moment it was started
    ReviewerA separate task that checks the result after each step. It can read files on its own to verify, but cannot change anything

    The Cases page

    Cases is in the icon rail's More (…) menu: click More (…) → Cases. If you use it often, click the pin icon to its right to pin Cases to the icon rail, so it is one click away from then on (Interface Overview). The Cases page has no sidebar; the main area sits right next to the icon rail.

    The Cases page: the top half, Start a case, has the template card "示例:周报整理" (sample: weekly report) with a one-line description and Start; the bottom half, My cases, is split into Active, Needs me (with a blue dot and the number 1), Completed and All; one Case in the list is tagged Needs input, with "Current step: 归拢条目" (collect items) below it; Templates at the top right

    The Cases page: the top half, Start a case, has the template card "示例:周报整理" (sample: weekly report) with a one-line description and Start; the bottom half, My cases, is split into Active, Needs me (with a blue dot and the number 1), Completed and All; one Case in the list is tagged Needs input, with "Current step: 归拢条目" (collect items) below it; Templates at the top right
    • Start a case: published and enabled templates. Each card shows the name, a one-line description, Start and the update time. A ready-to-run sample ships with the app, "示例:周报整理" (sample: weekly report), which turns scattered work notes into a weekly report in three steps;
    • My cases: the Cases you started, filtered by Active, Needs me, Completed and All. The blue dot and number next to Needs me show how many Cases are waiting for you. Each Case has a status tag (Running, Needs input, Awaiting decision, Completed, Failed, Cancelled), and the next line shows the current step;
    • The ? next to the title opens a help panel; Templates at the top right opens the template editor (Templates).

    When a Case stops to wait for you, you also get a notification in Notifications (Cron Jobs and Notifications). Click View source to go straight to the Case's detail page.

    Starting a Case

    Click Start on a template card to open the intake form:

    PartDescription
    Case titleLeave blank to derive it from the template name
    Fields defined by the templateDecided by the template author, for example period, raw notes or audience. They can be single-line, multi-line, drop-down, tags (type and press Enter to add) and so on. Fields marked * are required
    AttachmentsUpload with Add files. Like attachments to a regular task, they are handed to the first step, and later steps can read them too
    NotesFree-form notes for the first step; can be left empty
    After submitting, these steps will runLays out the whole flow and each step's completion criteria, so you know what will happen before you start

    When you are done, click the submit button at the bottom of the page (the template sets its text). If a required field is empty, you see "Required fields are still empty: …".

    Case details

    After starting, you land on the Case detail page. You also get here later by clicking any Case under My cases, or View source on this notification in Notifications.

    Case details: at the top, the title "示例:周报整理" (sample: weekly report), template ID, requester, time, Case ID and total tokens used, with Execution session, Review session and Cancel case at the top right; on the left, three steps (1. 归拢条目 (collect items), Needs input; 2. 按主题归纳 (group by topic), Not started; 3. 成稿 (final draft), Not started, manual confirm) and "2/12 runs used"; on the right, the step's instructions, completion criteria (produces file items.md and so on), Edit form values, and Needs your input (the reviewer asks you for the full raw work notes, with a notes box, Case files and Submit below), and Result at the bottom

    Case details: at the top, the title "示例:周报整理" (sample: weekly report), template ID, requester, time, Case ID and total tokens used, with Execution session, Review session and Cancel case at the top right; on the left, three steps (1. 归拢条目 (collect items), Needs input; 2. 按主题归纳 (group by topic), Not started; 3. 成稿 (final draft), Not started, manual confirm) and "2/12 runs used"; on the right, the step's instructions, completion criteria (produces file items.md and so on), Edit form values, and Needs your input (the reviewer asks you for the full raw work notes, with a notes box, Case files and Submit below), and Result at the bottom

    At the top: title, template ID, requester, start time, Case ID (click to copy) and the total tokens used by this Case. Three entry points at the top right:

    • Execution session: the session where the AI does the work, with the full run inside;
    • Review session: the session where the reviewer checks (read-only). It is deliberately kept separate from the execution session, so nothing the reviewer says affects the next step;
    • Cancel case: cancelling cannot be undone. Files already produced are kept.

    On the left is the step list: the status of each step (Not started, Running, Reviewing, Needs input, Awaiting decision, Accepted, Skipped, Invalidated, Not accepted). Steps that need manual confirmation are marked manual confirm. Below, "N/M runs used" shows how many step tasks this Case has run so far and what the limit is. Click any step to look back at its instructions, run and result at the time; click Back to current step to return to the step that is running.

    On the right is the content of the selected step:

    BlockDescription
    InstructionsThe full instructions handed to the AI for this step, with the form values already substituted in
    Completion criteriaThe criteria the reviewer checks against, for example "Produces file: items.md" or "the items must cover every piece of work in the raw notes"
    Edit form valuesExpand it to change the form you filled in when starting; the change takes effect with the retry or the extra input
    Needs your inputAppears when the Case stops to wait for you; see below
    ResultThe AI's answer for this step
    Acceptance resultsThe reviewer's verdict (pass, fail, needs input) and its reasons
    Execution / Review logThe record of how this step was executed and reviewed

    How the execution and review logs are displayed follows the same setting as the session page, Settings → General → Conversation → Execution process: Compact (collapsed by default, showing only the latest note the model wrote), Key steps (expanded, showing only the notes the model wrote, with the tool calls in between merged into a one-line summary), Detailed (one line per round). When you change the setting, detail pages that are already open follow it immediately (Understanding Task Execution, Spaces, Appearance and General Settings).

    When it stops for you

    A Case stops in two situations, and sends a notification to Notifications:

    ① Information is missing and it needs your input. A prominent Needs your input appears on the right, with the specific question from the reviewer or the AI. In the screenshot above, the reviewer says it needs the full text of this week's raw work notes to check items.md item by item.

    1. Answer the question in "Add details…". You can type, or hold down the input box and speak (Starting a Task); click the paperclip to add more attachments if needed.
    2. If you want to change files in the Case directly, expand Case files: you can drag files in to upload, and right-click to create, rename or delete. When you are done, say what you changed in the notes above.
    3. Click Submit, and the step runs again with your input.

    ② The review failed. You see "Review failed — decide what to do next" with the reviewer's reasons. You have two choices:

    • Retry this step: write what should change in the notes box (or leave it empty), or edit the form above or add attachments, then retry;
    • Continue anyway: you judge that the step is actually good enough (for example, the completion criteria were written too strictly) and let it through. The step is not recorded as passed; it is recorded as Skipped.

    A failed review is never retried automatically. It always comes back to you to decide, so the same mistake does not burn time over and over.

    Moving on

    After a step passes review, depending on the template's settings:

    • Automatic: the next step starts right away;
    • Manual confirm: it stops (status Awaiting decision), and you click Continue under Choose what happens next. If the template allows it, you can also Roll back to… a step (all accepted results after that step are invalidated and redone) or Jump to… a step (the steps in between are not run). For both rollback and jump, HeyS first tells you how many steps are affected, and only acts after you confirm.

    When the last step is done, click Finish case to close it; if the last step did not pass but you find it acceptable, click Finish as is.

    Note

    Case execution and review sessions do not read or write memory, and do not show question cards: there is nobody there who can answer at any moment, so every question goes through Needs your input. By default, Case sessions do not appear in the sidebar's session list or in search; open them from the entry points on the Case detail page. These sessions also have no Rewind to here.

    The Case's working folder

    Each Case has its own working folder. The template's bundled files are copied into it when the Case starts; the files each step produces are also placed here, and a later step reads an earlier step's output by file name (for example, step 1 writes items.md and step 2 reads it). Open the file panel of the execution session, or expand Case files on the detail page, to see these files.

    Templates

    Click Templates at the top right of the Cases page to open Case templates. Creating, deleting, editing and publishing templates requires administrator rights; everyone else can only view them.

    Case templates: the template list on the left (示例:周报整理 (sample: weekly report), 3 minutes ago, Enabled), and on the right the hint "Pick a template on the left, or create one"; Browse extensions, Import and New template at the top right

    Case templates: the template list on the left (示例:周报整理 (sample: weekly report), 3 minutes ago, Enabled), and on the right the hint "Pick a template on the left, or create one"; Browse extensions, Import and New template at the top right

    Three buttons in the page header:

    • Browse extensions: jumps to the Cases category of the Extensions page, where you can install ready-made Case templates (Extension Market);
    • Import: choose a template zip to import;
    • New template: enter a template ID (lowercase letters, digits, hyphens), then start editing from the first step. If you are not sure how to write one, the quickest way is to open "示例:周报整理" (sample: weekly report) and adapt it.

    On the left is the template list. Under each template you see its update time and Enabled or Disabled; templates with a draft, or not yet published, are marked as well, and those installed from the extension market carry a market badge. When you select a template, its editor appears on the right, with delete, the enable switch and Export at the top. From top to bottom:

    BlockContent
    BasicsTemplate ID (cannot be changed after creation), name, description (for humans, shown on the card), Objective (for the model): what the whole case is doing and what it finally delivers. It opens the instructions of every step
    Bundled filesScripts, checklists and samples that travel with the template. You can upload, create and edit them; they are copied into the working folder when a Case starts, and steps refer to them directly by file name
    Intake formForm title, form description, submit button label, and the field list (field label, type, required, drop-down options). Add field adds one
    FlowThe default advance (Automatic, Confirm each step), and the allowed moves (Continue, Roll back, Jump)
    Notification channelsWhere Cases started from this template notify you when they stop for someone or finish. Besides Notifications (always on), you can tick webhooks created under Settings → Notification channels (Cron Jobs and Notifications)
    StepsThe steps in order; see below

    Editing steps

    Add step adds a step. Each step can have:

    • Step title;
    • Prompt: what this step should do. Type / to pin a skill, @ to reference a bundled file, and $ to insert a form field (in the form ${raw-notes}, replaced with the submitted value when the Case starts);
    • Expert: which expert this step uses (Experts, Skills and Connectors); optional;
    • Advance: follow the global setting, or set this step to Auto or Manual confirm on its own;
    • Reference earlier outputs: tick output files declared by earlier steps, and this step can read them;
    • Completion criteria: Add criterion, with three kinds to choose from: File exists (write the file name, such as report.md), Schema check (a JSON output must match a schema definition in the bundled files), Model review (one sentence stating what counts as acceptable, optionally naming files to be read to the reviewer).
    Warning

    Completion criteria are not included in the instructions handed to the AI; only the reviewer sees them. Otherwise the AI would deliver just enough to meet the criteria. So which file to produce must also be written into the step's prompt; if it is only in the completion criteria, the review will keep saying "file does not exist". A step with no completion criteria at all passes as soon as its task finishes, with no review.

    Some lessons for writing templates:

    • Make anything that changes with each run (dates, source material, recipients) a form field instead of hard-coding it in the prompt;
    • When a later step needs an earlier step's output: set the file name in the earlier step's prompt, use the same file name in the earlier step's completion criteria, and tick it under Reference earlier outputs in the later step;
    • Do not skip the Objective, or the AI will not know which link of a multi-step process it is in;
    • Model review criteria must be checkable: "well written" is not a criterion; "clearly structured, no 'to be added' placeholders, no facts that are not in the raw notes" is.

    Save, publish, enable

    • Save draft: at the bottom of the editor. A draft does not affect the version in use;
    • Publish: at the bottom of the editor. Only after publishing can new Cases be started with the new version; Cases already in progress keep using the version they were started with;
    • Enable switch (top): when turned off, the template no longer appears under Start a case; existing Cases are not affected;
    • Delete (top): once deleted, it can no longer start new Cases; Cases already in progress are not affected;
    • Export (top): packs the current template into a zip, with the skills and experts it uses written into a dependency list. A Save As dialog opens on export, defaulting to your Downloads folder.

    Turning a session into a Case template

    When something has already worked in a regular session and you want to rerun it the same way later, you do not have to write a template from scratch:

    1. In that session, after the task finishes, the quick button Make a case template appears above the input box.
    2. Click it, and the input box is filled with /session-to-case Turn this session into a case template that can be rerun with new inputs. It is not sent automatically. You can add your own requirements after it, for example "in three steps, with manual confirmation on the last step".
    3. Send it. A built-in skill reads the session, splits it into steps, pulls out form fields, writes the completion criteria, decides which steps need manual confirmation, and identifies the skills and experts used and the bundled files that can be reused.
    4. It only creates a draft; it does not publish. The answer tells you where the draft is, and which dependencies exist only on this computer.
    5. Open the draft under Cases → Templates, check each step's prompt and completion criteria, adjust them, and click Publish.

    You can also just tell the AI "turn this session into a Case template"; the effect is the same.

    FAQ

    Every step fails review, saying the file does not exist. The output file name is only in the completion criteria and not in the step's prompt.

    Step 2 cannot read what step 1 produced. Check whether step 1's prompt sets the file name, and whether step 2 has it ticked under Reference earlier outputs.

    The Case is stuck at Awaiting decision. That step is set to Manual confirm. Go to the detail page and click Continue.

    A step failed, and the acceptance results say it is "unrelated to this step's content". Something went wrong in the execution environment (for example a configuration file could not be read, or the model service could not be reached). Fix the environment first, following the reason in the results, then Retry this step.

    I changed the template, but the Case in progress did not change. That is expected: a Case uses the template version from the moment it was started. Only newly started Cases use the new version.

    The execution log shows only a sentence or two, with no tool calls. Execution process is set to Compact or Key steps. Expand the summary, or switch to Detailed, to see every call.

    I can't find the Cases entry. It is in the icon rail's More (…) menu; pin it to the icon rail if you want it always visible.