Frequently asked questions about treatments
See the following topics for additional information, tips and tricks, and best practices.
Can I add custom attributes to a web or mobile treatment form?
Yes. If the default list of fields available on a web or mobile treatment form does not contain a property that you require, edit the Decision Data rule form used by the treatments.
- Add a new property by doing the following steps:
- In Dev Studio, click .
- Click .
- Specify the name and type of the property.
- In the Hierarchy list, select Top Level as the context.
- Click Create.
- Switch to the Pega Customer Decision Hub portal.
- Update the Treatment decision data rule by doing the following steps:
- Click .
- Click Manage treatments.
- On the treatment rule form, click the Form tab.
- In the Form fields section, review the list of properties
which are available as fields on the treatment form.
- To add a field, click the Add field button.
- To remove a field, click the Remove property icon.
- Switch to Dev Studio.
- Add the property to the Treatment section by doing the following steps:
- Search for and open the CustomWebTreatmentElement extension section.
- Save the section into your implementation ruleset by clicking Save as.
- On the Design tab of the new section, add the property that you created.
- Update the WebTreatmentStrategy or
MobileTreatmentStrategy by doing the following steps:
- Search for and open the WebTreatmentStrategy or MobileTreatmentStrategy.
- On the Strategy tab, open the Web Treatment Library or Mobile Treatment Library component.
- In the Decision data > Import section, clear the
Decision Data field, and then re-select the
WebTreatmentsor MobileTreatments
decision data rule.
This updates the value of the Results in class field to your top-level SR class, for example, Data-Decision-Request-Customer.
- On the Mapping tab of the component, click Remap properties, and then click Submit.
- Open the Join Treatment Library component.
- On the Properties mapping tab of the component, click Add item to add the property that you created, and then click Submit.
- Configure the output for the new property by doing the following steps:
- Click .
- Find and open the ExtendedContainerProperties data transform.
- Save the data transform into your implementation ruleset by clicking Save as.
- On the Pages & Classes tab, make your new property available for real-time containers by clicking Add item.
- Find and open the pyDefaultWorkingSet data transform.
- Save the data transform into your implementation ruleset by clicking Save as.
- On the Pages & Classes tab, make your new property available for real-time container data flows by clicking Add item.
- Switch to the Pega Customer Decision Hub portal.
- Click .
- Re-save the Channel tab so that the real-time container data flow is regenerated with the new treatment property selected.
How can I be sure that I am using effective treatments? Should I do AB testing for treatments?
The Next-Best-Action strategy uses adaptive models to determine which treatment is best and most effective. This is done by continuously testing the treatment success rate, by randomly increasing the propensity of certain treatments to allow the model to explore and learn about other situations that could yield positive results. If you use Next-Best-Action, you do not need to manually test the effectiveness of your treatments.
Previous topic Sections Next topic Defining customer audiences with customer segments