Skip to main content

Creating a Pega Email Bot

2 Tasks

15 mins

Visible to: All users
Beginner Pega Platform 8.8 Email English


The manager at U+ Bank wants to automate replies and notifications in the bank application as it reduces strain on the bank's customer experiences, employee productivity, and existing processes. In preparation, you have already created the email account for the bank. You are now expected to create an email bot to handle the incoming address change requests at U+ Bank.

Use the following credentials to log in to the exercise system:

Role User name Password
System Architect EmailBotAuthor install12345!
Caution: To reuse the exercise system from a previous challenge, first complete the Creating an email account challenge. Otherwise, click Initialize Pega or Reset Instance in this challenge.

Your assignment consists of the following tasks:

Task 1: Create an email bot

In the Create new channel interface area, click Email to create and open a new email bot instance

Task 2: Add cases and responses to the email bot

On the Behavior tab, in the Suggested cases section, click Add suggested case to add a new case.


You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Create an email bot

  1. Log in to App Studio as the System Architect with user name EmailBotAuthor using password install12345!.
  2. In the navigation pane of App Studio, click Channels to create new channel interface.
  3. In the Create new channel interface area, click Email to create and open a new email bot instance.
  4. In the Details section, enter the following information:
    1. Email channel name: My Email Bot
    2. Description: My first email bot demo
      CH26981-3-EN-email bot details
  5. In the Email handling section, click Add email account.
  6. In the Email accounts list, select UbankHelper.
    CH26981-3-EN-Email handling
  7. In the Additional settings section, in the Reference operator list, select EmailbotAuthor. Any work that your email bot completes is performed in the context of this operator.
  8. In the upper right of the tab, click Save to establish a listener to the selected email account.
  9. Under the Email accounts list, click Verify to confirm that the email listener is successfully established.
    CH26981-3-EN-email accounts

2 Add cases and responses to the email bot

  1. On the Behavior tab, in the Suggested cases section, click Add suggested case to add a new case.
  2. In the Case type list, select Address Change.
    CH26981-3-EN-suggested cases
  3. To ensure that entity values extracted from the inbound email are copied into the correct case properties, you map the entities to the properties.
    1. In the Address Change dialog box, click the Mapping tab, then click Add mapping.
    2. Map entity types to the Address Change case model as follows:
      Address Change case and its entity to case property mappings
      Note: You can find Address entity under NLP > Entities > Address and From (name) and From (email) entities under Header.
  1. Click Submit to close the dialog box.
  2. Save the channel.
    Note: If the entity list is incorrectly populated, you may have to close and re-open the Channel and interfaces tab.
  1. On the Behavior tab, in the Text Analytics section, click Edit topics to open a dialog box that displays all of the topics available within your channel's text analyzer.
    CH26981-3-EN-text analytics

    The Address Change topic is automatically created after you add the Address Change case.
  2. Click Add item to add a new topic called Complaint.
    CH26981-3-EN-add item
    Note: Before a suggested reply is added to the channel, you must create a topic to associate to the response.
  1. Click Submit to close the dialog box,
  2. Click Save.
  3. On the Behavior tab, in the Suggested replies section, click Add suggested reply to add a new reply.
    1. In the Add suggested reply dialog box, in the Email template list, select Apology.
      Optional: Click Edit to modify the Apology email template.
    2. In the Associate topics list, select Complaint.
    CH26981-3-EN-suggested reply
  4. Click Submit.
  5. Save your configuration.

Available in the following mission:

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