Upload a CSV or XLSX (Excel Workbook) file containing utterances and their intents to create a Natural Language Understanding (NLU) model. Use this method to quickly create models from your data or other exported models.

Before you begin

  • Make sure that the NLU Workbench plugin, NLU Workbench - Core plugin, and Predictive Intelligence plugin are all installed and activated on your instance.
  • You can create NLU models for Virtual Agent and AI Search.
  • Role required: admin or nlu_admin

About this task

In this example procedure, you're building an NLU model to help Virtual Agent understand user requests regarding calendars.

In a CSV file, you've listed the intents and utterances in two columns.
Figure 1. Sample CSV setup
Intent and utterance formatting in a CSV file.

Note the following for creating NLU models by CSV import:

  • A model needs at least 1 intent with a minimum of 5 training utterances in each intent. For optimum performance, aim to have 15 training utterances per intent.
  • Utterances should not contain a comma.
  • Importing with a CSV file does not preserve entities. Make sure to annotate utterances as needed after importing.

Procedure

  1. Set your scope to the application scope you want for your new model.
  2. Navigate to All > NLU Workbench > Models.
    The Virtual Agent tab opens by default.
  3. Select the tab for the type of model you want to create, such as AI Search.
  4. Select the Create new model button.
  5. In the How do you want to create your model? window, select Import data from a CSV.
  6. In the Add some details window, add the Name and Short description for the model.
    Define details screen for importing data from CSV.
    In this example scenario, you enter Calendar Model for the name and Model for answering and performing calendar requests for the short description.
  7. Select the language and purpose from the drop-down lists.
    In this example scenario, you select English and Virtual Agent.
  8. Click Next.
  9. On the Import CSV screen, click Select file.
    Import CSV screen for importing data from CSV.
  10. Choose the CSV or XLSX (Excel Workbook) file from the pop-up.
  11. Select Next.
    Your model starts building. After completion, select View model to open the model details page.

What to do next

Add intents and training utterances to continue building the model. Add entities and vocabulary to help the model understand inputs from your users. For more information, see Build and train your model.

Add test utterances and intents to build the model's default test set. For more information, see Test set creation and management.