Help us improve our product documentation on docs.cognigy.com by sharing your thoughts in a quick survey. Your feedback shapes the future of our content!
Help us improve our product documentation on docs.cognigy.com by sharing your thoughts in a quick survey. Your feedback shapes the future of our content!
Generate a NLU score for an sentence by analyzing Intents in a Flow and Locale.
curl --request POST \
--url https://api-trial.cognigy.ai/new/v2.0/projects/{projectId}/nlu/scores \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"flowReferenceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"localeReferenceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sentence": "<string>"
}
'{
"scores": [
{
"id": "8870303c-2934-4145-a9c4-e2d89f05e3cf",
"name": "food",
"score": 0.6269008375746541,
"negated": false,
"confirmationSentence": null,
"confirmationSentences": null,
"disambiguationSentence": null,
"flow": "43b8f152-f82c-4d0b-b7ae-04db34de8b68"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
Use this file to discover all available pages before exploring further.
Supply the API Key in the HTTP-Header
24^[a-z0-9]{24}$Returns a collection of matching NLU Intents and Scores for the given sentence.
NLU scores based on the analysis.
Show child attributes
curl --request POST \
--url https://api-trial.cognigy.ai/new/v2.0/projects/{projectId}/nlu/scores \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"flowReferenceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"localeReferenceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sentence": "<string>"
}
'{
"scores": [
{
"id": "8870303c-2934-4145-a9c4-e2d89f05e3cf",
"name": "food",
"score": 0.6269008375746541,
"negated": false,
"confirmationSentence": null,
"confirmationSentences": null,
"disambiguationSentence": null,
"flow": "43b8f152-f82c-4d0b-b7ae-04db34de8b68"
}
]
}