Determining the investment budget for Pega Next-Best-Action Advisor
Pega Next-Best-Action Advisor requires a certain strategy logic for the Next-Best-Action Designer template for Pega Next-Best-Action Advisor to work properly. Set that logic by creating the supporting decision for determining the investment budget.
- Launch the Pega Customer Decision Hub portal by logging in with administrator credentials.
- Click .
- In the list of results, click Budget.
- In the Configurations section, next to Alternate strategy, click Determine budget investment.
- In the Edit Strategy window, click Check out.
- Add the shape, and then double-click it.
- In the Set property properties window, provide details, as
shown in the following figure:
- In the Name field, enter Cart Items Selected.
- On the Target tab, in the Target field, enter .SubscriptionID, and then, in the Source field, enter Primary.SubscriptionID.
- In the Target field, enter .CartMembers.
- In the Source field, use the Expression builder to enter @PegaMKTUtilities.GetContextValue("CartItems",.SubscriptionID, Primary.ContainerPayload.Contexts).
- Click Submit.
- Add the shape, and then double-click it.
- In the Set property properties window, provide
details:
- In the Name field, enter Calculate Budget.
- On the Scorecard tab, select the Strategy result radio button.
- In the Scorecard model field, enter CalculateBudget.
- Click Submit.
- Add the shape, and then double-click it.
- In the Decision data properties window, provide
details:
- In the Name field, enter Budget Params.
- On the decision data tab, select the Strategy Result radio button.
- In the Decision Data field, enter BudgetParameters.
- Click Submit.
- Add the shape, and then double-click it.
- In the Set property properties window, provide details, as
shown in the following figure:
- In the Name field, enter Set Budget.
- On the Target tab, click Add item.
- In the Target field, enter .pyMaxBudget, and then, in the Source field, enter @toDecimal(.pxSegment).
- In the Target field, enter .pyTargetBudget, and then, in the Source field, use the Expression builder to enter .pyMaxBudget*BudgetParams.TargetThreshold.
- In the Target field, enter .pyMinBudget, and then, in the Source field, use the Expression builder to enter .pyMaxBudget * BudgetParams.MinimumThreshold.
- Click Submit.
- On the strategy canvas, arrange, and then connect the shapes in the order shown
in the following figure:
- Set Property (Cart Items Selected)
- Scorecard Model
- Set Property (Set Budget)
- Results
- Decision Data
- Click Save, and then Check in.
- In the Configure Alternate Strategy dialog box, select the
new strategy:
- Click the Refresh icon.
- Next to Determine investment budget, click Add, and then click Apply.
- On the Budget page, click Save.
- Verify if the supporting decision is working.For more information, see Verifying supporting decisions for Pega Next-Best-Action Advisor.
- Tutorial: Configuring supporting decisions for Pega Next-Best-Action Advisor
Previous topic Creating the supporting decision for the investment budget Next topic Specializing the Calculate budget scorecard