Setting up intelligent routing in an Email Bot
You configure a Pega Email Bot™ by setting up intelligent routing. As a result, when an email is received from a user by the Email Bot, the system triggers several actions, such as creating a business case and automatically replying by email to the user.
Use case
In this tutorial, learn how to define intelligent routing for an Email Bot so that the system triggers all actions with the matching conditions of create case or automatic reply type. For example, in response to a customer's email with an inquiry about a car insurance details, the Email Bot creates a business case and sends an automatic reply to the customer, asking for more information about their car.
This tutorial covers the following topics:
Before you begin
In a Pega Platform™ application test environment, perform the following actions:
- Create the Insurance Quote case type that is related to a car insurance quote with such data types as the following:
- Color
- Make
- Model
- Registration date
- VIN number
- Model year
- Configure an Email channel:
- On the Text analysis tab, add the Insurance Quote topic, and then ensure that it is associated with the words: car, insurance, and car insurance, for example:
- Add the Insurance Quote case type as the suggested case for the Email channel, for example:
- Map entities to the Insurance Quote case data properties, for example:
- Add an automatic reply that asks a user for more details about a car, by using the Car Info Request email template in the Suggested replies section on the Behavior tab. For example, you can ask about the car model, make, year of production, and VIN number:
Configuring intelligent routing
Configure routing conditions for an Email channel so that the Email Bot automatically responds to customer emails. You can set up intelligent routing to trigger all create case and automatic reply actions that meet routing conditions. For more information, see Configuring the Email channel and Intelligent email routing.
For example, you set up intelligent routing so that when a user asks for a car insurance quote by email, the system relates the topic for the received email content to an insurance quote. As a result, the Email Bot starts the Insurance Quote business case and, at the same time, sends an automatic email reply to the user asking for more information about their car.
- Log in to Pega Platform.
- In Dev Studio, click the name of your application, and then click .
- Click the name of the Email channel that includes the Insurance Quote case type that is linked to an email account for the Email Bot.
- Click the Behavior tab.
- In the Intelligent routing section, in the Process list, select All matching actions.
- Click .
- In the Action list, select Create case.
- In the Value field, press the Down arrow key, and then select the Insurance Quote case.
- In the first list below, select NLP > Topic.
- In the second list, select Is equal.
- Click the field next to the list, press the Down arrow key, and then select Insurance Quote.
- Click Automatic reply in the Action list. and then click
- In the Email template field, press the Down arrow key, and then select the Car Info Request email template.
- In the first list below, select NLP > Topic.
- In the second list, select Is equal.
- Click the field next to the list, press the Down arrow key, and then select Insurance Quote.
- In the Otherwise section, in the Action list, select Route to operator.
- In the Value field, enter: [email protected]
- Click .
Testing email routing conditions
After you configure intelligent routing for an Email Bot to process multiple actions, you can verify that the system triggers both Create case and Automatic reply actions when a topic relates to an insurance quote inquiry.
- In the Email channel configuration, click .
- In the From (email) field, enter an email address from which the message is received, for example: [email protected]
- In the From (name) field, enter a name for the email address, for example: John Andrews
- In the To (email) field, enter an email address to which the message is sent, for example: [email protected]
- In the Subject field, enter the email subject, for example: car insurance inquiry
- In the Message field, enter the contents of the email to ask about a car insurance quote for Ford Mustang GT 1968, for example:
Hi, please give me a car quote for my red Ford Mustang GT 1968. Thank you for your help. Roger Smith. - Click . The Email Bot correctly associates the test email with an insurance quote topic with a confidence of 99 percent. The predicted outcome is that the system triggers two defined actions: an automatic email reply with a request for more car details, and an Insurance Quote business case.
Conclusions
You have successfully set up intelligent routing with all matching actions for an Email Bot and verified that the system triggers several actions for which the matching routing conditions are true.