{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":651,"path":"api-reference/scripts/now-assist-code-properties.md","title":"ServiceNow Otto for Code properties","bundle":null,"doc_type":null,"release":"australia","body":"\n# ServiceNow Otto for Code properties\n\nYou can adjust how code generation functions on an instance using several advanced properties.\n\n**Note:** To open the System Properties \\[sys\\_properties\\] table, enter `sys_properties.list` in the navigation filter.\n\n<table id=\"table_dsp_1h2_tyb\"><thead><tr><th>\n\nProperty\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nsn\\_now\\_assist\\_code.enable\\_code\\_assist\n\n</td><td>\n\nEnables using code generation in supported script editors.\n\n -   Type: true \\| false\n-   Default value: true\n-   Location: System Property \\[sys\\_properties\\] table\n-   Learn more: You can also enable code generation from AI Admin Hub. For more information, see [Activate an AI skill](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/intelligent-experiences/configure-a-now-assist-skill.md).\n\n</td></tr><tr><td>\n\nsn\\_now\\_assist\\_code.enable\\_promptless\\_experience\n\n</td><td>\n\nEnables using code completion in the script editor.\n\n -   Type: true \\| false\n-   Default value: false\n-   Location: System Property \\[sys\\_properties\\] table\n\n</td></tr><tr><td>\n\nsn\\_now\\_assist\\_code.enable\\_prompt\\_modal\n\n</td><td>\n\nEnables using the Code with Now Assist dialog box to provide text prompts.\n\n -   Type: true \\| false\n-   Default value: true\n-   Location: System Property \\[sys\\_properties\\] table\n-   Learn more: [Generate code with AI-powered code generation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/generate-scripts-from-text.md)\n\n</td></tr><tr><td>\n\nsn\\_now\\_assist\\_code.show\\_ai\\_code\\_line\\_marker\n\n</td><td>\n\nEnables 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.\n\n -   Type: true \\| false\n-   Default value: true\n-   Location: System Property \\[sys\\_properties\\] table\n-   Learn more: [Tracking AI-generated code](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/tracking-ai-generated-code.md)\n\n</td></tr><tr><td>\n\nsn\\_now\\_assist\\_code.collect\\_schema\\_for\\_code\\_assist\n\n</td><td>\n\nSpecifies 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.\n\n -   Type: true \\| false\n-   Default value: true\n-   Location: System Property \\[sys\\_properties\\] table\n\n</td></tr><tr><td>\n\nsn\\_now\\_assist\\_code.log\\_edited\\_response\n\n</td><td>\n\nEnables logging of the full script content after you accept a suggestion from Now Assist in script editors.\n\n 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.\n\n This property is useful for auditing, troubleshooting, or reviewing how suggestions were added to the final script.\n\n -   Type: true \\| false\n-   Default value: true\n-   Location: System Property \\[sys\\_properties\\] table\n\n</td></tr><tr><td>\n\nsn\\_now\\_assist\\_code.async\\_max\\_payload\\_size\n\n</td><td>\n\nSpecifies 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.\n\n Adjusting this setting helps optimize performance and help prevent errors caused by oversized payloads.\n\n -   Type: integer\n-   Default value: 7056\n-   Location: System Property \\[sys\\_properties\\] table\n\n</td></tr><tr><td>\n\nsn\\_now\\_assist\\_code.enable\\_auto\\_complete\n\n</td><td>\n\nEnables 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.\n\n -   Type: true \\| false\n-   Default value: true\n-   Location: System Property \\[sys\\_properties\\] table\n\n</td></tr><tr><td>\n\nsn\\_now\\_assist\\_code.disable\\_snowsk8s\\_autocomplete\n\n</td><td>\n\nStops 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.\n\n -   Type: true \\| false\n-   Default value: false\n-   Location: System Property \\[sys\\_properties\\] table\n\n</td></tr></tbody>\n</table>**Note:**\n\nUsers with access to the system property table can modify system properties. However, updating the following system properties requires the now\\_assist\\_code\\_admin role:\n\n-   sn\\_now\\_assist\\_code.log\\_edited\\_response\n-   sn\\_now\\_assist\\_code.async\\_max\\_payload\\_size\n-   sn\\_now\\_assist\\_code.enable\\_auto\\_complete\n-   sn\\_now\\_assist\\_code.disable\\_snowsk8s\\_autocomplete\n\n**Parent Topic:**[ServiceNow Otto for Code reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/now-assist-code-reference.md)\n\n"}}