Now Assist for Code properties
Summarize
Summary of Now Assist for Code properties
Now Assist for Code properties allow ServiceNow customers to customize code generation functionality on their instances. Users can manage settings related to code assistance features directly from the System Properties table.
Show less
Key Features
- Enable Code Assist: Controls the use of code generation in script editors (default: true).
- Promptless Experience: Toggles the use of code completion in script editors (default: false).
- Code with Now Assist Dialog: Enables the display of text prompts for code generation (default: true).
- AI Code Line Marker: Tracks AI-generated lines of code in the script editor (default: true).
- Collect Schema for Code Assist: Determines whether to collect data schema for better code suggestions (default: true).
- Log Edited Response: Logs the full script content after accepting AI suggestions for auditing (default: true).
- Async Max Payload Size: Sets the maximum payload size for autocomplete messages (default: 7056).
- Enable Auto Complete: Activates AI-driven code generation and autocomplete (default: true).
- Disable SnowSkates Autocomplete: Stops the use of SnowSkates for autocomplete if set to true (default: false).
Key Outcomes
By adjusting these properties, ServiceNow customers can enhance their coding experience with tailored suggestions, improved performance, and better control over code generation features. Additionally, certain properties require administrative roles to modify, ensuring that only authorized users can change critical settings.
You can adjust how code generation functions on an instance using several advanced properties.
| Property | Description |
|---|---|
| sn_now_assist_code.enable_code_assist | Enables using code generation in supported script editors.
|
| sn_now_assist_code.enable_promptless_experience |
Enables using code completion in the script editor.
|
| sn_now_assist_code.enable_prompt_modal |
Enables using the Code with Now Assist dialog box to provide text prompts.
|
| sn_now_assist_code.show_ai_code_line_marker | Enables tracking which lines of code are AI-generated. In a script editor, the AI-generated codes are indicated by a line next to the line numbers. However, if you edit any AI-generated code, the indicator doesn’t appear for the modified lines.
|
| sn_now_assist_code.collect_schema_for_code_assist | Specifies whether to collect the data schema of the table, a business rule, or client script runs when using code generation. If you set this property to false, you can receive code suggestions faster but may get fewer contextual suggestions.
|
| sn_now_assist_code.log_edited_response |
Enables logging of the full script content after you accept a suggestion from Now Assist in script editors. When enabled, the system captures the entire script body immediately after you accept an AI-generated suggestion and saves it in the sys_generative_ai_log.edited_response field. This property is useful for auditing, troubleshooting, or reviewing how suggestions were added to the final script.
|
| sn_now_assist_code.async_max_payload_size |
Specifies the maximum payload size for autocomplete messages sent over the Asynchronous Message Bus (AMB). The current platform limit for AMB payloads is 8 KB, and it shouldn’t be exceeded. Adjusting this setting helps optimize performance and help prevent errors caused by oversized payloads.
|
| sn_now_assist_code.enable_auto_complete |
Enables AI-driven code generation and autocomplete within Now Assist. Activate this property to enable Now Assist to provide intelligent, context-aware code suggestions as you write scripts.
|
| sn_now_assist_code.disable_snowsk8s_autocomplete |
Stops Now Assist from using SnowSkates for autocomplete. Set this property to true if you prefer a different code-suggestion provider or want to restrict SnowSkates-based processing.
|
- sn_now_assist_code.log_edited_response
- sn_now_assist_code.async_max_payload_size
- sn_now_assist_code.enable_auto_complete
- sn_now_assist_code.disable_snowsk8s_autocomplete