score_utterance
Score a test utterance against a Cognigy.AI flow's trained NLU intents to identify the best matching intent and its confidence score. Quickly validate utterance recognition accuracy.
Instructions
Scores a test utterance against a Cognigy.AI flow's trained NLU intents. Returns the best matching intent with confidence score. Use this to quickly test if an utterance would be recognized correctly.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"flowId": "<flowId>",
"utterance": "<utterance>"
},
"name": "score_utterance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | The flow ID to score against (will be converted to reference ID) | |
| localeId | No | Optional locale ID (will use flow's default if not provided) | |
| projectId | Yes | The project ID containing the flow | |
| threshold | No | Minimum score threshold to include in results (0-1, default 0.4) | |
| utterance | Yes | The test utterance to score |