---
schema_version: "1"
id: 5767664156b1a7b6c5a9419e1ac596683ba8ec97d961840bce46123013e4d71f
title: Manage Strategy Builder Action Strategies
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/nba_strategy_builder_managing.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.nba_strategy_builder_managing.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fa9ede07bb6e702bddcd8d7bef6bf15a972d13cc4d6885af0fd41ce796367721
description: Test, troubleshoot, and create strategies using Strategy Builder management tools.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Manage Strategy Builder Action Strategies

Test, troubleshoot, and create strategies using Strategy Builder management tools.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.nba_ref_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Next Best Action.">View supported editions for Next Best Action</a>.</td></tr></tbody></table>

- **[Save Strategy Builder Action Strategies](https://help.salesforce.com/s/articleView?id=platform.nba_strategy_builder_managing.htm&release=264.0.0&type=5)**  
    Save your strategies or use Save As to create new a new strategy based on an existing one.
- **[Test Strategy Builder Action Strategies](https://help.salesforce.com/s/articleView?id=platform.nba_strategy_builder_managing.htm&release=264.0.0&type=5)**  
    Test your strategy within Strategy Builder to see what recommendations display, given different inputs.
- **[Troubleshoot Strategy Builder Action Strategies](https://help.salesforce.com/s/articleView?id=platform.nba_strategy_builder_managing.htm&release=264.0.0&type=5)**  
    Strategies can be complex, which means it’s sometimes difficult to know where you went wrong when you encounter unexpected results. Use this page to determine the best tool for troubleshooting your strategy.
- **[Inspect Strategy Builder Element Results](https://help.salesforce.com/s/articleView?id=platform.nba_strategy_builder_managing.htm&release=264.0.0&type=5)**  
    View the full details of each step of your strategy’s execution from Strategy Builder’s **Inspector** tab. Trace the path of recommendations through your strategy and identify problems in individual elements. Debug errors and see how your strategy is working behind the scenes.

#### See Also

- [Manage Strategy Builder Action Strategies](https://help.salesforce.com/s/articleView?id=platform.nba_strategy_builder_managing.htm&release=264.0.0&type=5 "Test, troubleshoot, and create strategies using Strategy Builder management tools.")
- [Strategy Builder Strategies](https://help.salesforce.com/s/articleView?id=platform.nba_building_strategy_builder_strategy.htm&release=264.0.0&type=5 "You can create strategies for Einstein Next Best Action using Strategy Builder or Flow Builder. Flow Builder is the recommended method.")

## Save Strategy Builder Action Strategies

Save your strategies or use Save As to create new a new strategy based on an existing one.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.nba_ref_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Next Best Action.">View supported editions for Next Best Action</a>.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d173414e189">User Permissions
                  Needed</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e189 ">To create or manage action strategies:</td>

                <td class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e189 ">
                  <p>Modify All Data</p>
                  <p>OR</p>
                  <p style="margin-bottom:0;">Manage Next Best Action Strategies</p>
                </td>

              </tr>
              <tr class="" id="nba_strategy_builder_saving__d4206e209">
                <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e189 ">To run an action strategy:</td>

                <td class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e189 ">
                  <p>Run Flows</p>
                  <p>OR</p>
                  <p style="margin-bottom:0;">Flow User field enabled on the user detail
                    page</p>
                </td>

              </tr>
            </tbody>
          </table>

Save your new or updated action strategy by clicking **Save**. Create a strategy based on an existing one using **Save As**.

1. To save your action strategy click **Save**.
2. To create an action strategy based on an existing one, click **Save As**.
3. Replace the existing name in **Name**.
4. Replace the existing API name in **API Strategy**.
    
    You can have duplicate strategy names but we don’t recommend it. The API name must be unique.
    
    To automatically generate a new API name, delete the existing API name after you rename the strategy. Click the **Name** textbox, and either tab over to or click the **API Name** textbox.
5. Optionally, replace the existing description.
6. If you want to base your strategy on a different object, click the **Object Where Recommendations Display** textbox and choose a new object.
7. Click **Done**.

#### See Also

- [Strategy Builder Strategies](https://help.salesforce.com/s/articleView?id=platform.nba_building_strategy_builder_strategy.htm&release=264.0.0&type=5 "You can create strategies for Einstein Next Best Action using Strategy Builder or Flow Builder. Flow Builder is the recommended method.")
- [Suggest Options with Recommendation Strategies](https://help.salesforce.com/s/articleView?id=platform.einstein_next_best_action.htm&release=264.0.0&type=5 "Use Einstein Next Best Action to deliver tailored recommendations at the right moment. Define strategies that apply your business logic to surface a few high-value offers such as repairs, discounts, or add-on services. Present the final recommendations in your Automation Lightning app or Experience Builder site.")

## Test Strategy Builder Action Strategies

Test your strategy within Strategy Builder to see what recommendations display, given different inputs.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.nba_ref_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Next Best Action.">View supported editions for Next Best Action</a>.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d173414e393">User Permissions
                  Needed</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e393 ">To create or manage action strategies:</td>

                <td class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e393 ">
                  <p>Modify All Data</p>
                  <p>OR</p>
                  <p style="margin-bottom:0;">Manage Next Best Action Strategies</p>
                </td>

              </tr>
              <tr class="" id="nba_testing_strategies__d6016e209">
                <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e393 ">To run an action strategy:</td>

                <td class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e393 ">
                  <p>Run Flows</p>
                  <p>OR</p>
                  <p style="margin-bottom:0;">Flow User field enabled on the user detail
                    page</p>
                </td>

              </tr>
            </tbody>
          </table>

In Strategy Builder, you can test the strategies underlying your recommendations.

1. Create or edit a strategy.
2. To save your changes, click **Save**.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)
    
    Note Always save before testing to test the most recent version of your strategy.
3. Click **Test**.
4. Select an object for the test.
    
    ![Selecting a case object to test the current strategy.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/next_best_action/nba_testing_select_object.png)
    
    If you don’t see the object that you want to test the strategy against, close the Test Strategy window. Select the properties wheel above the left pane. Change the object that the strategy is linked to by selecting an object from **Object Where Recommendations Display**. If you don’t see an object listed, the strategy hasn’t been linked to a specific object.
5. To test the underlying flow, choose a recommendation.
    
    ![Recommendations displayed for tested strategy.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/next_best_action/nba_testing_case_selected.png)
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)
    
    Note Images associated with recommendations aren’t displayed when testing in Strategy Builder.
    
    The Test Strategy window doesn’t show all possible error messages. Strategies are executed from right to left, starting at Output. If a particular Branch Selector expression results in a closed branch, the child elements of that branch (the elements to the left) are not executed. This process makes strategy evaluation faster, but it also means that any branches with false expressions could have errors that aren’t exposed. The Test button shows what the user sees. To get a complete view of any errors occurring at run-time, use the Inspector tab in the Toolbox. Inspector highlights errors from all elements.

## Troubleshoot Strategy Builder Action Strategies

Strategies can be complex, which means it’s sometimes difficult to know where you went wrong when you encounter unexpected results. Use this page to determine the best tool for troubleshooting your strategy.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.nba_ref_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Next Best Action.">View supported editions for Next Best Action</a>.</td></tr></tbody></table>

If something goes wrong with your strategy, you have several troubleshooting options.

- Start by using the basic test function in Strategy Builder. After you create and save a strategy, click **Test** in the menu bar.
- For a more detailed view of your strategy execution, see the **Inspector** tab in the Strategy Builder Toolbox. The Inspector tab lists specific errors and gives you a detailed view of how your strategy executes.
- If you can’t find the problem in the **Inspector** tab, or you want to troubleshoot for a specific user, try using the [Apex debug log](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_debugging_system_log_console.htm). Next Best Action has a specific debug log category.
- To receive full error reports sent directly to your email, a Chatter post, a text message, or other outlet, try creating a custom notification flow and a Process Builder trigger. Using a [Platform Status Alert Event](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/api/sforce_api_objects_platformstatusalertevent.htm), you can subscribe to Next Best Action events and respond when errors occur.

#### See Also

- [Manage Strategy Builder Action Strategies](https://help.salesforce.com/s/articleView?id=platform.nba_strategy_builder_managing.htm&release=264.0.0&type=5 "Test, troubleshoot, and create strategies using Strategy Builder management tools.")

## Inspect Strategy Builder Element Results

View the full details of each step of your strategy’s execution from Strategy Builder’s **Inspector** tab. Trace the path of recommendations through your strategy and identify problems in individual elements. Debug errors and see how your strategy is working behind the scenes.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.nba_ref_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Next Best Action.">View supported editions for Next Best Action</a>.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d173414e656">User Permissions
                  Needed</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e656 ">To create or manage action strategies:</td>

                <td class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e656 ">
                  <p>Modify All Data</p>
                  <p>OR</p>
                  <p style="margin-bottom:0;">Manage Next Best Action Strategies</p>
                </td>

              </tr>
              <tr class="" id="nba_inspecting_strategies__d2618e209">
                <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e656 ">To run an action strategy:</td>

                <td class="slds-cell-wrap" style="vertical-align:top;" headers="d173414e656 ">
                  <p>Run Flows</p>
                  <p>OR</p>
                  <p style="margin-bottom:0;">Flow User field enabled on the user detail
                    page</p>
                </td>

              </tr>
            </tbody>
          </table>

When testing your strategy doesn’t return the recommendations you expect, investigate the execution details of the strategy or a selected element using the **Inspector** tab.

1. Click the **Inspector** tab.
2. Click **Test** and select an object.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)
    
    Note Provide a sample recordId to test your strategy in the inspector. You can do so in either of the following ways:
    
    - While Inspector is open, click **Test** and select a record. The recordId of the selected record is pasted into the **Record ID** field of the inspector. Close the Test window and click **Run** in the inspector.
    - Copy a record ID from the URL of a record page and paste it into the RecordId field manually.
3. Click **Run**.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)
    
    Note Inspector can show a single element’s results, or the results for all elements in the strategy. If you select an element, you see recommendations surfaced by that element. If you have no elements selected, you see recommendations surfaced by the strategy.
    
    ![Inspector views of recommendations surfaced by strategy and by element](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/next_best_action/nba_inspecting_recommendations.png)
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)
    
    Note To see accurate results, you have to save your strategy before testing it. If you change the strategy or an element, **Run** becomes **Save and Run**.
4. To scroll right, use the horizontal scroll bar at the bottom of the Inspector pane.
    
    ![Veritical scrollbar for Inspector pane](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/next_best_action/nba_inspecting_vertical_scrolling.png)
5. If you want to view recommendations for a different object, click **Test**, clear your current selection, and choose a new object from the dropdown. To update the recommendations in the inspector, click **Run**.