Key features
- Analysis of collected user inputs. Review and analyze intent trainer records to identify areas for improvement.
- Adding inputs to intents. Choose which intent trainer records enhance specific intents and add them to the example sentences of those intents.
- Instant training. After refining intent trainer records, quickly update the NLU model on the Intent Trainer page. This action eliminates the need to click Build Model on the NLU page.
- Automatic scoring. The Train button automatically scores intents, and you can visually track progress with color-coded icons and scoring data in the list.
Limitations
- By default, the time-to-live (TTL) of intent trainer records is 10 days (14400 minutes). If you have on-premises installations, you can change this value using the following variable:
TRAINERRECORD_TTL_IN_MINUTES. For example, to set the TTL to 30 days, configure the variable as follows:TRAINERRECORD_TTL_IN_MINUTES="43200". - The maximum file size for uploading intent trainer records is 150 MB.
Work with the intent trainer
In Advanced > Intent Trainer, you can:- Filter intent trainer records
- Manage intent trainer records: add to intents, skip, or ignore
- Train the NLU model
- (Optional) Import and export intent trainer records
Filter intent trainer records
Review the collected input records from users and search for them using filters. To search for a specific user input, enter text in the Search utterance field. The list shows the Utterance, Count, Intent and score, Last edited, and Review status columns. If the NLU didn’t find an intent for a record, the Intent and score column shows No intent found.Manage intent trainer records
Based on the analysis, decide which user inputs improve a particular intent, and add those inputs to the corresponding intent. The Review status column in the list is a drop-down for each record. When you select a status, the change is marked as unsaved. To apply all unsaved changes in one step, click Save in the upper-right corner of the page. The button shows the number of unsaved changes, for example, Save (3). To discard all unsaved changes, click Cancel.Add records to intents
Add records to intents
- GUI
- API
- In the Intent Trainer list, in the Review status column of a record, select Assigned to intent.
- In the Add to intent dialog, select a Flow and an Intent to which you want to add the record.
If needed, change the text of the record in the Utterance text field. - Click Add to intent.
- Click Save. Cognigy adds the record as a sentence to the selected intent.
Skip records
Skip records
- GUI
- API
- In the Intent Trainer list, in the Review status column of a record, select Skipped.
- Click Save. This action moves the input to Skipped records, but it reappears in Not reviewed if the same input is entered again.
Ignore records
Ignore records
- GUI
- API
- In the Intent Trainer list, in the Review status column of a record, select Ignored.
- Click Save. This action moves the user input to the Ignored records, and if a user enters the same input, it’s also ignored.
Train the NLU model
After you save records that you added to an intent, click Train next to the Search utterance field. The Train button is available only after you save records that you added to an intent. You don’t need to click Build Model on the NLU page. The intent trainer trains the flows that received new sentences and shows the result in the scoring data and color-coded icons.Import and export intent trainer records
You can import and export records between production and development environments.The intent trainer temporarily stores records. To ensure data safety, export the records for local storage.
Import records
Import records
- GUI
- API
- Go to Advanced > Intent Trainer.
- Next to the Search utterance field, click
(Import Trainer Records). - Select a file in the
CTRAINformat from your computer and click Open.
Export records
Export records
- GUI
- API
- Go to Advanced > Intent Trainer.
- Next to the Search utterance field, click
(Export Trainer Records). - In the Export Intent Trainer Records dialog, select a date range under Select Date range by clicking the date and selecting the desired date in the calendar. By default, the range covers the last seven days.
- To include reviewed records in the file, activate Include reviewed.
- Click Confirm, then Download Trainer Records.
CTRAIN format.