|
Record table\[documentTableName\]
|
The table containing the target records on which to apply the Now Assist actions. For example, if using the NAcm component to summarize an incident, then configure this property with the sys\_id of the incident table.
|
|
Record ID\[documentSysId\]
|
The ID of the record to read from the record table. Use dynamic binding to configure this property. For example, if using the NAcm component to summarize an incident, then configure this property to link to the incident sys\_id column in the incident table.
|
|
Variant\[variant\]
|
The type of NAcm component. The NAcm component’s variant depends on the intended use case and the contextual information that the component must use to generate an output. Options: - **Fixed**: Places the component as a fixed element \(summary card\) in the page. This variant is suitable when using data from multiple sources. For example, case summarization.
- **Draggable**: Places the component as a traveling icon which opens a draggable recommendation dialog \(modeless dialog\) when triggered. This variant is suitable when using data from a single element. For example, email composition.
Default: Draggable
|
|
Component ID
\[componentKey\]
|
Unique identifier for the component. Use alphanumeric values without special characters.
|
|
Skill ID
\[skillId\]
|
The skill ID to use in the NAcm configuration. Verify that you activate the skills in **Admin Center > Now Assist Admin > Now Assist Experiences > Now Assist context menu > Available** before using the skill ID in NAcm.
For more information about skills, see [Generative AI skills](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/intelligent-experiences/now-assist-skills.md).**Note:** **Skill ID**, **Configuration ID**, and **NAcm configuration** correspond to Now Assist actions. Configure only one of these properties
|
|
Configuration ID
\[nacmConfig\]
|
List of available NAcm configurations. These configurations are made available based on the plugins you use.**Note:** **Skill ID**, **Configuration ID**, and **NAcm configuration** correspond to Now Assist actions. Configure only one of these properties
|
|
NAcm configuration
\[adminConfig\]
|
Configuration of the NAcm actions as a JSON object. Use this property to define a different NAcm configuration than those available in existing NAcm configurations or skills.
**Note:** **Skill ID**, **Configuration ID**, and **NAcm configuration** correspond to Now Assist actions. Configure only one of these properties
Default: `{}`
|
|
AMB channel \[ambChannelName\]
|
Name of the Asynchronous Message Bus \(AMB\) channel for the component to use. Don’t add any special characters such as `'@' ',' '/'` in the channel name.
|
|
Caller type
\[caller\]
|
Specifies whether the component is being configured for mobile-based applications, UI16, or a workspace. The configuration here doesn’t affect how the component functions but is used for tracking analytics and other logics.Options:
- **Mobile**
- **UI16**
- **Workspace**
Default: Workspace
|
|
Trigger properties
\[buttonProps\]
|
Configuration of the preset menu trigger button’s properties as a JSON object.The following list describes the button object’s properties:
- `size`: The size of the button to use. Available configurations are: `sm` \(small\), `md` \(medium\), and `lg` \(large\).
- `variant`: The type of the button to use. Available configurations are: `primary`, `secondary`, and `tertiary`.
- `label`: The label for the button.
- `icon`: The icon to show in the button.
- `tooltipContent`: The tooltip content to show for the button.
- `isCaretForDropdown`: To show the Now Assist icon, set to true.
- `strictlyUseDefaultPresetAction`: To use the preset trigger as a button regardless of `selectedText` configuration, set to true. To use the preset trigger as a drop-down, set to false. This property requires the `defaultPresetAction` property.
- `hideButtonOnDialog`: To hide the button when the dialog appears, set to true.
- `isFullWidthButton`: To let the button occupy the full width of the container, set to true.
- `hasShadow`: To remove the shadow around the button in the fixed variant, set to true.
Default:
```json
{
"size": "sm",
"variant": "secondary",
"label": "",
"icon": "ai-sparkle-outline",
"tooltipContent": "Test Tooltip",
"isCaretForDropdown": false,
"strictlyUseDefaultPresetAction": false,
"hideButtonOnDialog": true,
}
```
|
|
Recommendation dialog properties\[recommendationDialogProps\]
|
Configuration of the recommendation dialog’s properties as a JSON object.The following list describes the recommendation dialog properties:
- `footerLabel`: Footer label for the recommendation dialog.
- `offsetLeft`: The left offset for the dialog in the initial render as a percentage.
- `offsetTop`: The top offset for the dialog in the initial render as a percentage.
- `height`: The height of the dialog in pixels. Height should be at least 160. If configured less than 160, the component uses a height of 160.
- `width`: The width of the dialog in pixels. Width should be at least 320. If configured less than 320, the component uses a width of 320.
- `insertButtonLabel`: The label for the insert button in the dialog.
- `refineCount`: The maximum number of refinements allowed in a single flow.
- > 0, the component allows only the configured number of refinements.
- < 0, the component allows infinite refinements.
- 0, the component shows a disabled **Refine** button with a warning in the footer.
- If configured as a non-numeric value, the component defaults to allowing infinite refinements.
- `hideInsertButton`: To hide the insert button, set to true.
- `isDialogHoisted`: To hoist the dialog, set to true.
- `fixedVariantInitialLineCount`: The maximum number of lines shown in the component’s fixed variant when the component loads.
- `fixedVariantShowMoreLineCount`: The maximum number of additional lines shown in the component’s fixed variant when the **Show more** button is selected.
- `additionalInfoTip`: The tooltip text to render when the info icon is selected or hovered on.
- `headerInitialLabel`: Recommendation dialog’s header label when the component loads.
- `headerLoadingLabel`: Recommendation dialog’s header label when the component is loading.
- `headerLoadedLabel`: Recommendation dialog’s header label when the component has loaded.
Default:
```json
{
"footerLabel": "Check AI-generated content for accuracy.",
"offsetLeft": 10,
"offsetTop": 10,
"height": 400,
"width": 600,
"insertButtonLabel": "Insert",
"refineCount": "1",
"hideInsertButton": false,
"isDialogHoisted": true,
"additionalInfoTooltip": "AI generates text by using relevant context. Be sure to check for accuracy."
}
```
|
|
Granular feedback properties\[feedbackConfig\]
|
Configuration of the feedback properties as a JSON object.The following list shows the supported properties:
- Positive feedback
- Heading
- Items
- Negative feedback
- Heading
- Items
Default: `{}`
|
|
Selected text
\[selectedText\]
|
Required when implementing text-based Now Assist actions like elaborate, shorten, and so on Configuration to identify when a user selects text for the Now Assist actions.
|
|
Timeout error message\[timeoutErrorMessage\]
|
Timeout error message text to show. The component uses a default error message if this isn’t configured.
|
|
Draft text\[draftedText\]
|
Required when implementing text-based Now Assist actions like elaborate or shorten. Configuration to identify the text block in which to perform the Now Assist actions. The common out of the box actions rely on selected text. So, if selected text is missing, NAcm uses drafted text.
|
|
Payload\[payload\]
|
JSON object with the configuration of a custom payload to pass to the component. This payload is also sent as a parameter in the Now Assist action when it’s invoked.
Default: `{}`
|
|
Disable skeleton
\[renderDisabledSkeleton\]
|
To render a disabled skeleton to avoid layout shift, set to true. Otherwise, the component renders when the configurations are ready.Default: false
|