LinkedIn
Copied!

Table of Contents

Configuring intelligent email routing

Version:

Only available versions of this content are shown in the dropdown

To save time and ensure faster resolution of cases, configure your Pega Email Bot to react to user requests and automatically respond to emails. By creating conditions for intelligent email routing, the system can then automatically convert email content to a new interaction case for a user, add the email to a work queue, create a top-level case in an application, or send an automatic reply.

For example, when you configure intelligent email routing to detect a credit card issue in the email subject and a customer email about a problem with their credit card transaction arrives, the email bot automatically routes the email to the correct operator and creates a top-level case to help track the issue in the system.
Define Email channel behavior for the email bot. For more information, see Defining Email channel behavior.

Use the customizable Interaction API for text analytics with your email bot to set up routing conditions based on a decisioning result, to determine the outcome of the interaction strategy. The pyInteractionDF data flow for the Interaction API performs natural language processing through the iNLP text analyzer for the email bot and feeds the outcome to the interaction strategy. The system captures the strategy outcome in the pyDecisionResult property for the Data-pxStrategyResult class. For more information, see Customizable Interaction API for text analytics.

  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 Intelligent routing section, in the Process list, select a processing mode:

    • To trigger only the first action in the list that matches the conditions, select First matching action.

      All other actions in the list with matching conditions are not triggered.

    • To trigger every create case and automatic reply action in the list that matches the conditions, and skip all route to actions, select All matching actions.

      If no create case or automatic reply action in the list match the conditions, the system triggers only the first route to action that matches the conditions.

    Selecting the routing processing mode enables the system to trigger only the first action or every create case and automatic reply action in the list with matching conditions.
  5. In the Intelligent routing section, click Add condition.

  6. In the Action list, select an action that you want to run automatically for email routing.

    Create case
  7. In the Value field, enter an email template, case name, operator, or work queue.

    For the Create case action, enter a case type name: Insurance Claim
  8. Define the validation conditions for a field on the form as the criteria for carrying out the routing action:

    Choices Actions
    Detect email header content
    1. In the When list, select Header and the name of the email field that you want to validate, for example: Subject.

    2. In the comparator list, select the test that you want to perform on the field, for example: Contains.

    3. In the value field, enter or select a value to compare against the user input, for example: price.

    Detect an entity - a word or phrase in an email
    1. In the When list, select NLP Entity , and an entity name, for example: #Email.

    2. In the comparator list, select the test that you want to perform on the field, for example: Is equal.

    3. In the value field, enter a value to compare against the user input, for example: Bob@example.com.

    Detect the topic - the subject matter of an email
    1. In the When list, select NLP Topic .

    2. In the comparator list, select the test that you want to perform on the field, for example: Is equal.

    3. In the value field, enter a value to compare against the user input, for example: Insurance Quote.

    Detect a decisioning result - the outcome of the interaction strategy
    1. In the When list, select NLP Decisioning result .

    2. In the comparator list, select the test that you want to perform on the field, for example: Is equal.

    3. In the value field, enter a value to compare against the user input.

    The email bot can check whether the decisioning result is empty, is not empty, or contains a specified value as the outcome of the interaction strategy, for example, a postal code, or a company or product name. For more information, see Customizable Interaction API for text analytics.

    Detect the positive, negative, or neutral sentiment of an email
    1. In the When list, select NLP Sentiment .

    2. In the comparator list, select the test that you want to perform on the field, for example: Is equal.

    3. In the value list, select what sentiment to compare against the user input, for example: Positive.

    Detect the language of an email
    1. In the When list, select NLP Language .

    2. In the comparator list, select the test that you want to perform on the field, for example: Is equal.

    3. In the value list, select a language to compare against the user input, for example: French.

    Use a when rule
    1. In the When list, select Condition.

    2. In the field to the right of the When list, enter or select a when rule that you want to use as the condition for carrying out the action. For example, you can configure a routing condition to route the email to an operator Andrew Sullivan when the pyIsInWorkList rule is true.

    Each routing condition specifies a single way that the email bot automatically responds to an email.
  9. Optional:

    To add more automatic responses based on email header content, NLP text analysis of the email, or a when rule, repeat step 5 through 8 for other routing conditions.

  10. Specify how your email bot responds when you do not define any criteria or when the email content does not meet any of the criteria that you specified in step 8 by defining the default action:

    1. In the Otherwise area, in the Action list, click an action to perform.

    2. In the Value field, enter an email template, case name, operator name, or work queue.

  11. Click Save.

    Intelligent routing configuration for a first matching action
  12. Verify that the intelligent email routing works as expected.

    For more information, see Testing email routing conditions.
Train the model for the email bot by using sample data. For more information, see Training data for the Email channel.

Have a question? Get answers now.

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