AI Conversation
An AI Conversation puts a team in a written (or spoken) exchange with an AI character: a supplier who wants a higher price, a store manager with a stock-out, a candidate in an interview. You write who the character is and what it knows, and decide what the conversation is allowed to change when it ends: a metric, a cell in a data table, a score.
It belongs to the Evaluation group of components and attaches to a task only.
What it’s for
- Negotiation. A supplier persona with a floor price and a deadline. The agreed price is written straight into a Unit cost metric.
- Handling a stakeholder. An angry dark-store manager after a stock-out. The team is scored on empathy and on the recovery plan they offer.
- Interviews and assessments. An interviewer persona works through a case with a candidate, then the transcript is scored against weighted criteria.
- Gathering information. A persona that knows facts the team needs (read from a data resource) and only shares them when asked the right way.
How a conversation runs
- A player opens the thread. The persona writes first.
- The team and the persona take turns, in writing or on a voice call.
- The conversation ends, either because the persona reached a decision or because a player closed it (see Conversation modes).
- CSP applies the persona’s decision to metrics and data, scores the transcript if scoring is on, and raises events that your triggers can act on.
- If the team has attempts left, they can start again from scratch.
There is one conversation per team for each AI Conversation component. Everyone on the team sees the same thread and any of them can reply.
Setting it up
The editor has four tabs: Persona & Setup, Context Bindings, Outputs & Permissions and Evaluation Criteria. A new component starts in Hybrid mode, with 30 attempts, transcript storage on, scoring on (pass mark 70, four criteria at 25 each) and voice off.
Persona & Setup
| Field | What it does | Default |
|---|---|---|
| Component Name | The thread’s subject line for players. | AI Conversation |
| Description | Optional note for designers. | – |
| Conversation Mode | Roleplay, Evaluation or Hybrid: how the conversation ends. See Conversation modes. | Hybrid |
| Max Retries | How many attempts a team gets in total, the first one included. Whole number from 1 to 100. See Attempts. | 30 |
| Context Refresh Mode | When bound values are read: Once at start, Every turn or On demand. See Context bindings. | Once at start |
| Enable voice/call mode | Lets players call the persona. Reveals the voice mode and voice pickers. See Voice calls. | Off |
| Start test | Try the persona yourself, by Text or Voice. See Testing in the builder. | – |
| Duration (Minutes) | Shown only in time-based simulations. Caps a single live voice call. It does not limit text conversations. | No limit |
| Component Enabled | Off hides the conversation from players completely. | On |
| Store Transcript | Off keeps only the latest exchange. See Transcripts. | On |
The persona
| Field | What it does |
|---|---|
| Persona Name | Who the AI plays, e.g. Ravi Menon, Fresh Farms. Required. Players see it as the sender. |
| Role Title | The persona’s job, e.g. Key Account Manager. Required. Players see it under the name. |
| Persona Prompt (YAML) | Everything else about the persona, in one YAML document. |
The prompt understands these keys. All are optional.
| Key | What to put there |
|---|---|
background | Who the persona is and what situation they are in. |
personality | How they come across: tone, temperament. |
goals | A list of what the persona is trying to achieve. |
constraints | A list of hard limits: what they must never agree to. |
systemPrompt | Free-form instructions: style, length, what to focus on. |
variables | Notes on each context binding, keyed by its alias: a description (what the value means) and an optional guidance (how to use it). A plain string counts as the description. |
Write {{alias}} anywhere in background, personality, goals, constraints or systemPrompt to insert a binding’s value when the conversation runs. For a bound row, {{alias.column}} reaches one of its columns.
background: Key account manager at Fresh Farms, which supplies produce to your dark stores. Fresh Farms has {{capacity}} crates a day spare.
personality: Friendly but firm. Protective of margin.
goals:
- Agree a 3-month supply contract
- Keep the price per crate at or above Rs 420
constraints:
- Never go below Rs 380 per crate
- Never commit more than {{capacity}} crates a day
systemPrompt: Keep replies to three sentences. Ask about volumes before talking price.
variables:
capacity:
description: Spare crates per day Fresh Farms can supply
guidance: Mention it only if the team asks about volume- The builder refuses to save a prompt that uses
{{name}}when no binding has that alias. - If the YAML can’t be read (or isn’t a set of keys), the whole text is used as free-form instructions instead. Nothing fails, but the structure is lost. A value that starts with
{{needs quotes in YAML, for examplebackground: "{{capacity}} crates spare".
What the AI is told
Every reply is written from one set of instructions, built from the setup in this order:
- That it is playing a persona in a simulation, then its name, role, background, personality, goals and constraints (with
{{…}}values filled in). - Your
systemPrompttext. - Each bound value: its current value, where it comes from, your
variablesnotes, and whether the persona can change it (and through which output) or must treat it as read-only. - The output keys it may produce, with their types, which metric or column each one controls, the allowed operations and the allowed range. See Outputs.
- To stay in character, reply naturally, and answer as a reply plus an optional set of outputs, only when a decision is reached.
Voice calls add instructions to keep replies short, spoken and free of formatting, and to say one short turn at a time.
The persona sees the recent conversation, not all of it: the last 20 messages in a text thread, the last 6 on a standard voice call, and the last 12 when a live call resumes an earlier conversation. Scoring and the end-of-conversation decision read the whole stored transcript.
Conversation modes
| Mode | How it ends | What the player can do |
|---|---|---|
| Roleplay | The moment the persona’s reply carries a decision, or when a player closes it where they can. | Nothing, in a text-only roleplay with outputs: it closes itself. With voice on, or with no outputs set up (so there is nothing to decide), players get Close this thread. |
| Evaluation | Only when a player closes it with Close thread & evaluate. Replies along the way decide nothing. | Close it whenever they’re ready to be scored. |
| Hybrid | Whichever comes first: the persona reaches a decision, or a player closes it with Close this thread. | Close it at any time. |
A decision is a reply that gives a value for at least one of your output keys. A reply with no outputs, or only keys you didn’t set up, decides nothing and doesn’t end the conversation.
When a conversation ends:
- If you defined any outputs and a player closed it, CSP first asks the AI for a final decision over the whole transcript and applies it. In Evaluation mode, this is the only time outputs are decided.
- If scoring is on, the transcript is then scored (see Evaluation).
- A decision reached mid-conversation (Roleplay or Hybrid) is applied and scored in the same step.
Attempts
Max Retries is the total number of attempts, the first included. With 3, a team can open the thread and then start over twice.
- Opening the thread uses the first attempt.
- Once a conversation has ended, Start a new thread begins the next attempt: the transcript is wiped, the bound values are read again, and the persona greets the team afresh. The earlier attempt’s decision and score are dropped from the conversation.
- Metric and data changes the earlier attempt made are not undone.
- The team’s last stored score (used by the leaderboard) stays until the new attempt is scored.
- When attempts run out, players see No retries remaining on this thread.
There is no limit on the number of messages within one attempt.
Transcripts
Each team’s transcript is saved with the run, message by message, with timestamps.
- Store Transcript on: the full thread is kept for the team to scroll back through, and the whole of it is scored.
- Store Transcript off: only the latest exchange (the last player message and the reply) is kept. The persona then effectively forgets anything earlier, players only see the latest exchange, and scoring and the final decision only see that last exchange too. Use it only when you must not keep conversations.
Voice calls are transcribed into the same thread. On the live voice modes, both sides of the call are transcribed and each turn is saved as it happens.
Facilitators can’t read transcripts in the app yet. The run’s event log on the facilitator dashboard lists each conversation event (started, ended, scored, with the score). CSP also keeps a technical record of the AI calls behind each conversation (what was sent, what came back, how long it took).
For engineers, the server returns one team’s conversation to anyone with Simulation Instance: Read: GET /api/simulation-instances/<run id>/teams/<team id>/ai-conversations/<component id>. It gives the status, attempts used, the transcript, the decision’s outputs and the evaluation (score, per-criterion scores, feedback and summary). Add ?traces=1 for the technical record too, oldest first, up to 500 calls. No screen shows this yet.
Players get less: the thread and its score, the outputs marked Visible to participant, and nothing of the bound values, the hidden outputs or the evaluation’s breakdown.
Context bindings
Bindings give the persona live values from the simulation. Add one with Add Binding and pick a source. You can bind metrics and data resources attached to this task, its subround, its round or the whole simulation.
| Source | Options | What the persona gets |
|---|---|---|
| Metric | Current Value or Initial Value (the template’s starting value) | One number for the team. |
| Data Resource | Data Scope: All Data, Single Row (pick a Row ID), Column (pick a Column), Cell (Row ID and Column) | Every row; one row; that column from every row (with row ids); or one value. |
| Static Value | Value | The text you type. |
Alias in Context is the name the persona knows the value by, and the name you use in {{alias}} and under variables. If you leave it blank, the source’s id is used.
All values are the team’s own: each team’s persona sees that team’s metrics and rows.
Context Refresh Mode
| Mode | When values are read |
|---|---|
| Once at start | When the thread opens, and again at the start of each new attempt. Every reply uses that snapshot. |
| Every turn | Before every reply, so the persona reacts to changes made elsewhere mid-conversation. On a live voice call, at the moment each call connects. |
| On demand | Behaves exactly like Once at start. Nothing currently triggers an on-demand refresh. |
Outputs: changing metrics and data
The Outputs & Permissions tab decides what a conversation can change. The persona can’t touch anything you don’t list here.
Structured Output Schema
Each field (Add Field) is a named value the AI may produce when a decision is reached, such as agreed_price or deal_signed.
| Setting | What it does |
|---|---|
| Key | The output’s name. Give it a clear one: the AI sees it. |
| Type | string, number or boolean. |
| Required | Tells the AI the key is required. It isn’t enforced. |
| Visible to participant | Shows the key and its value on the team’s conversation card as soon as it’s produced. |
Metric Outputs Permissions
Add Metric Target links an output key (pick it from Output Variable) to a static or time-based metric. Formula metrics can’t be written.
| Setting | What it does |
|---|---|
| Allowed Operations | Any of Set, Increase, Decrease, Multiply, % Change. |
| Min Change / Max Change | If the change the AI asks for is smaller or larger than this, the whole change is skipped (not trimmed). |
| Min Value / Max Value | The new value is clamped into this range. |
The AI produces one number per key. CSP goes down this list and uses the first operation you allowed whose condition holds:
| Order | Operation | Condition | Result |
|---|---|---|---|
| 1 | Set | None | The metric becomes the number. |
| 2 | Increase | The number is positive | The number is added. |
| 3 | Decrease | The number is negative | The number is added (so it goes down). |
| 4 | Multiply | None | The metric is multiplied by the number. |
| 5 | % Change | None | The metric changes by that many percent. |
So if Set is allowed, the output always sets the metric, whatever else you tick.
A value that isn’t a number, or a number no allowed operation fits (a positive number when only Decrease is allowed), changes nothing.
Data Resource Outputs Permissions
Add Data Resource Target links an output key to one column of a data resource. The only operation is Update Rows, ticked by default: the value is written into the Column of a row. Untick it and the target writes nothing. The row is:
- the Row ID you set on the target; or, if that’s blank,
- the row named by a Single Row or Cell binding on the same data resource.
If neither gives a row, nothing is written. A Row ID of * writes the value into that column of every row the team’s table has at that moment. The value is written exactly as the AI produced it.
When outputs are applied
| Situation | When |
|---|---|
| Text, Roleplay or Hybrid | When the persona’s reply carries a decision, which also ends the conversation. |
| Text, Evaluation mode | Once, from the final decision when a player closes the thread. Replies along the way change nothing. |
| Closed by a player (Roleplay, Hybrid or Evaluation) | From the final decision over the whole transcript. |
| Voice calls (any mode) | Never during the call. Only from the final decision when the conversation is ended. |
A metric changed by a conversation raises the usual metric events, once per change, so metric triggers fire, and formula metrics recalculate. Each data resource row a conversation writes raises Row Updated (see Data Resource).
Evaluation
The Evaluation Criteria tab scores the transcript when the conversation ends.
| Field | What it does | Default |
|---|---|---|
| Enable Evaluation | Off: no score, and no evaluation events. | On |
| Passing Score Threshold (0-100) | The pass mark. | 70 |
| Add Criteria | Each criterion has a name, a weight (0–100) and an optional description of what good looks like. The AI sees all three. | Communication, Negotiation, Problem Solving, Stakeholder Management, 25 each |
How the score is worked out. The AI reads the transcript, the persona’s name, role and goals, and your criteria. It gives each criterion a score from 0 to 100, plus a short summary and feedback. CSP then takes the weighted average:
score = round( sum(criterion score × weight) / sum(weights) )Weights are relative, so they don’t have to add up to 100. For example, Negotiation 80 at weight 60 and Communication 50 at weight 40 gives (80×60 + 50×40) / 100 = 68, a fail at a pass mark of 70.
- A criterion the AI doesn’t score counts as 0. If the AI’s answer can’t be read at all, every criterion counts as 0.
- With no criteria, or all weights 0, the score is 0.
- The score passes when it is at or above the pass mark. A pass mark of 0 means every score passes.
What players get: the score, on the conversation card (shown in red when it fails). They don’t see the summary, the per-criterion scores or the feedback; only a builder test shows those.
Voice calls
Turn on Enable voice/call mode, then pick a voice mode and a voice.
There are three voice modes. Each offers its own set of voices.
| Voice mode | How it works | Needs |
|---|---|---|
| Standard voice (text-to-speech) | The player’s browser turns speech into text, the AI writes the reply, and a text-to-speech voice reads it aloud. | Chrome or Edge. The player must open the thread before calling. If text-to-speech isn’t available, the reply arrives as text only. |
| Live voice (realtime speech-to-speech) | The player talks to the persona live, through CSP’s server. | Nothing extra. A call can start the conversation itself. |
| Live voice on your own key | The same as live voice, on your organisation’s own AI provider key. | The key, added by an admin under Settings → AI Providers (see Settings). Without it, calls fail to start. |
The standard voices come from the platform’s default text-to-speech voice set. If the platform team changes that set, the platform’s default voice is used instead. A voice saved for one mode is replaced by that mode’s default if you switch modes.
What players need: a microphone, and to allow the browser to use it. Check microphone in the call settings tests the microphone and lets them pick a device.
On a call:
- Call starts it; End hangs up. Mute, and Hold / Resume, are alongside.
- Players can interrupt the persona by speaking. On standard voice this needs a few seconds of talking over it, and Allow interruptions can be turned off if the persona hears itself.
- On the standard mode, what the player said is sent after a short pause (about 1.5 seconds).
- After hanging up, the player chooses End conversation & submit (applies the final decision and scores it) or Keep it open to call back later.
- Decisions and scoring are never made during a call, only when the conversation is ended.
Limits on live calls (both live voice modes):
- A call lasts at most 15 minutes (the platform default), or the Duration (Minutes) you set if that is shorter. Players get a warning one minute before the end. When a call is cut off, the conversation stays open: the player can call again or end it.
- A call that stops receiving audio for a minute is ended.
- One live call per player per conversation. Starting a second one (another tab, another device) ends the first.
- By default an organisation can have 25 live calls running at once, builder test calls included. Beyond that, players are asked to try again shortly.
- A dropped connection reconnects automatically a few times.
What players see
On the task page, the conversation sits in the side column as an inbox row: the persona’s name, a status (Not Started, Active, Completed), the subject (the component name), the latest message and its time. Once scored, the row shows the Evaluation score. Output fields marked Visible to participant are listed beneath it. The task’s progress card includes a step, Complete followed by the component’s name, which ticks when the conversation ends. Where the template’s dashboard layout includes the conversation, it appears on the player dashboard too.
Clicking the row opens the thread:
| Action | Where |
|---|---|
| Open the thread | The empty thread. Starts the first attempt; the persona writes first. |
| Reply | The reply box at the bottom: bold, italic and lists are available. Send, or Ctrl/⌘ + Enter. |
| Call / Hide call | The thread header, when voice is on. The call panel docks beside the thread. |
| Close this thread / Close thread & evaluate | The bottom bar, in Hybrid and Evaluation mode, and in Roleplay when voice is on or no outputs are set up. |
| Start a new thread | The bottom bar once the conversation has ended, while attempts remain. |
The header also shows how many retries are left and a refresh button. If the persona replies while the thread is closed, the player gets a replied notification.
Players can only open, reply, call, close or restart while the run is running. If two teammates send at the same moment, the second sees This conversation changed while your request was processing — refresh and try again.
Testing in the builder
Start test (Persona & Setup tab) opens a test chat with whatever is in the editor, saved or not. The template must have been saved once.
- Text chats with the persona as players will. Voice uses the selected voice mode (available once voice is on).
- Context values let you type a value for each binding alias. Leave them blank to use the template’s starting values.
- End & score shows the score, pass or fail, the summary, each criterion’s score, the feedback, and the metric changes the decision would make (they aren’t applied).
- Reset starts the test over.
Tests use the organisation’s prompt-test allowance, not the players’. Each test conversation allows 20 messages and 10 minutes of voice; each person can use 150 test turns a day (reset at midnight IST); the organisation has a monthly test pool (500 turns and 60 voice minutes unless your plan says otherwise). Tests are not recorded against any run.
AI usage allowance
Each organisation has a monthly AI allowance, set by the platform team and shown under Settings → Usage & limits (see Settings). Months run by Indian Standard Time and reset on the 1st.
- AI text turns: one for every AI call. Opening a thread (the greeting), each reply in text or on the standard voice mode, the final decision and the scoring each count one.
- AI voice minutes: time on live voice calls, from connecting to hanging up.
When the text allowance is used up, the next AI call is refused and the player sees This organisation has used its AI text turns for this month (…). Please let your facilitator know. The conversation doesn’t move on (a close that can’t be scored doesn’t close). When voice minutes run out, new calls are refused; a call already connected carries on to its end.
Triggers and actions
These events are offered in the trigger editor on the task the conversation is attached to. Each needs you to pick the AI Conversation.
| Event | Fires when |
|---|---|
| Conversation Started | A team opens the thread for the first time (or a live call starts it). Not on later attempts. |
| Conversation Ended | The conversation ends, by decision or by a player closing it. |
| Evaluation Score Above | It is scored at or above the Score Threshold (0–100) you set. |
| Evaluation Score Below | It is scored below the threshold. |
| Evaluation Passed | It is scored at or above its pass mark. |
| Evaluation Failed | It is scored below its pass mark. |
| Evaluation Completed | It is scored, pass or fail. |
- The evaluation events fire only when Enable Evaluation is on.
- The decision’s metric changes are applied before these events, so a trigger on Conversation Ended sees the new values.
- Like most triggers, each of these fires at most once per team. A second attempt won’t set off a trigger the first attempt already fired. See Triggers.
No trigger action targets an AI Conversation directly.
For example, on a Negotiate with Fresh Farms task: When Evaluation Passed (Fresh Farms negotiation) → Unlock Subround Replenishment. When Evaluation Score Below 40 → Send Notification to Facilitator Only.
Limits and gotchas
- Attaches to tasks only.
- Persona Name and Role Title are required to save.
- Max Retries counts attempts, not messages, and includes the first attempt.
- A Roleplay with no outputs set up gives players a close button, since the persona has nothing to decide.
- In Evaluation mode, outputs are decided once, when the thread is closed.
- Store Transcript off means scoring only sees the last exchange.
- On demand refresh is the same as Once at start.
*as an output Row ID writes every row of the team’s table.- Metric changes raise metric events, and rows written raise Row Updated.
- Players see only the score, never the feedback.
- Facilitators can’t read transcripts in the app yet, and conversation scores don’t appear in the facilitator dashboard’s task list (AI Evaluation and Rubric results do).
- Duration (Minutes) only limits live voice calls.
Related
- AI Evaluation: AI grading of submissions and data, run by a trigger.
- Metrics and Data Resource: what a conversation reads and writes.
- Triggers and Actions: reacting to conversation events.
- Leaderboard: counting conversation scores in the standings.
- Settings: AI providers and usage limits.