Skip to navigation

Behaviors

Flag refusals, missed instructions, completed tasks, and your own definitions on every span.

A behavior is a plain-language definition of something your agent does, such as refusing a request or promising a refund it can’t give. Respan scores every new span against each behavior that’s on, so you can see how often it fires and open the spans behind it. Behaviors are scored by span-01.

Behaviors need the Team plan or higher, and they’re on by default for new organizations. If they’re off, an organization admin can click Turn on behaviors above the Logs table.

Every behavior is an Issue (something to reduce), a Win (something to encourage), or Info (something to keep an eye on). It fires on a span when its confidence is above 65%, and scores too close to 65% to trust are marked “Uncertain”. Only new spans are scored, so turning a behavior on or off, or editing it, doesn’t rescore past spans.

Built-in behaviors

BehaviorTypeFires when
RefusalInfoThe assistant declines, deflects, or says it cannot help instead of attempting the request. Not when it attempts the request, even if it reports that it found nothing.
Instruction missIssueThe response clearly breaks an explicit instruction: wrong output format or language, an ignored limit, or a different task than the one asked. Not when the instruction is ambiguous.
Incomplete answerIssueThe assistant leaves a material part of the request unanswered without acknowledging the gap.
Structured outputInfoThe response uses a structured format such as JSON, a table, a list, or a code block.
Task completeWinThe assistant delivers the requested result or completes the requested action, as shown in the trace.

Create a custom behavior

1

Open the board

Go to Observability › Logs and click New custom behavior. You can also click New in the Behaviors section of a span’s Metrics tab.

2

Describe each behavior

Type a definition in “Describe a behavior to flag in your logs” and press Enter to pin it as a note. Or click a suggestion chip to pin a ready-made one; hover a chip to read its definition. You can pin up to 20 at a time, and click a note to edit it.

Say what counts and what doesn’t. For example, Refusal doesn’t fire when the assistant attempts the request, even if it reports that it found nothing.

3

Sort the notes

Click Finish and sort. Respan names each note and sorts it under “Issues”, “Info”, or “Wins”. Drag a note to another column to change its type. A definition that isn’t a behavior is removed.

The behaviors board after sorting: Refund promise under Issues, Human handoff under Info, and Clarifying question under Wins, with Keep editing and Create 3 behaviors
4

Create them

Click Create behavior, or Create N behaviors for several. Nothing is created until you do, and Keep editing takes you back to the board. If some fail, they stay on the board; click Retry N behaviors.

New spans are scored for your behaviors from then on.

Review where a behavior fired

1

Open its type

In Logs, click the Issues, Wins, or Info card in the signals panel. The panel lists each behavior of that type with its share of spans, count, and change from the previous period.

2

Pick the behavior

Click its name. The table filters to its spans, and the row opens with a By model split. Switch it to By customer, By provider, or By prompt.

The Issues view listing Instruction miss, Incomplete answer, and Refund promise, with Refund promise open and split by model
3

Narrow to a moment

Click a cell in the behavior’s row. The table lists its spans from that window.

4

Open a span

Click a span in the table and open the Metrics tab. The Behaviors section leads with what fired, such as “2 issues”. Click a behavior to see its definition, Confidence, Share of spans, Change, and a suggested next step.

A span's Behaviors section: 2 issues, with Refund promise open at 93% confidence, Happened and Not happened buttons, Show matching spans, and Copy fix prompt
5

Correct the verdict

If the model got it wrong, click Happened or Not happened. Your call replaces the model’s score, the row shows “Overridden”, and every count uses your call.

Show matching spans filters the table to every span with that behavior. You can also filter Logs with the Behavior quick filter (Issue, Win, or Info), or pick Behavior from More filters for specific behaviors.

Act on a behavior

An open behavior row in the signals panel has Add tag, Copy fix prompt for issues, and a ⋯ menu:

  • Edit definition and Delete, for custom behaviors. Edits can take about a minute to reach new spans, and deleted behaviors can’t be recovered.
  • Turn off stops scoring new spans for it.
  • Create monitor makes a monitor for this behavior with your current filters, turned off, and opens it. See Monitors.
  • Open reports goes to Settings › Reports. Scheduled reports include behavior counts.
  • Copy behavior ID, Copy behavior link, and Copy as Markdown link.

Copy fix prompt copies a prompt for your coding agent. It asks the agent to investigate through the Respan MCP server and propose the smallest safe fix.

Turn behaviors on or off

In a span’s Metrics tab, click Manage. “Manage behaviors” lists your “Custom” and “Built-in” behaviors, each with a switch. A turned-off behavior stops scoring new spans, and its past scores stay. Built-in behaviors can be turned off but not edited or deleted.

In the signals panel, turned-off behaviors fold under “Turned off · N” at the end of each behavior view. Click Turn on to score one again.