---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Recommended Actions component setup

# Recommended Actions component setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 8 minutes to read  
The Recommended Actions component uses the recommendation engine to complete fields with recommended values. The Recommended Actions component requires installation of the Recommended Actions for Customer Service application.

## Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://www.servicenow.com/docs/YMtTz79hYjmj5_kMcObIuA "Learn what a component is in UI Builder. Also, see how components work within UI Builder.").  
Note:  
This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin,
workspace_admin
or ui_builder_admin

## Procedure

1. Define a label for Recommended Actions that differentiates it from other components in the content tree.  
   A descriptive label makes finding the component easier in a large list of components. For instructions on using the content tree, see [Manage UI pages and page variants](https://www.servicenow.com/docs/Hq7OFdFRjvDFnNsfdtsMGw "Learn what a page is in UI Builder. Understand the building blocks of a UI Builder page, such as column layouts and components.") .
   ![Shows the recommended actions component in the UI Builder content tree]()
2. Select the Recommended Actions component using one of these methods:
   * Click anywhere within the component on the page.
   * Select the label you created for your component in the content tree.

   {#recommended-actions-component-uib-setup__choices_bsc_knm_bwb}  
   The configuration options appear in the panel on the right.
{#recommended-actions-component-uib-setup__steps_asc_knm_bwb}

## Recommended Actions component properties {#ariaid-title2}

Configure the source table for the recommended values.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

* Data binding: Links the property to data from another component by using data resources. For details, see [Configure an event handler](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .

{#recommended-actions-config-properties__choices_vdb_mpm_bwb} {#recommended-actions-config-properties__table_wdb_mpm_bwb__entry__2}

| Label \[property\] | Description |
|-|-|
| Sys ID \[sysId\] | The sys ID of the record on which the component is rendered. |
| Table \[table\] | The table name of the record on which the component is rendered. |
| Context Sys id \[contextSysId\] | The sys id of the context record for which the recommendation is configured. If a context record is not specified, the system uses the latest active context for the given table record by default. |
| Enable prefetch \[enablePreFetch\] | Checkbox to enable prefetched recommendations. |
| Prefetched recommendations \[preFetchedReccomendations\] | Array output of prefetched recommendations. |
| Context inputs \[contextInputs\] | Defines key-value pairs that provide dynamic inputs for generating recommendations. To use a template, navigate to: Recommended Actions → Context → Context Inputs. |
| Recommended action specific configuration \[actionConfigurations\] | Stores additional Recommended Actions properties. Use this property to define the UI behaviors of different actions on a record page. Example: Attach and share article guidance: { "e8421a2a436f0210f81d92621ab8f2da": { "actionType": "guidance", "actionName": "attachAndShareArticle", "configuration": { "eventSupported": false, "attachAndAddLinkInComment": { "isSupported": true, "orderInPreview": 100, "orderInDetail": 100, "visibleInPreview":true, "visibleInDetail":true }, "readArticle":{ "isSupported": true, "orderInPreview": 200, "visibleInPreview":true }, "readArticleInFullView":{ "isSupported": true, "orderInDetail": 200, "visibleInDetail":true }, "attachAndAddLinkInEmail": { "isSupported": false, "orderInPreview": 300, "orderInDetail": 300, "visibleInPreview":true, "visibleInDetail":true }, "addLinkInWorkNote": { "isSupported": true, "orderInPreview": 400, "orderInDetail": 400, "visibleInPreview":true, "visibleInDetail":true }, "copyLink":{ "isSupported": true, "orderInPreview": 500, "orderInDetail": 500, "visibleInPreview":true, "visibleInDetail":true }, "markArticle":{ "isSupported": true, "orderInDetail": 600, "visibleInDetail":true }, "flagArticle":{ "isSupported": true, "orderInDetail": 700, "visibleInDetail":true} } } } Example: Share KB in chat interactions guidance: { "550918d9439412102280698f38b8f26a": { "actionType": "guidance", "actionName": "shareKbInChatInteractions", "configuration": { "sendChat": { "isSupported": true, "orderInPreview": 100, "orderInDetail": 100, "visibleInPreview": true, "visibleInDetail": true }, "sendPrivateChat": { "isSupported": true, "orderInPreview": 200, "orderInDetail": 200, "visibleInPreview": true, "visibleInDetail": true }, "copyLink": { "isSupported": true, "orderInPreview": 300, "orderInDetail": 300, "visibleInPreview": true, "visibleInDetail": true }, "readArticle": { "isSupported": true, "orderInPreview": 400, "visibleInPreview": true }, "readArticleInFullView": { "isSupported": true, "orderInDetail": 400, "visibleInDetail": true }, "markArticle": { "isSupported": true, "orderInDetail": 500, "visibleInDetail": true }, "flagArticle": { "isSupported": true, "orderInDetail": 600, "visibleInDetail": true } } } } Select Edit to open this property in a modal. Properties: * actionSysId: the sys id of the guidance or decision tree * actionName: the name of the guidance or decision tree * actionType: the type of action, either guidance or decision tree * configurations: the JSON object includes action-specific properties {#recommended-actions-config-properties__ul_xz2_gny_4dc} For example: Attach and share article guidance properties: * isSupported: true/false: * true: the button for this action is visible on the guidance card * false: the button for this action is hidden on the guidance card {#recommended-actions-config-properties__ul_csk_mny_4dc} * orderInDetail: controls the sequence of actions in the secondary actions list. The lowest value is the primary call to action on the guidance card in the detail experience. * orderInPreview: controls the sequence of actions in the secondary actions list. The lowest value is the primary call to action on the guidance card for the preview experience. * visibleInDetail: visibility in the detail guidance experience (full article view) * true: action is shown * false: action is not shown {#recommended-actions-config-properties__ul_k3f_tny_4dc} * visibleInPreview: visibility in the preview guidance experience (card view) * true: action is shown * false: action is not shown {#recommended-actions-config-properties__ul_akm_5ny_4dc} {#recommended-actions-config-properties__ul_oxf_lny_4dc} |
| Show by grouping \[grouping\] | Option to show the relevant recommendation cards in a group or as an individual card in a list. Default: false |
| Hide heading \[hideHeading\] | Option to show or hide the main component heading. Default: false |
| Hide recommended actions \[hideRecommendationTab\] | Option to show or hide the Recommended actions tab. Default: false |
| Hide search \[hideSearchTab\] | Option to show or hide the Search tab. Default: true |
| Hide history \[hideTabs\] | Option to show or hide the History icon. Default: false |
| Recommended actions position order \[recommendationPlaceOrder\] | The number that determines the position of the recommended actions tab. Default: 1 |
| Search position order \[searchPlaceOrder\] | The number that determines the position of the search tab. Default: 2 |
| Heading title \[heading\] | Option to override the heading or title of the component. |
| Recommended actions title \[recommendationTab\] | Option to override the title of the Recommended actions tab. |
| Search title \[searchTab\] | Option to override the title of the Search tab. |
| History title \[historyTitle\] | Option to override the name of the Action history icon. |
| Carousel Sliding Type \[carouselSlidingType\] | Option to determine whether a user can move a single item or a set of items in a grouping experience. This property is only valid when grouping is set to true. Default: false |
| Carousel Items In View \[carouselItemsInView | Option to define how to display carousel items. You can display either a single item or multiple items. The options are: * Multiple content items * Single content item {#recommended-actions-config-properties__ul_hx3_kh2_5xb} Default: Multiple content items |
| Card's max height \[customExpMaxHeight\] | Maximum height of the grouping cards. |
| Card's max wdith \[customExpMaxWidth\] | Maximum width of the grouping cards. |
[Table 1. Recommended Actions properties]

{#recommended-actions-config-properties__table_wdb_mpm_bwb}

## Recommended Actions component events {#ariaid-title3}

Select event handlers to configure the events provided with the Recommended Actions component. Event handlers work with data resources to link the Recommended Actions events to the data you want to display to your users.
The Events tab shows the events used by the Recommended Actions component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event
handlers.

### Event handlers {#recommended-actions-component-events__section_xfr_gqm_bwb}

Event handlers work with data resources to link the Recommended Actions actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see [Configure an event handler](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.").

### Event descriptions {#recommended-actions-component-events__section_yfr_gqm_bwb}

{#recommended-actions-component-events__table_z3k_pgw_c5b__entry__2}

| Event | Description |
|-|-|
| Add Recommended Actions notification \[RECOMMENDED_ACTIONS#ADD_NOTIFICATION_REQUESTED\] | Shows notification when new recommendations are generated on the record page in UI Builder. Payload: * id: The ID of the notification. * status: The status of the notification. * icon: The icon for the notification. * content: The message in the notification. * action: The action type, such as Dismiss, for the notification. {#recommended-actions-component-events__ul_kzs_wqj_dwb} |
| Recommended Actions clicked \[RECOMMENDED_ACTIONS#ACTION_CLICKED\] | A user selects call-to-action button on the recommendation card that opens in the contextual side panel or in a sub tab. Payload: * type: The type of recommendation, such as guidance or decision tree. * recommender: The sys ID of the parent record containing the guidance. * recommendedBy: The table name of the parent record containing the guidance. {#recommended-actions-component-events__ul_uzr_5qj_dwb} |
| Recommended Actions open record \[RECOMMENDED_ACTION_CARD#OPEN_RECORD\] | A user selects the record page link in the recommendation card. Payload: * table: The table that stores the record. * sys_id: The ID of the record. {#recommended-actions-component-events__ul_uf1_tqj_dwb} |
| No Recommended Actions \[RECOMMENDED_ACTIONS#NO_RECCOMENDATIONS} | There are no recommended actions available for the record. |
| Recommended Actions request failed \[RECOMMENDED_ACTIONS#DATA_FETCH_FAILED\] | The request for recommended actions failed. Payload: * name: error * label: Error * description: The error object containing the reason the data fetch failed * fieldType: json {#recommended-actions-component-events__ul_krp_q2f_5xb} |
| Recommended Actions component error \[RECOMMENDED_ACTIONS#COMPONENT_ERROR_THROWN\] | An error occurred with the Recommended Actions component. Payload: * name: error * label: Error * description: The error object containing the reason the component failed * fieldType: json {#recommended-actions-component-events__ul_qfv_gff_5xb} |
| Guidance or decision tree triggered action SN_NEXT_BEST_ACTION_LIST_CONNECTED #ACTION_TRIGGERED | Event emitted by Recommended Action component for guidance client actions. Payload: * actionSysId: the sys id of the guidance or decision tree. * actionName: the name of the Recommended Action guidance or decision tree. * actionType: the type of Recommended Action, either guidance or decision tree. * eventName: the guidance action event names. For example in case of Attach and share article guidance, event names are: * attachAndAddLinkInComment, * addLinkInWorkNote, or * AttachAndAddLinkInEmail {#recommended-actions-component-events__ul_s2h_j4y_4dc} * payload: JSON payload which includes the additional details related to the event propagated. {#recommended-actions-component-events__ul_uyd_d4y_4dc} |
| Recommended Actions link clicked SN_NEXT_BEST_ACTION_LIST_CONNECTED#LINK_CLICKED | Dispatched when the user clicks on link which opens record present in recommendation present in workspace.payload: * Table: The table of the record to be opened with the link * sys_id: sys id of the record to be opened with the link {#recommended-actions-component-events__ul_pck_ykf_yfc} |
[ ]

{#recommended-actions-component-events__table_z3k_pgw_c5b}

## Recommended Actions preset configuration properties {#ariaid-title4}

Properties in the Recommended Actions component have preset configuration values. You can accept these values or override them manually.
Presets are intended to suit a specific use case. However, you can override a property that has a preset value with a custom configuration if necessary for your design. For details on overriding and resetting presets, see [Override a component preset](https://www.servicenow.com/docs/eFRoznvnJXSEND1RjAXpSg#override-a-preset "Override a component preset to enter your own custom values.").  
Important:  
Preset values that you override aren't updated automatically when you upgrade the instance.

### Available presets {#recommended-action-config-preset-properties__section_f3q_qhz_wtb}

Recommended Actions settings
:   This preset shows record activity. This activity can be record field changes, journal entries, attachments, and attached knowledge articles. This preset requires the Recommended Actions
    controller.  
    Properties included in this preset are:

    * CarouselItemsInView
    * CarouselSlidingType
    * CustomExpMaxHeight
    * CustomExpMaxWidth
    * Grouping
    * Heading
    * HideCarouselBorder
    * HideGroupingTitle
    * HideHeading
    * HideRecommendationTab
    * HideSearchTab
    * HideTabs
    * HistoryTitle
    * RecommendationPlaceOrder
    * RecommendationTab
    * SearchPlaceOrder
    * SearchTab
    * SysId
    * Table
    {#recommended-action-config-preset-properties__ul_jf3_5ss_g5b}

### Manual configuration {#recommended-action-config-preset-properties__section_wlf_jhz_wtb}

To configure the properties manually, enter either static or dynamic input. Enter dynamic input by selecting the input type.

* Data binding: Enables you to create dynamic property values derived from multiple sources, such as state variables (@state) in the page, URL variables (@context), or payloads from a data resource (@data). For details, see [Add and configure data resources to a
  page](https://www.servicenow.com/docs/~B53KgSqh6jyRj9wmzg8LA "Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .
{#recommended-action-config-preset-properties__choices_oz3_vrq_5sb}

