Using ServiceNow Otto for Code
concept brazil Updated Sep 10, 2026 1 min read using-now-assist-code.md
Learn to use ServiceNow Otto for Code to generate, edit, explain and summarize code.
-
Generate code with AI-powered code generation
Use the Code generation skill to generate new code based on your prompts.
-
Generate code with autocomplete
Use the Code autocomplete skill to get contextually relevant code suggestions or completions as you type in the script editor.
-
Use the Code edit skill to quickly edit and refactor large code segments.
-
Use this skill to add comments to code segments.
-
Use the Code explain and summarize skill to understand code.
-
Control when to track and indicate that code is AI-generated.
44 lines · 2.2 KB
---
title: Using ServiceNow Otto for Code
description: Learn to use ServiceNow Otto for Code to generate, edit, explain and summarize code.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/api-reference/scripts/using-now-assist-code.html
release: brazil
product: Scripts
classification: scripts
topic_type: concept
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [ServiceNow Otto for Code, Scripting, API implementation, API implementation and reference]
---
# Using ServiceNow Otto for Code
Learn to use ServiceNow Otto for Code to generate, edit, explain and summarize code.
- [Generate code with AI-powered code generation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/generate-scripts-from-text.md)
Use the Code generation skill to generate new code based on your prompts.
- [Generate code with autocomplete](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/generate-code-with-autocomplete.md)
Use the Code autocomplete skill to get contextually relevant code suggestions or completions as you type in the script editor.
- [https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/edit-code-now-assist.md](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/edit-code-now-assist.md)
Use the Code edit skill to quickly edit and refactor large code segments.
- [Add comments to code](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/add-comments-to-code-with-quick-actions.md)
Use this skill to add comments to code segments.
- [Explain and summarize code](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/explain-and-summarize-code-with-quick-actions.md)
Use the Code explain and summarize skill to understand code.
- [Tracking AI-generated code](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/tracking-ai-generated-code.md)
Control when to track and indicate that code is AI-generated.
| title | Using ServiceNow Otto for Code |
| description | Learn to use ServiceNow Otto for Code to generate, edit, explain and summarize code. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/api-reference/scripts/using-now-assist-code.html |
| release | brazil |
| product | Scripts |
| classification | scripts |
| topic_type | concept |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | ServiceNow Otto for CodeScriptingAPI implementationAPI implementation and reference |