Enabling the search offer feature for Pega Next-Best-Action Advisor
Improve the customer experience by enabling the search offer feature in Pega Next-Best-Action Advisor. By using this feature, you can search for a particular offer by using keywords, for example, the name of your mobile phone model.
For more information about the search offer feature, see Features of the.- In the Pega Customer Decision Hub portal, click .
- In the list of results, click RetentionSearchOffers, and then click Save as.
- In the Configurations section, next to Alternate strategy, click Configure.
- In the Configure Alternate Strategy dialog box:
- Remove the existing strategy by clicking Delete.
- Click the Refresh icon.
- Click Create.
- Create your strategy:
- In the Strategy Record Configuration section, enter Retention offers finder as the name of your strategy.
- In the Context section, ensure that the change applies to your ruleset.
- Click Create and open.
- In the Edit Strategy window, add the shape, and then double-click it.
- In the Proposition data properties dialog box, in the Business issue list, select Retention, and then click Submit.
- Add the shape, and then double-click it.
- In the Filter properties dialog box, configure the
filter:
- In the Name field, enter Filter offers not matching.
- Next to the Filter condition field, click Configure.
- In the Expression builder dialog box, enter @String.contains(@String.toUpperCase(pyLabel), .pySearchText) || @String.contains(@String.toUpperCase(.ShortDescription), .pySearchText), and then click Submit.
- In the Filter properties dialog box, click Submit.
- Add the shape, and then double-click it.
- In the Set property properties dialog box, define the
attributes, as shown in the following figure:
- In the Name field, enter Set Search Context.
- Click Add item.
- In the Target field, enter .pySearchText.
- In the Source field, use the Expression builder to enter @PegaMKTUtilities.GetContextValue("Search", "SearchOfferName", Primary.ContainerPayloadContexts).
- Click Add item.
- In the Target field, enter .pySearchKey.
- In the Source field, use the expression builder to enter @PegaMKTUtilities.GetContextValue("Search", "SearchGroupName", Primary.ContainerPayloadContexts).
- Click Submit.
- On the strategy canvas, arrange, and then connect the shapes in the order shown
in the following figure:
- Proposition Data
- Set Property
- Filter
- Result
- Click Save, and then close the window.
- On the RetentionSearchOffers page, next to Alternate strategy, click Configure.
- In the Configure Alternate Strategy dialog box, select the
new strategy:
- Click the Refresh icon.
- Next to Retention offers finder, click Add, and then click Apply.
- On the RetentionSearchOffers page, click Save.
- Generate the data flow:
- Open the Retention offers finder strategy by clicking it.
- On the strategy page, click .
- On the Referencing rules tab, click the strategy rule to ensure that it has a data flow record.
- If the data flow is not visible, close the strategy window.
- On the supporting decision page, click Edit, and then click Save.
- Repeat step 17.a to step 17.c.
- 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 Determining the current bundle for Pega Next-Best-Action Advisor Next topic Determining profile preferences for Pega Next-Best-Action Advisor