create_sentence
Create new example sentences for NLU intent training. Validate with dry run first; after creation, retrain intents.
Instructions
Creates a new example sentence for Cognigy.AI NLU intent training. MUTATING: This modifies the intent's training data. Use dryRun=true (default) to validate first. After creating, call train_intents to retrain.
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": {
"flowId": "<flowId>",
"intentId": "<intentId>",
"localeId": "<localeId>",
"text": "<text>"
},
"name": "create_sentence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The example sentence text | |
| dryRun | No | If true (default), validates without creating. Set to false to actually create. | |
| flowId | Yes | The flow ID containing the intent | |
| intentId | Yes | The intent ID to add the sentence to | |
| localeId | Yes | The locale ID for this sentence |