Skip to Content
ComponentsAI Evaluation

AI Evaluation

An AI Evaluation has an AI model grade a team’s work: what they handed in, the numbers they ended up with, the rows in a table. It scores the work against weighted criteria, writes feedback, and can move metrics and data as a result. It runs in the background when a trigger asks for it, and you decide when the team gets to see the result.

It belongs to the Evaluation group of components and attaches to a task only.

What it’s for

  • Grading a hand-in. Score a team’s supplier recommendation (a form they submitted) for cost, reliability and reasoning.
  • Judging an outcome. Look at the team’s Cash, Margin and the Orders table at the end of a round and grade the result.
  • Feeding the simulation. Turn the grade into a change, such as raising Supplier Trust when the recommendation is sound.
  • Holding results back. Grade every team as they finish, but only show the scores once the round is over.

If you can check the work with fixed rules (cash above 0, delivery time under 20 minutes), a Rubric is faster, free and predictable. Use an AI Evaluation when the judgement needs reading and reasoning.

How it works

  1. A trigger on the task runs the Run AI Evaluation action, for example when the team submits.
  2. The evaluation is queued and starts in the background straight away. The team carries on working.
  3. It gathers the team’s input sources and sends them, with your Evaluation Instructions and criteria, to the AI.
  4. The AI scores each criterion and writes feedback. CSP works out the overall score and whether it passes.
  5. The result is saved for that team, any outputs change metrics and data, and the AI Eval events fire.
  6. The team sees the result when your result timing allows.

An AI Evaluation never runs by itself: not when a task is submitted, not when the round ends. Something has to run it.

The grader sees your Evaluation Instructions, your input sources (by alias), your criteria (names and weights) and your output keys. Say in the instructions what you want judged and how, for example Cost: does the team pick the cheapest supplier that meets the 2-hour delivery window?

Setting it up

The editor has four tabs: Setup & Instructions, Input Sources, Outputs & Permissions and Evaluation Criteria. A new AI Evaluation is enabled and visible to players, shows results immediately, has a pass mark of 70, and has no sources or criteria yet.

Setup & Instructions

FieldWhat it doesDefault
Component NameThe title players see on the result card.AI Evaluation
DescriptionOptional note for designers.–
Component EnabledOff hides it from players, and a Run AI Evaluation action skips it: nothing is graded, and the event log records the action as skipped.On
VisibilityVisible to Participants, or Facilitator Only: players never see the card, but it still runs and still changes metrics.Visible to Participants
When to Show ResultsImmediately, When the run ends, Scheduled Delay (with minutes after evaluation) or Manual Release. See When players see the result.Immediately
Evaluation Instructions (YAML)Required to save. Free text or YAML. Sent to the grader with every evaluation: what to judge, and how to score it.Empty

Input sources

Add Source gives the grader something to read. Each source has a type and an Alias, the name the AI sees the value under. If you leave the alias blank, the source’s id is used, which tells the AI nothing, so always name it.

TypeWhat you pickWhat the AI actually gets
SubmissionA Submission Requirement on this task, its subround or its round.The team’s hand-in: its status, every form answer under its field’s label, and the name, type and size of each uploaded file. The text of .txt, .csv, .json and .md files is read too: up to 20,000 characters of each, and 60,000 in all. Other files, such as PDFs and slides, are passed with a note that they weren’t read. Nothing if the team hasn’t submitted.
MetricA static or time-based metric (formula metrics aren’t offered), and Current or Initial.The team’s current value, or the metric’s starting value, as you picked.
Data ResourceA data resource, and a scope: All Data, Single Row, Column or Cell.What the scope picks from the team’s copy of the table: every row, one row, one column (with row ids), or one value.
Previous Component OutputAny other component in reach.For an AI Conversation: its decision outputs, or its score if it made no decision. For another AI Evaluation or a Rubric: its stored result (score, pass or fail, details). For anything else: nothing.

Values are read when the evaluation runs, from the team whose trigger ran it.

Evaluation Criteria

FieldWhat it doesDefault
Add CriterionA criterion name and a weight (%).Weight 0
Passing ScoreThe pass mark, out of 100.70

