---
schema_version: "1"
id: a59e640ba2fa068248e6f0d971d953124898ce8f8cdec33241cbf8fa4b0647df
title: Launch a Flow When a Recommendation Is Accepted
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/nba_launch_flow_accepts.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.nba_launch_flow_accepts.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 60c8f21537b7ec7ee5984c00328d565fe3f49d9958abce4f605d4fbb9d966e94
description: Each recommendation is associated with a single flow. By default, Next Best Action launches a flow when a user accepts a recommendation. The flow then performs an action, such as updating a case or sending an email.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Launch a Flow When a Recommendation Is Accepted

Each recommendation is associated with a single flow. By default, Next Best Action launches a flow when a user accepts a recommendation. The flow then performs an action, such as updating a case or sending an email.

### 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="d128974e60">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d128974e60 ">To open, edit, or create a flow in Flow Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d128974e60 ">Manage Flow</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d128974e60 ">To create and save Lightning pages in the Lightning App Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d128974e60 ">Customize Application</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d128974e60 ">To run a recommendation strategy on a Lightning record page:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d128974e60 ">
              <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>

For example, on a case, display a recommendation to the service agent to upsell a premium service to the customer. When the agent accepts the recommendation, an autolaunched flow updates the case and the customer’s order history and sends a receipt via email.

Or say that you have an autolaunched flow that sends a templated marketing campaign email to a customer. Your service agents have to determine whether your customers are eligible for this campaign. Doing so involves several clicks and complex calculations. Instead use Next Best Action to check the customer’s eligibility and prompt the agent to accept the recommendation and launch the flow.

1. In Flow Builder, configure a flow that’s associated with a recommendation. Be sure to activate the flow because Next Best Action can’t call an inactive flow from a recommendation.
2. Add a flow action.
3. To add the flow, edit the recommendation.

#### See Also

- [Launch a Flow When a Recommendation Is Accepted or Rejected](https://help.salesforce.com/s/articleView?id=platform.nba_launch_flow_accepts_rejects.htm&release=264.0.0&type=5 "Each recommendation is associated with a single flow. By default, Next Best Action launches a flow when a user accepts a recommendation. The flow then performs an action, such as updating a case or sending an email. But you can also launch a flow when a user rejects a recommendation, which gives you more flexibility. For example, a flow could run an automated process, write to another system, or create a reminder email when a recommendation is rejected.")