---
schema_version: "1"
id: ed85c0c7bfb4b6f1befebac1915cb418bbe26f044e4606db6b77042b3720bf6a
title: Create a Custom Notification Flow for Next Best Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/nba_platform_status_alert_event.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.nba_platform_status_alert_event.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 73b070ecf9ceee1137b8efcb5d9ceaf8111fbb3aa8eacba7b287f68c3d38403e
description: Create a trigger in Process Builder to receive direct notifications about errors occurring in your strategies. Launch a flow to send error information to your desired targets.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Create a Custom Notification Flow for Next Best Action

Create a trigger in Process Builder to receive direct notifications about errors occurring in your strategies. Launch a flow to send error information to your desired targets.

### 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="d341218e60">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d341218e60 ">To create or manage action strategies:</td>

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

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

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

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d341218e60 ">To open, edit, or create a flow in Flow Builder:</td>

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

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d341218e60 ">To create, edit, or view processes in Process Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d341218e60 ">
              <p>Manage Flow</p>
              <p>AND</p>
              <p style="margin-bottom:0;">View All Data</p>
            </td>

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

A custom notification flow allows you to choose how you want to be informed when errors happen during Next Best Action strategy executions. It consists of two parts. First, a process created in Process Builder that subscribes to the Platform Status Alert Event, which is generated when the error occurs. Second, a notification flow that passes the information to your intended destination. Add input variables to your flow to receive the expected variables.

1. In Flow Builder, create a flow. You can direct your notifications to different places, including Chatter posts, [SMS text messages](https://appexchange.salesforce.com/appxSearchKeywordResults?keywords=SMS%20text%20messages), and emails. Make sure to define input variables for payload event fields that you want to use in your notifications. Input variables are flow variable resources, type text, with **Available for Inputs** checked.
    
    ![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 A simple way to create your notification is to create a flow with the Send Email core action. From there, manually add the email address where you want the notification sent.
2. In Process Builder, create a process and for **The process starts when** select **A platform event occurs**.
3. Add a trigger. Under **Platform Event** select **Platform Status Alert Event**.
4. Select an object that allows you to define matching conditions that produce a single result.
    
    ![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 For example, you could choose the User object and set **User ID** equal to the **Created By** ID in the event payload.
5. Add other criteria.
6. Add an immediate action and select **Flows**.
7. Name your action and select the flow you created in step one.
8. Add mappings to connect data from the payload of your event to flow inputs.
9. Save and activate your process.

#### See Also

- [Automate Tasks with Flows](https://help.salesforce.com/s/articleView?id=platform.flow.htm&release=264.0.0&type=5 "Automation reduces repetitive work and helps your team complete tasks faster and more accurately. With Flow Builder, you can build simple or complex automations, forms, and guided experiences with no code. You can add forms to Salesforce pages and Experience sites, and launch flows using buttons, record triggers, or schedules.")
- [Configure the Process Trigger](https://help.salesforce.com/articleView?id=process_start.htm&language=en_US)
- [_Object Reference Developer Guide_: PlatformStatusAlertEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_platformstatusalertevent.htm)