Conversation Annotation¶
As of: 20.11.2026
Conversation annotation (function_type_id = 13, technical name
conversation_annotation) is the scenario type for studies in which whole
conversations are read and marked at specific passages. Every item is one
conversation. Next to it there can be a context, for example the profile of the
person the conversation is meant to simulate. Raters mark passages with labels
and answer questions about the whole conversation. Several people rate the same
conversations, and LLARS computes the agreement per question and per
label.
The type was built to judge whether simulated clients are usable: Does the person repeat themselves? Do they contradict themselves in the chat or their profile? Do they break role?
When to use it and when not¶
| Situation | Type |
|---|---|
| A conversation gets one category | Labeling (7) |
| Every pre-cut unit in the conversation gets its own category | Conversation labeling (9) |
| Raters read the whole conversation, mark freely chosen passages and answer questions about the conversation | Conversation annotation (13) |
The difference decides what is computed:
- Unit of analysis is the conversation. Every question and every label has its own agreement.
- Passages are free. Nobody cuts the conversation into units beforehand. One annotation can link several passages, also in different messages and in the profile.
- Progress follows the required questions. Annotations are optional, because a clean conversation needs none.
Creating a scenario¶
A scenario of this type is created through the v1 API with
POST /api/v1/scenarios. The scenario wizard does not offer the type, and
scenarios from batch generation cannot be conversation annotation scenarios.
The complete example with two labels, a profile, two questions and one
conversation is in the v1 Scenario API.
Every item needs:
content.type = "conversation"and at least one message{role, content}(timestampandmetadataare optional),- with an active profile panel, the profile text as Markdown in
metadata[<metadata_key>], for examplemetadata.persona_profile.
LLARS checks all items before it stores anything. If an item is invalid, the
server answers with 400 and names all affected items with a reason
(details.code = "invalid_items"). A half-imported scenario never comes into
being. POST /api/v1/scenarios/{id}/items adds more conversations with the same
check.
The order of the messages in the item is the order of the conversation. The
position of a message in this list, counted from 0, is called message_index
in the export.
Configuration¶
The configuration lives under eval_config.config. It has five parts.
{
"instructions": {"de": "Hinweise für Bewertende (Markdown)", "en": "Notes for raters"},
"annotation": {
"labels": [
{"id": "repetition", "name": {"de": "Wiederholung", "en": "Repetition"},
"description": {"de": "Die Person wiederholt sich fast wörtlich.", "en": "The person repeats themselves."},
"color": "#E8A087", "max_spans": 20, "allow_context_spans": false}
],
"annotatable_roles": ["Klient"],
"max_annotations": 200,
"notes": true
},
"context_panel": {"enabled": true, "metadata_key": "persona_profile",
"title": {"de": "Profil", "en": "Profile"},
"format": "markdown", "annotatable": true, "default_open": true},
"questions": [
{"id": "usable", "type": "boolean",
"title": {"de": "Ist das Gespräch brauchbar?", "en": "Is the conversation usable?"}}
],
"notes_enabled": true
}
Labels¶
| Field | Meaning |
|---|---|
id |
identifier from a–z, 0–9, _, -, at most 40 characters, unique |
name |
name in German and English (both keys are required) |
description |
optional, at most 2,000 characters, shown at the info icon of the label button |
color |
optional, #RRGGBB |
max_spans |
passages per annotation of this label, 1–50, default 20 |
allow_context_spans |
annotations of this label may have passages in the profile, default false |
1 to 20 labels are allowed. annotation.max_annotations limits the
annotations per conversation and person (1–500, default 200).
annotation.notes allows a short note per annotation (default true).
Which messages can be marked¶
annotation.annotatable_roles names the roles whose messages may be marked,
for example only ["Klient"]. Case and surrounding spaces do not matter. An
empty list means all roles. The other messages stay visible, but dimmed and not
markable.
The profile next to the chat¶
context_panel shows a column of its own next to the conversation with the text
from the item's metadata[metadata_key]. The text is rendered as Markdown
(headings, lists, bold). Without context_panel there is no profile column.
| Field | Meaning |
|---|---|
enabled |
column on (default true) |
metadata_key |
key in the item metadata, A–Z, a–z, 0–9, _, ., -, at most 64 characters |
title |
heading of the column (optional) |
format |
only markdown |
annotatable |
passages in the profile allowed (default false) |
default_open |
column expanded on first opening (default true) |
Passages in the profile only work if annotatable is set AND the chosen label
has allow_context_spans. This way an annotation “Contradicts the profile”
links a message with the line in the profile it contradicts.
Questions¶
The questions are the same as in the paper review codebook:
single choice (single), multiple choice (multi), yes/no (boolean), number
(number) and free text (text), with sections (sections) and conditional
follow-up questions (show_if). Every question has its own answer texts.
The wording thus fits the polarity of the question, instead of all questions
sharing one yes/no scale. The help of a question (help) and of an option is
shown as visible text below the title, not only as a tooltip. Without
required, a question is required. A configuration needs at least one required
question without a condition.
notes_enabled enables a field for a note on the whole conversation (at most
8,000 characters).
Completion rule¶
| Status | When |
|---|---|
| Done | every visible required question is answered |
| In progress | at least one answer, annotation or note exists |
| Open | none of that |
Annotations alone never make a conversation done. The status is always computed from the current configuration. Hub, statistics, export and agreement therefore count the same way.
Changing the configuration¶
PUT /api/v1/scenarios/{id}/config replaces the configuration and checks it as
on creation. There is no lock after the first annotations yet. If you remove a
label, stored annotations with this label are kept. In the agreement they then
appear with in_config: false.
The interface¶
Three columns, each scrolls on its own. On the left the profile, in the middle the whole conversation, on the right the annotations and below them the questions. All messages are there at once, nothing is hidden.
Header: name of the conversation, number of messages and annotations,
status and save state. If there are instructions (instructions), the button
“Show instructions” expands them.
Profile: The button at the column collapses it to a narrow bar. The conversation does not jump. LLARS remembers the choice per browser.
Marking:
- Select text in one markable message or in the profile. A click on the message number takes the whole message.
- Choose a label in the menu at the selection. The digits 1 to 9 choose the
corresponding label,
Esccloses the menu. Nothing is preselected. - For another passage of the same annotation: select the new passage and choose “Add to active annotation”. You set the active annotation in the list on the right.
Overlapping annotations are shown layered. A click on a highlight makes its annotation active.
Annotation list: per annotation the label, the passages as short quotes with
#message number or “Profile”, and an optional note (at most 1,000
characters). A click on a quote scrolls to the passage. The × removes a passage.
Delete does not ask, but offers “Undo” for 8 seconds.
Saving is automatic, 800 ms after the last change and immediately when you move to the next conversation. The whole state of the conversation is always saved: answers, annotations and note.
Case list: The session overview shows “n messages · m annotations” and the status per conversation. A finished conversation stays editable.
Read only: Whoever may not rate in the scenario sees everything read-only. Then nothing is saved.
On a phone (narrower than 768 px) everything is in one column: the profile as a collapsed field at the top, below it the conversation, then annotations and questions.
Several devices: If you save on one device, a second open device with the same conversation loads the new state, as long as nothing unsaved is open there. With two tabs on the same conversation, the last save wins.
Evaluation¶
Agreement per question and per label¶
The Evaluation tab in the scenario manager shows two tables.
Per question the same table as for paper review: nominal Krippendorff's α and percent for single choice and yes/no, Jaccard α for multiple choice, interval α for numbers, for free text only the number of answers. The metrics per question type are explained in Paper review › Evaluation.
Per label counts whether a person set at least one annotation with this label in a conversation, yes or no. Over this LLARS computes nominal Krippendorff's α, the pairwise percent agreement, the prevalence (share of judgements with the label) and the number of conversations with at least two finished judgements. A very small or very large prevalence makes α unstable.
LLARS does not compute how well the passages themselves agree. There are too many defensible choices for that (character or message as the unit, tolerance, matching of multi-part annotations). The passages are complete in the export.
Which judgements count¶
- Only finished conversations, also for the labels. A conversation without an annotation is the judgement “no finding”, but only if the person finished it.
- Only active raters.
- Conditional questions only count where the person saw the question.
- The values are computed fresh on every call.
Time on task¶
active_time_on_item_ms sums the visible tab time across all sessions, at most
one hour per save. time_on_item_ms is the time from showing the conversation
to the first save that makes it finished.
Exports¶
v1 API (long format)¶
GET /api/v1/scenarios/{id}/results returns the known long format without new
columns (?format=json, csv or jsonl). Per person and conversation with
status “in progress” or “done” there are three row kinds:
vote_type |
Important columns |
|---|---|
review |
one row per person and conversation: status, notes (note on the conversation), answers_json = {answers, answer_meta, annotation_count}, active_time_on_item_ms |
question_answer |
per answered visible question: dimension_id = question id, vote_value_str, vote_value_num, notes = extra text of an option like “Other” |
annotation |
per annotation: vote_value_str = label id, notes = note of the annotation, answers_json = the whole annotation with all passages, created_at/updated_at of the annotation, status of the conversation |
vote_value_str follows the paper review rules: option id, several ids joined
with ; in configuration order, true/false, or number and text. All rows
carry item_id, item_label, voter_id and voter_username. Filter on
status = done for final results.
The answers_json cell of an annotation row is a JSON text:
{
"uid": "8c0e4f6a-1d2b-4c3d-9e8f-0a1b2c3d4e5f",
"label_id": "contradiction_profile",
"note": "Im Profil Pflegekraft, im Chat Lehrerin.",
"spans": [
{"source": "message", "message_index": 1, "message_id": 5121, "role": "Klient",
"start": 0, "end": 52, "text": "Ich unterrichte seit zehn Jahren an derselben Schule"},
{"source": "context", "start": 39, "end": 91,
"text": "Pflegekraft, seit zwei Monaten in einer neuen Klinik"}
],
"created_at": "2026-11-20T14:03:12.123",
"updated_at": "2026-11-20T14:05:40.871"
}
source = "message":message_indexis the position of the message in the conversation (from 0),message_idthe database id,rolethe role.source = "context": the offsets refer to the raw Markdown text inmetadata[metadata_key], not to the rendered view.startandendcount Unicode code points. In Pythoncontent[start:end] == textholds. In JavaScript an emoji counts twice. ThereArray.from(content).slice(start, end).join('') === textholds.uidstays the same across all saves.updated_atonly changes when label, note or passages changed.
This is how a Python script reads all passages of finished judgements:
import json
import requests
resp = requests.get(
f"{BASE}/api/v1/scenarios/{scenario_id}/results",
headers={"X-API-Key": API_KEY},
params={"format": "json"},
)
for row in resp.json()["rows"]:
if row["vote_type"] != "annotation" or row["status"] != "done":
continue
annotation = json.loads(row["answers_json"])
for span in annotation["spans"]:
print(row["item_label"], row["voter_username"], annotation["label_id"],
span["source"], span.get("message_index"), span["start"], span["end"])
The JSON envelope also contains conversation_annotation_metrics with the
agreement per question (questions) and per label (labels). Without any
finished judgement it holds {"error": "No evaluations found"}. The same lists
are in metrics.questions and metrics.labels and in
GET /api/v1/scenarios/{id}/metrics.
Export in the scenario manager (wide)¶
The CSV export of the scenario manager has one row per person and conversation.
It contains status, one column q_<question> per question,
q_<question>_other for questions with an extra field, annotation_count, one
column label_<id> with the number of annotations per label,
annotations_json with all annotations and their passages, notes and
active_time_on_item_ms.
Permissions¶
| Who | May |
|---|---|
| Raters | read all conversations of the scenario, set their own annotations, answers and notes |
| Owner, editor, viewers (manager role), admin | additionally agreement, the state of all people in the data tab, annotations of all people in the conversation detail, and exports |
| Members with a read-only role | conversations and questions read-only |
Raters only see their own state: no annotations of others, no answers of others and no agreement. Otherwise they would know before their own judgement how others marked. All raters get all conversations.
Known limits¶
- v1 API only: no path in the scenario wizard and no editor for labels and questions in the interface.
- No lock after the first annotations: whoever changes labels or questions while rating is under way changes the basis of the evaluation.
- No span overlap in LLARS: the study computes it from the export.
- Without parts, co-pilot, AI suggestions, LLM evaluators and the level system: conversation annotations earn no experience points.
- Two tabs on the same conversation: the last save wins.