Skip to main content

Routing emails by detected topic

This topic describes you how to create a new email topic and route email to a particular work queue. It also explains how text analytics is used for NLP (Natural Language Processing) topic detection and entity extraction.

Walkthrough

U+ Bank recently introduced an email channel for customer interactions. Currently, when customers email the contact center, the emails are routed to a common Work Queue and are not categorized. A Work Queue is a container that holds work that is waiting to be assigned to the email case workers.

As a system architect, you have been tasked with building intelligent email routing into the system.

Use the Web Mail client to send two emails to the support center.

Access mail
Write mail

The first email requests a change of address.

email requesting a change of address

The second email makes a complaint about how a recent payment by the customer was handled.

email with a complaint

Each customer email generates a case in the Email Manager Portal, the support center application. A case is a work request that is created in the application.

As an email case worker, log in to the Email Manager Portal.

In the left pane, click Inbox, and then select Incoming emails to view the emails.

Navigation pane
My worklist

The Incoming email queue sends mail to the assigned email case workers.

In the list, click the email with Moving to a new house subject to display the address change email.

Moving to a new house email

Notice that the case type is identified, but the mail is not routed to the right Work Queue.

Topic detected

In the list, click the email with the Something went wrong subject to display the complaint email.

Something went wrong email

Notice that a case type or Work Queue is not identified.

Case type or Work Queue not identified

To route emails to Work Queues, configure the email channel interface with case types and configure routing of emails based on associated topics.

Log in to Infinity Studio as an administrator. In the navigation pane of Infinity Studio, click Channels , and then click the Channels Landing Page icon.

Channels Landing Page icon

On the Channels landing page, click the MySupport, the email channel used by U+.

MySupport email channel

To configure a new case type, click the Behavior tab.

Behavior tab

The existing case types are listed under the Suggested Cases section.

Suggested Cases section

You can add as many case types as you need.

You can see that the Address Change case is already configured.

Switch to edit mode icon
Address change Case configuration window

Click Add suggested case, and then in the Case type list, select Customer Complaint.

Add suggested case button
Case Type list

On the Text analysis tab, in the Approximate match field, add the words that are likely to trigger this case type. For example, enter complaint, wrong, angry, upset, urgent, urgently. These definitions represent the rules that will be used for topic detection.

Approximate match field

You have now configured the new case type, which associates a complaint email with the File a Complaint case.

Next, configure the routing to ensure the emails are sent to the right Work Queues.

Address change emails need to be routed to the Account Maintenance Work Queue. Complaint emails should route to the Complaints Work Queue.

To route an email to a Work Queue, in the Intelligent routing section, click Add condition.

Intelligent routing section

In the Action list, select Route to work queue. In the Value list, select AccountMaintenance.

Add a When condition with the NLP->Topic as Address Change. The Topic is the result of the NLP text processing that is executed on the email.

Route to work queue condition

Add a condition to route to work queue Complaints, when topic equals File a complaint.

Route to work queue second condition

You have completed all the configuration steps. You can now save your configuration and start the test execution. Use the Test window to check your work.

Test button
test routing condition

Notice that the complaint email is now associated with the File a Complaint topic and the outcome (the Work Queue) is Complaints.

File a complaint topic
test second routing condition

Notice that the email is now associated with the Address Change topic, and the outcome (the Work Queue) is AccountMaintenance. You can also see how NLP has identified different entities in the text.

Address Change topic

You have reached the end of this demonstration.


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice