Recommended Actions component setup

task brazil Updated Sep 10, 2026 9 min read recommended-actions-component-uib-setup.md
Raw file servicenow.com

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.

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.

    [Omitted image "recommended-actions-content-tree.png"] Alt text: 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. The configuration options appear in the panel on the right.[Omitted image "recommended-actions-properties.png"] Alt text: Shows the properties for the Recommended Actions component in the config panel

Parent Topic:UIB Setup Information

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.

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:

JSON
{	"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:

JSON
{    "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

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
  • 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
  • visibleInPreview: visibility in the preview guidance experience (card view)
    • true: action is shown
    • false: action is not shown

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

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.

## Recommended Actions component events

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

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.

Event descriptions

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 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 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.

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 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

Guidance or decision tree triggered actionSN_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
  • payload: JSON payload which includes the additional details related to the event propagated.

Recommended Actions link clickedSN_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 preset configuration properties

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.

Important: Preset values that you override aren't updated automatically when you upgrade the instance.

Available presets

  • 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

Manual configuration

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

Search documentation
Search document titles and file paths on the brazil branch