Creating an embedded strategy for Pega Next-Best-Action Advisor
As a part of determining the static bundle for Pega Next-Best-Action Advisor, create the embedded BundlesWithMembers strategy.
For more information, see Service Package form - Completing the Context tab.
- In the Pega Customer Decision Hub portal, click .
- From the list of results, open RetentionStaticBundles by clicking it.
- On the RetentionStaticBundles page, in the Configurations section, click Retention advertised bundles.
- In the Edit Strategy window, click Check out.
- Under the strategy, add the shape, and then double-click it.
- Click .
- In the Embedded strategy properties dialog box, on the
Inputs tab, define the settings:
- In the Iterate section, enter BundlesWithMembers, and then enter Bundle.
- Click Submit.
- Inside the sub strategy, add the shape, and then double-click it.
- In the Proposition data properties window, define import
settings:
- In the Name field, enter Retention Actions.
- On the Proposition data tab, in the Business issue field, select Retention.
- In the Group field, select Import All.
- In the Proposition data field, select Import All.
- Click Submit.
- Inside the sub strategy, add the shape, and then double-click it.
- In the Filter properties window, define the following
settings:
- In the Name field, enter Allow all except bundles.
- On the Filter tab, in the Filter condition field, use the Expression builder to enter .OfferID != "" && .BundleParent == false.
- Click Submit.
- Inside the sub strategy, add the shape, and then double-click it.
- In the Filter properties window, define the following
settings:
- In the Name field, enter Filter bundle members.
- On the Filter tab, in the Filter condition field, use the Expression builder to enter @contains(Bundle.BundleMembers, .OfferID).
- Click Submit.
- Inside the sub strategy, add the shape, and then double-click it.For more information, see Aggregation.
- In the Group by properties window, add information and
value to the strategy, as shown in the following figure:
- In the Name field, enter Summed Costs.
- On the Properties tab, in the Aggregates section, click Add item.
- In the Property and Source fields, enter .MonthlyRecurringCost.
- In the Property and Source fields, enter .OneTimeCost.
- Click Submit.
- Inside the sub strategy, add the shape, and then double-click it.
- In the Set property properties dialog box, define the
attributes:
- In the Name field, enter Create Discount.
- On the Target tab, click Add item.
- In the Target field, enter .BundleParent, and then, in the Source field, enter false.
- Continue adding properties using the following attributes:
- .pyLabel equal to "Discount"
- .pyGroup equal to "Discount"
- .pyName equal to "Discount"
- .ShortDescription equal to "Advertised bundle discount"
- .ContractLength equal to 24
- .Type equal to "Plan"
- .pyIssue equal to Bundle.pyIssue
- .Priority equal to 1
- .OneTimeCost equal to Bundle.OneTimeCost - SummedCosts.OneTimeCost
- .OneTimeNegotiationCost equal to -1*.OneTimeCost
- .MonthlyRecurringCost equal to Bundle.MonthlyRecurringCost - SummedCosts.MonthlyRecurringCost
- .MonthlyNegotiationCost equal to -1*.MonthlyRecurringCost
- Click Submit.
- Inside the sub strategy, add the shape, and then double-click it.
- In the Set property properties dialog box, define the
attributes:
- In the Name field, enter Set Group Attributes.
- On the Target tab, click Add item.
- In the Target field, enter .BundleName, and then, in the Source field, enter Bundle.pyName.
- Click Add item.
- In the Target field, enter .IsSameType, and then, in the Source field, enter true.
- Click Add item.
- In the Target field, enter .Priority, and then, in the Source field, enter .StartingPropensity.
- Click Submit.
- Inside the sub strategy, arrange, and then connect the shapes in the following
order:
- Proposition Data
- Filter (Allow all except bundles)
- Filter (Filter bundle members)
- Group By
- Set Property (Create Discount)
- Set Property (Set Group Attributes)
- Inside the sub strategy, connect the shapes:
- Connect the Filter (Filter bundle members) shape with the Set Property (Set Group Attributes) shape.
- Connect the Filter (Filter bundle members) shape with the Set Property (Set Group Attributes) shape.
- Connect the Set Property (Set Group Attributes) shape with the Results shape.
- Inside the sub strategy, arrange the shapes as shown in the following figure:
- Connect the Results shape of the sub strategy with the Results shape of the strategy.
Previous topic Determining the static bundle for Pega Next-Best-Action Advisor Next topic Determining the current bundle for Pega Next-Best-Action Advisor