Now Assist for Code properties

  • Release version: Australia
  • Updated March 12, 2026
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Now Assist for Code properties

    Now Assist for Code allows ServiceNow customers to customize how AI-powered code generation and completion operate within their instance by configuring various system properties. These properties control features such as enabling code suggestions, displaying AI-generated code markers, logging accepted AI suggestions, and managing performance parameters. Adjusting these settings helps tailor the coding experience to meet specific organizational needs for efficiency, auditing, and user preference.

    Show full answer Show less

    Key Features

    • Enable Code Generation: The snnowassistcode.enablecodeassist property controls whether AI code generation is active in supported script editors, enabled by default.
    • Promptless Code Completion: The snnowassistcode.enablepromptlessexperience property enables automatic code completion without requiring user prompts; this is disabled by default.
    • Prompt Modal Dialog: The snnowassistcode.enablepromptmodal property enables a dialog box for inputting text prompts to generate code, enabled by default.
    • AI-Generated Code Tracking: The snnowassistcode.showaicodelinemarker property shows a visual indicator next to lines of AI-generated code in the editor to help users distinguish AI contributions, enabled by default.
    • Schema Collection for Contextual Suggestions: The snnowassistcode.collectschemaforcodeassist property controls whether data schemas and scripts are collected to provide more contextually relevant code suggestions. Disabling it can speed up suggestions but reduce relevance.
    • Logging Edited AI Suggestions: The snnowassistcode.logeditedresponse property enables capturing the full script after accepting AI suggestions, useful for auditing and troubleshooting.
    • Payload Size Management: snnowassistcode.asyncmaxpayloadsize defines the maximum size of autocomplete messages sent asynchronously, helping optimize performance and avoid errors.
    • Autocomplete Enablement: The snnowassistcode.enableautocomplete property activates AI-driven code suggestions during script writing, enabled by default.
    • SnowSkates Autocomplete Control: The snnowassistcode.disablesnowsk8sautocomplete property disables the use of SnowSkates for autocomplete if an alternative provider is preferred or to restrict SnowSkates processing.

    Key Outcomes

    • ServiceNow administrators can precisely control the behavior and performance of AI code assistance tools across their development environments.
    • Users benefit from tailored code generation experiences, including contextual suggestions, code completion modes, and visual indicators of AI-generated code.
    • Logging capabilities support auditing and troubleshooting by capturing AI-generated code changes post-acceptance.
    • Performance tuning through payload size settings helps maintain system responsiveness and stability.
    • Role-based access controls ensure that only authorized users with the nowassistcodeadmin role can modify sensitive properties related to logging, payload size, and autocomplete enablement.

    You can adjust how code generation functions on an instance using several advanced properties.

    Note:
    To open the System Properties [sys_properties] table, enter sys_properties.list in the navigation filter.
    Table 1. Properties for Now Assist for Code
    Property Description
    sn_now_assist_code.enable_code_assist

    Enables using code generation in supported script editors.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table
    • Learn more: You can also enable code generation from Now Assist Admin. For more information, see Activate a Now Assist skill.
    sn_now_assist_code.enable_promptless_experience

    Enables using code completion in the script editor.

    • Type: true | false
    • Default value: false
    • Location: System Property [sys_properties] table
    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.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table
    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.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table
    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.

    • Type: integer
    • Default value: 7056
    • Location: System Property [sys_properties] table
    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.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table
    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.

    • Type: true | false
    • Default value: false
    • Location: System Property [sys_properties] table
    Note:
    Users with access to the system property table can modify system properties. However, updating the following system properties requires the now_assist_code_admin role:
    • 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