Configuring next-best-action strategies
Pega Sales Automation uses Decision Management capabilities to identify the next best action for every sales opportunity.
Creating propositions
- In the header of Dev Studio, click .
- On the Hierarchy tab, perform one of the following
actions:
- Open an existing business issue, for example SANBAIssue and then a business group, for example Opportunityactions.
- Create a business issue, and then create a business group that matches the scope of the next best action by clicking New group.
- On the Data tab, click New.
- On the Create proposition form, enter the name and description, and then specify the DefaultRank.
- Click Create.
Viewing propositions
By default, you see the implementation application propositions. To view the Pega Sales Automation default propositions perform the following steps:
- In the header of Dev Studio, click .
- To view propositions, on the Hierarchy tab, perform one of
the following actions:
- In the Top Level section, click SR Class.
- On the Localized Label tab, click Private edit.
- In the translate To field, enter SA-SR to see the Pega Sales Automation strategy results.
- Click Save.
- On the Hierarchy tab, click Refresh.
Creating data models
- In the navigation pane of Dev Studio, click .
- Search for and open the D_NBASalesRepOpp data page.
Based on the UsePreLoadedNBA dynamic system setting, the D_NBASalesRepOpp data page uses different activities to load next best actions. For more information, see Next best actions provided out of the box.
- On the Definition tab, in the Data
Sources section, depending on whether you want to use the
preloaded NBAs or not, choose from the following actions:
- If you set the UsePreloadedNBA dynamic system setting to true, in the Data Sources section, set the Source field to Activity, and then set the Activity name field to UsePreloadedNBA.
- If you set the UsePreloadedNBA dynamic system setting to false, in the Data Sources section, set the Source field to Activity, and then set the Activity name field to NBASalesRepOpp.
Creating strategies
- In the header of Dev Studio, click .
- On the Create Strategy page, in the Label field, enter a label for the strategy.
- In the Strategy Results class section, select the business issue and group that you created for the proposition.
- In the Apply to (class) field, enter the primary page
based on the context where this strategy is to be referenced.For more information about the next-best-action architecture, see Next-best-action architecture.
- Click Create and open.To import components and define your strategy, complete the following procedures:
Configuring a Proposition Data component
- In the navigation pane of Dev Studio, click , and then open a strategy you want to edit.
- On the Strategy tab, in the toolbar, click the Strategy Shapes icon, and then click .
- Open the Proposition Data component shape.
- In the Proposition data properties dialog box, enter the name for the proposition.
- Optional: On the Interaction history tab, perform the following
steps:
- Select the Enable interaction history check box.
- In the Fetch when the conditions below are met section, delete all conditions.
- In the Define which properties to use section, click Add item.
- Set the target to .pyOutcome and the interaction data to .pyOutcome.
- Click Submit.
Configuring a Filter component
- In the navigation pane of Dev Studio, click , and then open a strategy you want to edit.
- On the Strategy tab, in the toolbar, click the Strategy Shapes icon, and then click .
- Connect the Filter component to the Proposition Data component.
- Open the Filter component shape.
- In the Filter Properties dialog box, enter the name for the filter.
- In the Filter condition field, enter the .pyOutcome!="Clicked" filter condition.
- Click Submit.
- Optional: To add a second component, perform steps 2 to 3 and connect this Filter component to the first Filter component that you created previously.
- Optional: Open the second Filter component and perform the following:
- In the Filter Properties dialog box, enter the name for the filter.
- Select the Proposition filter check box, and either select an existing Proposition filter, or click Add to create a new Proposition filter.
- Complete the fields on the Create Proposition Filter form and click Create and open.
- On the Default criteria tab, select any check box to filter criteria based on your requirements.
- On the Specific criteria tab, select any proposition based on your requirements, and then click Add criteria.
- Based on your requirements, add the next-best-action qualification filter conditions.
- Click Save.
- Click Submit.
Configuring a Set Property component
- In the navigation pane of Dev Studio, click , and then open a strategy you want to edit.
- On the Strategy tab, in the toolbar, click the Strategy Shapes icon, and then click .
- Connect the Set Property component shape to the Filter component shape that you created in the previous procedure.
- Open the new Set Property component shape.
- In the Set Property Properties dialog box, enter a name
for the property.
- Optional: Configure other properties, as needed.
- Click Submit.
- Connect the Set Properties component shape to the
Result component shape.The system creates the Result shape after you created a strategy rule.
- Click Save.
Configuring substrategies
- In the navigation pane of Dev Studio, click .
- Search for and open a strategy you want to add substrategies to.The following steps use the NextBestActionsForSalesRep strategy as an example. This strategy is called from the data flow in the NBASalesRepOpp activity that is referred to in the data model setup step.
- To add a substrategy, in the toolbar, click the Strategy Shapes icon, and then .
- Open the substrategy component shape, and in the External strategy
properties form, perform the following steps:
- Enter a name for the substrategy.
- On the External strategy tab, select either Current page or Another page depending on your requirements to run a strategy on.
- If you selected Another page, in the Page field, select a page or a page list populated on the GivenSAOpp clipboard page.
- If you selected Current page, in the Page field, select the available strategy in the External strategy field of the GivenSAOpp clipboard page.
- Click Submit.
- Optional: If you want to display the new next best action only when an opportunity is open, connect the new substrategy to the appropriate opportunities Filter component.
- Click Save.
Clearing interaction history
- Log in to Pega Sales Automation as a Sales Ops.
- In the User portal navigation pane, click Tools.
- Click Reset AI sample.
- To clear the interaction history, delete any entry from the PR_DATA_IH_FACT database table.
Troubleshooting configuration
- You click an action to close it but the action is not removed from the
Next Best Actions dashboard widget.
- .pyOutcome is not mapped or it is missing from the Import component of the strategy.
- The filter is not configured to remove the items that have an interaction history.
- The Next Best Action dashboard widget displays only a few
actions or no actions.
- Clear the interaction history.
- An exception occurs when using the strategy.
- Verify that the properties you are using in the Proposition Filter and the when rules are set up to handle null values.
Previous topic Configuring next-best-action use cases Next topic Next best actions provided out-of-the-box