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.
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 |