Now Assist context menu variable set configuration
Change different settings related to Now Assist context menu by changing values for the Now Assist context menu skill variable set.
The Now Assist context menu configuration variable set includes the following variables:
| Config Field | Description |
|---|---|
| documentTableName | Name of table for fetching the wwna actions configured in the wwna_quick_actions table.Required: Default value: '' |
| variant | Choice of variant to render the component For the fixed variant the width of the component will occupy the container width.Required: false
Default value: Choices: |
| documentSysId | Record sysId present in the table configured through documentTableName propertyRequired: Default value: |
| componentKey | Unique identifier for the component. Can be a alphanumeric key, without special characters. Required: Default value: |
| skillId | Skill Id for the now assist skill config applicability record. Not needed when the skillConfigSysId or nacmConfig object is provided. Required: false (Either skillId or skillConfigSysId or the nacmConfig is required) Default value: '' |
| skillConfigSysId | Skill Config Sys Id for the now assist skill configuration record. Not needed when the skillId or nacmConfig object is provided. Required: Default value: |
| adminConfig | NACM Config record for the component. This record should be fetched by the wwna api. API path: The component will rely on the config object first, if not provided the component will use the skillConfigSysId provided to fetch the configurations if skillConfigSysId is missing then it will use the skillId provided to fetch the configurations and decide whether to render it or not. Required: Default value: |
| ambChannelName | Name of amb channel to be used by the component. The component will prefix /wwna/ itself. Please make sure that you don't add any special characters such as '@' ',' '/' in the channel
name. If not provided the component name will become ${documentTableName}-${documentSysId}-${wwnaComponentId}-${user_sys_id}-${caller}Required: Default value:
|
| caller | String type attribute to track if caller is Mobile, UI16 or Next Experience for analytics and other logics. Required: Default
value: |
| payload | Custom Payload that can be passed to the component, it will also be sent in as a parameter in the wwna action when it is invoked. Required: Default value: |
| draftedText | Drafted text for the common actions to add context.The common OOB actions rely on selected text as well. So, if selected text is missing, the drafted text becomes slectect text as well. Required:
Default value: |
| selectedText | Selected text to be processed by the common actions. For more details please consider strictlyUseDefaultPresetAction property inside buttonProps as well.Required:
Default value: |
| additionalConfig | additional config that hosts function like preInvokeActionHandler function that will be called by NACM before invoking an action.NACM waits for this async call to finish and takes the new payload to invoke the action. This could be used in scenarios where consumer of NACM want to autogrow their selection before invoking an action.for e.g: RephraseAll quick action when clicked can allow parent consumers of NACM to autogrow the selected text to whole content inside a field so that wholeContent is taken as selectedText to invoke the action rephraseAll |
| renderDisabledSkeleton | Boolean flag to let you render the disabled skeleton to avoid the layout shift. Required: Default value: |
| feedbackProps |
Object providing different configurations for granular feedback. Required: Default value: |
| Trigger Properties (triggerProps) | |
| size | Controls the size of the button. Default value: |
| variant | Controls the type of the button. Default value: |
| label | Controls the label to be shown in the button. Default value: |
| icon | Controls the icon to be shown in the button. Default value: |
| tooltipContent | Controls the tool-tip content to be shown for the button. Default value: |
| isCaretForDropdown | If marked as true shows the caret icon on the right side of the button. Default value: |
| useDefaultAction | useDefaultAction is true and defaultAction is provided -> menu trigger will always behave as a button. useDefaultAction is false and
defaultAction is provided along with selectedText is empty -> menu trigger will always behave as a button. useDefaultAction is false and
defaultAction is provided along with selectedText is non empty -> menu trigger will always behave as a dropdown.Default value: |
| hideTriggerOnDialog | When marked as true, the trigger will disappear when dialog appears. If marked as false, the trigger will become disabled when dialog appears. Default value: |
| fitToParent | When marked as true, the trigger will occupy the container width. If marked as false, the trigger will take the necessary width as per the requirement. Default value: |
| hasShadow | When marked as true, the shadow around trigger will be removed when dialog is of fixed variant.Default value: |
| openPromptWidth | Width of the open prompt input in pixels. Default: |
| openPromptInputPlaceholder | Placeholder text for open prompt input box. Default: |
| additionalInfoOnTrigger | Additional information text on trigger. Default: |
| openPromptInputRows | Number of rows for open prompt inputbox, The prompt input box supports a maximum of 3 rows. Default: |
| openPromptAutoFocus | Controls whether to auto-focus the prompt inputbox so that the suggestions are visible without clicking in the input boxes. Default: |
| Dialog Properties (dialogProps) | |
| footerLabel | Footer Label for the modeless-dialog to show the recommendation. Default value: |
| offsetLeft | Controls the Left offset for the dialog for the initial render, the value given is %age value for the dialog to render. Type: Default value: |
| offsetTop | Controls the Top offset for the dialog for the initial render, the value given is %age value for the dialog to render. Type: Default value: |
| height | Controls the height for the dialog. Value should be grater than or equal to 160.160 is the minimum height of dialogIf configured less than 160, we will use 160 as heightComponent is always resizable. Type:
Default value: |
| width | Controls the width for the dialog. Value should be grater than or equal to 320. 320 is the minimum width of the dialog. If configured less than 320, system considers it as 320, as widthComponent is always
resizable. Type: Default value: |
| insertCTALabel | Controls the label for the insert button in the dialog Type: Default value: |
| primaryCTATooltip | Tooltip text for the primary CTA in the dialog Default: "Insert AI-generated content" |
| refineCount | Controls the no of refinements in a single flow. If configured as a numeric value > 0, the component will allow only the configured number of refinements. If configured as a numeric value < 0, the component will
allow infinte number of refinements. If configured as a numeric value = 0, the component will show the disabled refine button with a warning in footer note. If configured as a non-numeric value, the component will fallback
to default value and will allow infinte number of refinements. Type: Default value: |
| hideInsertCTA | Controls the visibility of Insert Button in Recommednation Dialog. Type: Default value: |
| isHoisted | Controls whether dialog should be hoisted in DOM. Type: Default: |
| fixedVariantInitialLineCount | Controls the maximum number of lines to be displayed in the content when dialog is of fixed variant.Type: Default value: |
| fixedVariantShowMoreLineCount | Controls the maximum number of lines to be added in the content when Show more button is clicked in the fixed variant dialog.Type: Default value:
|
| additionalInfo | Controls the text which will be rendered in the popover of the info icon button in the dialog header on click. Type: Default value: |
| headerInitialLabel | Controls the Header Label for the Initial state of the component window in case of a fixed variant. Type: Default value: |
| headerLoadingLabel | Controls the Header Labels for the Loading state of the Dialog windowType: comma (,) separated stringDefault value: |
| headerLoadedLabel | Controls the Header Label for the Loaded state of the Dialog window Type: Default value: |
| enableMultipleDialogs | Controls whether multiple NAcm dialogs can/will be present in the page for the draggable variant dialog.Type: Default value: |
| isRefreshHidden | Controls whether the refresh button will be visible or hidden in NAcm dialogs for the fixed variant dialog.Type: Default value: |
| isRefreshDisabled | Controls whether the refresh button will be disabled or enabled in NAcm dialogs for the fixed variant dialog The isRefreshHidden will take higher precedence for the refresh button
controls.Type: Default value: |
| manageRefresh | Controls the change in behavior where parent will control when to show refresh or disable it in NAcm dialogs for the fixed variant dialog.Type: Default value:
|
| refreshSummaryHelperText | Controls the helper text for the refresh summary Type
Default value: |
| refreshSummaryButtonText | Controls the button text for the refresh summary Type: Default value: |