Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring email treatments

Updated on September 12, 2022

Configure an email treatment to represent the message that you want to communicate to qualified customers through the email channel. Messages typically consist of images, HTML fragments, and text.

Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub Pega Customer Decision Hub

You can define email treatments as internal or external:

Internal email treatments
For internal treatments, you configure the content of the message in Pega Customer Decision Hub, including the subject line. Then Pega Customer Decision Hub initiates the sending of the message by using the email account information configured in Pega Customer Decision Hub.
External email treatments
External email treatments are pointers to DB/File output templates. Output templates create the DB table content or File for a third-party system to consume. You configure the message content in the external system.

Internal email treatments

Create internal email treatments when you want to define the content of the message in Pega Customer Decision Hub.

There are two ways to design an internal email treatment:

  • By using the Customer Decision Hub portal, in an email treatment using either of the following edit modes:
    • Templated Email, which provides you with several easy-to-use templates for designing appealing emails. This is also the default mode.
    • Simple Rich Text Editor, which provides a blank page with a rich text editor, which allows you to manually compose email.
  • By using external software. Externally designed email content can then be imported directly into an email treatment in HTML format using the Source only edit mode.

Creating an internal email treatment

Create an internal email treatment inside Pega Customer Decision Hub.

  1. On the Treatments landing page, click CreateEmailInternal.
  2. Enter a title or a short description for the Treatment.

    Note: You can change the identifier after entering a title or a short description.
  3. Use the Issue drop-down list and the Group drop-down list to select an issue and a group for the treatment.
  4. Click Create and open.

    Note: The default mode for designing email treatments is Templated Email.
  5. In the Subject field, enter the subject of the email that will be delivered to the customer.

    Note: You can use properties or build expressions to personalize the subject. See Personalizing email content in Simple Rich Text Editor for more details.
  6. In the Key Code field, enter the value that identifies this treatment as defined in a campaign brief or other external marketing system.
  7. Optional: To prevent automatic capture of email opens (impressions) in the Interaction History, disable the Track email open rate checkbox.
    This setting is enabled by default.
  8. Click Edit mode and select one of the available edit modes: Templated Email, Simple Rich Text Editor, or Source Only.
  9. Continue to design the email in one of the three edit modes.

    For more information, see Designing an email treatment using Templated Email or Simple Rich Text Editor or Source Only.

  10. Click Save.
    If the default list of fields available on the email treatment form does not contain a property that you require, see Managing Decision Data rules in Pega Customer Decision Hub.

Designing an email treatment using Templated Email

Use the Templated Email edit mode, which consists of several easy-to-use templates, to design appealing email. Templated Email mode is the default email treatment editing mode.

In Templated Email mode, the system displays a preview area on the left, and an editor pane on the right.
  1. In an email treatment, click Edit mode and select Templated Email.
  2. Click Pick email template or Load template from file, and then select the email template that you want to use.
  3. In the preview area on the left, select a region to modify the offer content, for example, click the Preheader.
  4. Edit the content of the selected area in the editor pane on the right.
  5. Repeat steps 3 and 4 for all the areas in the email template.
  6. Click Save.

Designing an email treatment using Simple Rich Text Editor

Use the Simple Rich Text Editor edit mode, which consists of a blank page with a rich text editor, to manually compose an email.

  1. In an email treatment, click Edit mode and select Simple Rich Text Editor.
  2. Design your email using the Simple Rich Text Editor.
  3. Click Save.

Designing an email treatment using Source Only

Use the Source Only editor mode to transfer the design of an email treatment created in external software back to Pega Customer Decision Hub.

  1. In an email treatment, click Edit mode and select Source Only.
  2. Import (copy and paste) your externally designed email treatment, in HTML format, into Pega Customer Decision Hub.
  3. Click Save.

Personalizing email content in Simple Rich Text Editor

The Insert Property button allows you to add dynamic placeholders to personalize the email with customer or action properties:

Upon clicking the Insert Property button, the Property Parameters dialog can be configured to embed the necessary data field. For example, the property .Customer.FullName can be added as a placeholder. The customer’s real first name will replace the placeholder at the time of email delivery.

In addition to specifying the name of the field to be embedded, you can also specify:

Format
Reference to a Format rule that determines how this field should be formatted.
When
Reference to a When rule that determines whether this field should be displayed or not.

Part of the Property Parameters dialog that shows configured fields.

Personalization rules for externally designed email content

Use Pega:reference markup rules to personalize an externally designed email in Pega Customer Decision Hub.

The syntax to reference the relevant data is <pega:reference name.[name of the relevant data]></pega:reference>.

For example, you can reference Customer.FullName data by using the following syntax:

<pega:reference name=".Customer.FullName"></pega:reference>

The syntax is then replaced with the relevant data inside the email treatment sent to the customer.

The following list contains the most frequently used property references:

  • <pega:reference name=".Customer.FullName"></pega:reference>
  • <pega:reference name=".Customer.AddressLine2"></pega:reference>
  • <pega:reference name=".OfferData.pyName"></pega:reference>
  • <pega:reference name=".OfferData.ImageURL"></pega:reference>
  • <pega:reference name=".OfferData.BundleName"></pega:reference>
  • <pega:reference name=".OfferData.BundleParent"></pega:reference>

Previewing Included Sections

The Show the preview of included section checkbox (at the bottom of the Email Treatment editor) enables users to preview sections inline in the editor.

Testing the Email Treatment

The Test Message tab on the Email Treatment allows you to test the Email Treatment when it is actually delivered.

