LinkedIn
Copied!

Table of Contents

Correcting training data in an email bot

Version:

Only available versions of this content are shown in the dropdown

When you want to improve the ability of Pega Email Bot™ to detect topics, language, and entities, you can review and correct the training data in the system. By correcting the training data and rebuilding the text analytics model, you improve the artificial intelligence of the email bot and teach it to more accurately detect the desired information in emails. The system can then suggest the right business case or email response, based on the detected information.

For example, you can correct training data related to a car insurance request for an email bot, so that later the system correctly identifies a car insurance topic and entities related to a car make and model.
Enable recording of training data. For more information, see Enabling the training data recording for an email bot.

When you enable the recording of training data and the email bot receives an email, the system saves the email as a training record. (You can also manually create a training record that contains sample information for an email from a user). Once you correct the data detected in the training record, you mark the record as reviewed. The system then uses the reviewed training data to rebuild the improved text analytics model.

  1. In the navigation pane of App Studio, click Channels.

  2. In the Current channel interfaces section, click the icon that represents your existing Email channel.

  3. On the Email channel configuration page, click the Training data tab.

  4. Optional:

    If you configure multiple languages for the email bot, to filter data records by a language, in the Language list, select a language.

    To display data records only detected in the Spanish language, select Spanish.
  5. In the list of training records, select a data record.

    The Review training data pane displays the detected entities and the NLP analysis section displays the entity types for the training data record.
  6. Correct the data for the training record:

    Choices Actions
    Modify text
    1. In the Review training data pane, click the More icon, and then click Edit.

    2. In the Update text window, edit the text for the training record, and then click OK.

    Update the topic to be detected
    1. In the Topic field in the NLP analysis section, press the Down arrow key.

    2. Select a more appropriate topic for the training record.

    For example, to correct a training record so that its intent relates to car insurance, select Car insurance.

    Update the language to be detected In the NLP analysis section, in the Language list, select a language.
    Add new entities
    1. In the Review training data section, in the data record content, highlight and right-click the text that you want to map to the new entity, and then click New entity.

    2. In the Create new entity window, in the Entity name field, enter a name for the entity, and then click Submit.

    For example, to create an entity for a car make, highlight the word Ford and enter Car Make as the new entity.

    Update existing entities In the Review training data section, in the data record content, highlight and right-click the text for an existing entity, and then click the name of another entity.

    For example, to make sure the car make in the text maps to the CarMake entity, highlight and right-click Ford, and then click #CarMake.

  7. Optional:

    To use this training record to improve the artificial intelligence algorithm of your email bot, in the Review training data section, click Mark reviewed.

  8. Optional:

    To correct entities in additional training records, repeat steps 5 through 7.

  9. Click Save.

Teach the email bot the reviewed and corrected training records by rebuilding the text analytics model. For more information, see Applying changes to a text analytics model for an email bot.
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.