Skip to content
Proud to collaborate with Microsoft for Startups

agents.session-rate ​

Record a quality rating for a completed agent session

Apply a 1–5 quality score (and optional notes) to a completed agent session.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
APIPOST /api/agents/sessions/{session_uuid}/rateSubmit a quality rating for a completed agent session

Input Schema ​

FieldTypeRequiredDefaultDescription
session_uuidstringYes——
quality_scoreintegerYes——
notesstringNo——
organization_uuidstringYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
quality_scorejsonNo——
session_uuidjsonNo——
notesjsonNo——
organization_uuidjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
ratedSUCCESSAgent session ratedquality_score, session_uuid, organization_uuid
failedFAILUREAgent session rated failedfailure_reason, error, error_type, failed_at_state, failed_step, failed_layer

Business Errors ​

CodeMessage Template
AGENTS_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
AGENTS_SESSION_NOT_FOUNDAgent session {session_uuid} was not found in the organization
AGENTS_CONFIG_NOT_FOUNDAgent configuration {agent_config_uuid} was not found in the organization
AGENTS_RUNNER_GROUP_NOT_FOUNDRunner group {runner_group_uuid} was not found in the organization
AGENTS_VALIDATION_FAILEDWorkflow input or domain state failed validation:
AGENTS_CONFLICTConflicting agent domain state:
AGENTS_PROVIDER_FAILEDUpstream provider or runner call failed:
AGENTS_MCP_CALL_FAILEDMCP tool call failed for {tool_name}:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.session-rate",
  "initial_data": {
    "session_uuid": "value",
    "quality_score": 123,
    "organization_uuid": "value"
  }
}