train_intents
Triggers NLU model training for a Cognigy flow. Supports full or quick retraining, with dry-run validation and asynchronous polling until completion.
Instructions
Trains the NLU model for a Cognigy.AI flow. MUTATING: This triggers model training. Use dryRun=true (default) to validate first. Training is async - this tool polls until completion or timeout.
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>"
},
"name": "train_intents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Training mode: 'full' for complete retraining, 'quick' for incremental updates | full |
| dryRun | No | If true (default), validates without training. Set to false to actually train. | |
| flowId | Yes | The flow ID to train intents for | |
| localeId | No | Specific locale to train. If omitted, trains all locales. | |
| timeoutMs | No | Maximum time to wait for training to complete (5-300 seconds, default 60) | |
| pollIntervalMs | No | How often to check task status (1-10 seconds, default 2) |