The following options are available for configuring the test message:

  • To – Recipients of the test email. Select either Test Recipients or Seed List.
    • Test Recipients - Enter list of recipients. Each entry can either be the Operator ID of an existing user in the system or a valid email address. If the operator ID is entered, operator information such as the name and email is populated as the customer data and the test email is sent to the operator’s email address.
    • Seed List - Select a predefined Seed List as the intended recipients of the test email. The data for each seed is populated as the customer data and is visible (if referenced) in the test email. In this case, the Email 1 column in the Seed List (.pyEmail1 property) specifies the email address to which the test email is sent. Refer to the Seed Lists chapter for information on configuring a Seed List.
  • Subject – Enter the subject for test email.
  • Test Account Settings – Specify Email Account settings for the test email.
    • Use Default Email Account - Select this option to use the Default outbound Email Account.
    • Specify Email Account - Select this option to specify the outbound Email Account to use for delivering the test email. Specify the account name in the Account field.
    • From/Reply To: Use Email Account Settings - Select this option to use the sender’s name and reply-to address that is configured on the Email Account being used.
    • From/Reply To: Use Operator Settings - Select this option to use the name and email address of the current operator for these values.
    • From/Reply To: Override Account Settings - Select this option to specify the sender’s name and reply-to address for the test email. Specify these values in the From and Reply To fields.

After the test message has been configured, it can be sent via the Send Test Message button.

Upon clicking this button, the Email Treatment is saved and the test email is sent to the specified recipients. The status of the test is displayed.

Any errors in the test delivery are displayed in case of a failure. These can be corrected and the test email can be resubmitted for delivery.

External email treatments

Create external email treatments in Pega Customer Decision HubPega Customer Decision Hub when you want to create the message in a third-party system. You map external email treatments to a File/DB output templates, which create the content for the third-party system to consume.

Creating a file for an external email treatment

Create a file for an external email treatment in Pega Customer Decision Hub.

  1. On the Treatments landing page, click CreateFile.
  2. Enter a title or a short description for the email treatment.

    Note: You can change the identifier after entering a title or a short description.
  3. Select an issue and a group for the treatment.
  4. Click Create and open.
  5. In the Repository name field, enter the name of an existing repository or create a new repository.

    Note: For more information, see Creating a repository.
  6. In the File path field, enter the file name.
  7. Optional: To ensure that all data in the file is the result of a single run, select the Finalize template at the end of each outbound run checkbox.
  8. Optional: To ensure that all data in the file include a finalization data-time in file name, select the Include finalization date-time in file name checkbox.
    By default, this setting is active.
  9. Select the delimiter type and the delimiter.
  10. Click Save.

Creating a Database template for an external email treatment

Create a Database template for an external email treatment in Pega Customer Decision Hub.

  1. On the Treatments landing page, click CreateDatabase.
  2. Enter a title or a short description for the treatment.

    Note: You can change the identifier after entering a title or a short description.
  3. Select an issue and a group for the treatment.
  4. In the Context field, enter the platform for the treatment.
  5. Click Create and open.
  6. In the Database field, enter a name for the external database.
  7. In the Table field, enter the name of the database.
  8. Optional: To ensure that all data in the file is the result of a single run, select the Finalize template at the end of each outbound run checkbox .
  9. In the Writing option section, select a condition for the template data:
    • Overwrite existing data
    • Append to existing data
  10. Click Save.

Bundled email treatments

When you design Email Treatments for bundles, consider the type of bundle. A typical Email Treatment for an action bundle includes an overall description of the bundle and details for each of its members. Additionally, based on the bundle type, response links can be provided at either or both the bundle and member level.

The top level BundleTemplate Email Treatment is provided as an out-of-the-box sample. The following figure shows a template email for sending a bundle of offers:

BundleTemplate
Part of the Simple Text Editor interface that shows the details for the BundleTemplate Email.

The BundleTemplate treatment includes the following parts of a bundle Email Treatment:

  • Bundle name - References the .OfferData.BundleName property
  • Response link for bundle – Added using the Insert Button functionality
  • Impression capture - References the RecordImpression section. With bundles, you typically include the impression capture section at the parent level.
  • Member details - References the BundleTemplate section. This section uses the BundleOfferMembers page list property to display the member actions in a grid with accept and reject response links for each member.
    BundleTemplate
    Part of the interface that shows the details for the BundleTemplate.

    The BundleOfferMembers property is populated at runtime to contain details of the various bundle members. This can be used in dynamic containers such as the repeating grid. You can also make static references to member actions in this page list. For example, to display the name of the first action in the bundle, you reference the .BundleOfferMembers(1).OfferData.pyName property.

    Another common usage pattern is to update the grid in the BundleTemplate (or equivalent) section at the top level, which is PegaMKT-Work-Offer, to include a sub-section for displaying relevant action information. For example, MemberOfferDetails. You can then create a top-level version of this section to serve as a base for all member actions. To customize the details for a particular issue or group, you must override the details section in the appropriate issue or group class.

Identifying customers who open or respond to email treatments

Identity matching occurs when users open and respond to marketing emails sent through the application.

The following associations are captured when a customer opens a marketing email:

  • CustomerID to UniqueID
  • CustomerID to Email Address
  • CustomerID to IP Address
  • UniqueID to Email Address
  • UniqueID to IP Address

The following associations are captured when a user clicks on a response link in a marketing email:

  • CustomerID to UniqueID
  • CustomerID to IP Address
  • UniqueID to IP Address

Have a question? Get answers now.

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

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.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us