Adding a text analyzer for an email bot

To provide better responses by Pega Email Bot, you can configure one or more advanced text analyzers for an application. In this case, the text analyzers examine user input one by one, until the system finds a response.

You can configure each text analyzer to serve a different purpose to help the email bot respond correctly. For example, you can configure the first text analyzer to detect only entities or topics in the email body, another one to detect only entities or topics in the email attachments, and a third one to detect entities or topics in both the email body and attachments.

  1. In the header of Dev Studio, click the name of the application, and then click Channels and interfaces.
  2. In the Current channel interfaces section, click the icon that represents your existing Email channel.
  3. In the Email channel, click the Behavior tab.
  4. In the Text Analyzer section, select the Use advanced configuration check box.
    In the advanced configuration mode, you configure the advanced text analyzers in the system that use NLP and adaptive analytics. If you do not use advanced configuration, you configure the default text analyzer that exactly matches user input to a response. For more information, see Exploring text analyzers.
  5. In the Text Analyzer section, select a method for configuring a text analyzer:
    • To create a text analyzer, click Add text analyzer.
    • To edit an existing text analyzer, click the Switch to edit mode icon next to the text analyzer that you want to edit.
  6. In the Text analyzer type list, select and configure a text analyzer:
    Choices Actions
    Pega NLP Configure an advanced text analyzer that uses the best approximate match by using advanced natural language processing (NLP) and artificial intelligence:
    1. Select whether to detect entities or topics in the context of the email body, attachments, or both.
    2. In the Text analyzer rule field, select or enter a text analyzer rule.
    3. Click Submit.
    iNLP Configure an advanced intelligent NLP text analyzer that uses adaptive analytics text analysis:
    1. Select whether to detect entities or topics in the context of the email body, attachments, or both.
    2. To modify the text analyzer rule settings, click the Open text analyzer rule field.
    3. Click Submit.

    This type of analysis integrates text analytics with strategies, propositions, and interaction history to provide the context for making better next-best-action decisions. For more information, see the Pega Community Customizable Interaction API for text analytics article.

    Dialogflow Configure an external NLP and entity extraction solution from Google:
    1. Select whether to detect entities or topics in the context of the email body, attachments, or both.
    2. In the Dialogflow client access token field, enter the client access token API key for the Dialogflow agent.
    3. In the Dialogflow developer access token field, enter the developer access token API key for the Dialogflow agent.
    4. Click Submit.
    Note: To configure the Dialogflow text analyzer, first obtain and install the Dialogflow text analyzer component from Pega Marketplace. For more information, see Installing the Dialogflow component.
  7. Optional: To add or configure more text analyzers for the email bot, repeat steps 5 and 6.
  8. Click Save.
What to do next: Define topics for text analysis in the email bot. For more information, see Defining topics for text analysis for an email bot.