New criteria start at weight 0, and a criterion with weight 0 counts for nothing. Set every weight.

Outputs

The Outputs & Permissions tab lets the grader change the simulation. It works the same way as on an AI Conversation: see Outputs on the AI Conversation page for every setting and how operations are chosen. In short:

  • Structured Output Schema: the keys the AI may return (string, number or boolean). Visible to participant shows a key’s value on the result card, once the result is visible.
  • Metric Outputs Permissions: an output key can Set, Increase, Decrease, Multiply or apply a % Change to a static or time-based metric, within Min Change / Max Change (outside them, the change is skipped) and Min Value / Max Value (the value is clamped).
  • Data Resource Outputs Permissions: an output key writes into one Column of the row given by Row ID, or of every row the team’s table has when the Row ID is *. With no Row ID, nothing is written (there is no binding to fall back on here). With Update Rows unticked, the target writes nothing.

Outputs are applied as soon as the result comes back, even if the result is held from players. Metric changes raise the usual metric events, and each row written raises Row Updated.

Running an evaluation

The only way to run an AI Evaluation is the Run AI Evaluation action, in a trigger on the task the evaluation is attached to (the action is only offered there). Pick it under Evaluation Component. The list also shows rubrics; choosing a rubric here does nothing (use Run Rubric Evaluation).

A typical setup, on a Pick a supplier for the Koramangala store task:

WhenDo
Submitted (the task’s Submission Requirement)Run AI Evaluation: Supplier choice review
AI Eval PassedUnlock Subround: Replenishment
Task CompletedRelease Results: Supplier choice review

with Supplier choice review set to Manual Release, sources choice (the submission), suppliers (the Suppliers table) and cash (the Cash metric), criteria Cost 40, Reliability 40 and Reasoning 20, and an output trust_change that may Increase or Decrease Supplier Trust by at most 15.

Submitted fires on every hand-in, so the evaluation runs again on each resubmission. Each run replaces the team’s previous result.

In the background

  • The evaluation is saved as a job together with the trigger’s other changes, and starts right after they’re saved. It reads the team’s state at that moment, so it sees everything the same trigger changed.
  • It takes as long as one AI call. Until it finishes, players see Pending.
  • By default each server runs up to 4 evaluations at once; more wait their turn.
  • If saving the result fails, the job is retried, up to 3 attempts in all (waiting 15 seconds, then 30). If the server stops mid-evaluation, another picks the job up after about 5 minutes. If every attempt fails, no result is recorded and players keep seeing Pending.
  • A queued evaluation still finishes if the run is paused or ends in the meantime.

How the score is computed

The AI gives each criterion a score from 0 to 100 and writes feedback. CSP takes the weighted average and rounds it:

score = round( sum(criterion score × weight) / sum(weights) )

Weights are relative, so they don’t have to add up to 100. With Cost 90 (weight 40), Reliability 60 (weight 40) and Reasoning 50 (weight 20): (3600 + 2400 + 1000) / 100 = 70, a pass at a pass mark of 70.

  • The result passes when the score is at or above the Passing Score.
  • A criterion the AI doesn’t score counts as 0.
  • With no criteria, or all weights 0, the score is 0 and the result fails.

When players see the result

When to Show ResultsPlayers see it
ImmediatelyAs soon as the result is in.
Scheduled DelayThat many minutes after the result was worked out (0 means immediately). It appears the next time the player’s page refreshes the team’s state, which it does at least every 30 seconds.
Manual ReleaseWhen a Release Results action, or a facilitator’s Release, releases it.
When the run endsWhen the whole run finishes (it completes on its own, a facilitator ends it, or an End Simulation action ends it), however far each team has got, or earlier through Release Results. A cancelled run never shows them. This option used to be called After All Complete.

When a held result becomes visible, whether by Release Results, a facilitator’s Release, its delay running out or the run ending, Evaluation Results Released fires for the team.

