Purpose
This document introduces the quick-start usage of the Respan platform span-01 scoring API. The core goal is to score a conversation for escalation with a single API call.
Main Capabilities
- Score a turn in a conversation for escalation likelihood.
- Return three probability values: p_present (probability that escalation occurs), p_absent (probability that escalation does not occur), and p_not_observable (probability that there is insufficient evidence to determine), with the three summing to approximately 1.
- Support scoring multiple behaviors in a single request.
- Support selecting different models via the model parameter: span-01-pro corresponds to span-01, and the default span-01-free corresponds to span-01 Lite.
How to Use
- Create a key in API keys and export it.
- Construct the request: span.input stores the previous messages, and span.output stores the turn to be scored.
- Read the response: for example, p_present is 0.73, indicating that escalation is very likely to occur; p_absent indicates the probability that it does not occur; p_not_observable indicates the probability that the span lacks evidence for a judgment.
- Score your own data: replace span.input and span.output with your own conversation content.
- Add scoring behaviors: add entries to behaviors. Each entry requires an id and a definition. All behaviors will be scored in a single request.
- Set the model: set model to span-01-pro to use span-01; the default span-01-free is span-01 Lite.
- See the API reference for detailed descriptions of each request and response field.
Applicable Scenarios
Suitable for scenarios that require assessing escalation risk or intent in conversations, such as customer service conversation analysis, conversation quality monitoring, and so on.
Limitations
The documentation does not provide more information about pricing, platform support scope, rate limits, or specific model performance.