Release Results (Evaluation group, pick the Evaluation Component) releases the result straight away whatever the timing. Things to know:

  • It’s offered in triggers on the task the AI Evaluation is attached to.
  • It releases the result of the team whose event set off the trigger, not every team. To show everyone’s results at the end of the run, use When the run ends.
  • It needs a result to release. In the same trigger as Run AI Evaluation it runs before the evaluation has finished, so it releases nothing (or the team’s previous result). Release from a later event instead, such as Task Completed or a Task Deadline Passed.
  • Running the evaluation again replaces the result, and the new one is held again unless the timing is Immediately.
  • Facilitators can release one team’s held result with Release on the facilitator dashboard. It works the same as a Release Results action, and fires Evaluation Results Released too.

While a result is held, the score, feedback and outputs are withheld from players, but the result exists: its outputs have already changed metrics and data, and the AI Eval events have already fired. Leaderboards count a result only once players can see it.

What players see

On the task page, the result card is on the Details tab. It shows the component name and a badge:

BadgeMeaning
PendingNo result yet: not run, or still running.
Results heldThere’s a result, but it isn’t visible yet.
Score% — Passed / FailedThe result is visible.

The card lists the criteria with their weights from the start. Once the result is visible it adds each criterion’s score, the AI’s feedback, and under Details any output marked Visible to participant.

Where the dashboard layout includes it, the same result shows as a tile: Awaiting evaluation, Results not released yet, or the score with Passed / Not passed.

The task’s progress card has a step, Get feedback on followed by the component’s name. It ticks as soon as players can see the result, whichever timing released it.

With Visibility set to Facilitator Only, or Component Enabled off, players see none of this.

What facilitators see

On the facilitator dashboard, each team’s task list shows the AI Evaluation results for each task: the component name, the score, Passed or Failed, and Held with a Release button while players can’t see the result yet. The component’s card under Components shows every team’s result the same way. The run’s event log lists each AI Eval event with its score and pass mark. The feedback text isn’t shown there.

Triggers and actions

Events. Offered in triggers on the task the AI Evaluation is attached to. They have no component picker: they react to any AI Evaluation on that task.

EventFires when
AI Eval PassedA result comes back at or above the Passing Score.
AI Eval FailedA result comes back below the Passing Score, including a failed run (see Failures).
AI Eval Score AboveA result comes back at or above the Score Threshold (0–100) you set on the trigger.
Evaluation Results ReleasedA held result (of an AI Evaluation or Rubric on this task or above it) became visible: by a Release Results action or a facilitator’s Release, when its Scheduled Delay ran out, or when the run ended.

The result’s metric changes are applied before these events fire. Like most triggers, each fires at most once per team: if the evaluation runs again after a resubmission, a trigger that already fired for that team won’t fire again. See Triggers.

Actions.

ActionWhat it does
Run AI EvaluationQueues the evaluation for the team whose event set off the trigger.
Release ResultsShows that team’s held result now.

Failures

What happenedResult
The AI call fails, or its answer can’t be readA result is still saved: score 0, Failed, feedback Evaluation failed. AI Eval Failed fires. It isn’t retried.
The organisation’s AI text allowance is used upScore 0, Failed, and the feedback says the allowance is used up. AI Eval Failed fires.
Saving the result failsRetried as described in In the background. If every attempt fails, there’s no result.
The component or team no longer existsThe job is dropped.

A failed run looks like a real fail to your triggers. If an AI Eval Failed trigger does something drastic, bear in mind it also fires when the AI couldn’t grade at all.

AI usage

Each run is one AI call and counts as one AI text turn against the organisation’s monthly allowance (see Settings). There’s no prompt test for AI Evaluations in the builder; try one in a test run.

Limits and gotchas

  • Attaches to tasks only. Its events and actions are only offered on that task’s triggers.
  • Evaluation Instructions are required, and the grader follows them.
  • Only text files (.txt, .csv, .json, .md) are read, up to 20,000 characters each and 60,000 in all. Other files are passed by name, type and size only. To have the AI read a team’s reasoning, ask for it in a form field or a text file.
  • A switched-off AI Evaluation isn’t run by Run AI Evaluation.
  • New criteria have weight 0. No criteria, or all weights 0, means a score of 0.
  • Held results still change metrics and data, and still fire the AI Eval events.
  • Release Results in the same trigger as Run AI Evaluation releases nothing new.
  • No Row ID on an output writes nothing; * writes every row.
  • A failed run scores 0 and fires AI Eval Failed.
Last updated on