---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/api-reference

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Explore

# Exploring ServiceNow Otto for Code {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) 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 Exploring ServiceNow Otto for Code

ServiceNow Otto for Code is a generative AI-powered tool designed to assist developers in creating, editing, and understanding code within the ServiceNow AI Platform®.
It leverages natural language prompts to deliver context-aware code suggestions, enhancing productivity and code quality.
Otto for Code integrates with multiple AI model providers, including Now LLM Service, Azure OpenAI, Google Gemini, and AWS Anthropic.
Show full answer Show less  
This capability is included in the Creator Pro Plus offering and is accessible in the script editor on forms and in Workflow Studio's Script steps.

## Key Features

* **Code Generation:** Generates new code at the cursor location based on user prompts, considering surrounding code context without altering it. This helps developers, regardless of experience, efficiently start or refine custom code. Usage requires the `now.assist.creator` role.
* **Code Autocomplete:** Offers contextually relevant code suggestions as users type, appearing as grey text that can be accepted to complete code snippets. Available in the ServiceNow integrated development environment (IDE). It works automatically without needing detailed user prompts.
* **Code Edit:** Allows modification of highlighted code segments while reviewing surrounding code to ensure coherent edits.
* **Code Explain and Summarize:** Provides summaries and comprehensive explanations of code functionality, aiding developers in understanding code sections.
* **Tracking AI-Generated Code:** Enables identification of code produced by AI to maintain clarity and governance.

## Practical Benefits for ServiceNow Customers

* **Improved Development Efficiency:** Automating code generation and autocomplete reduces repetitive tasks and accelerates coding workflows.
* **Enhanced Code Quality:** Context-aware suggestions and editing support more accurate and maintainable scripts.
* **Better Code Understanding:** Explanation and summarization features help developers quickly grasp existing code, facilitating onboarding and debugging.
* **Role-Based Access:** Ensures only authorized developers can use code generation features, supporting security and control.  
ServiceNow®
ServiceNow Otto for Code is a generative AI-powered tool designed to help developers create, edit, and summarize code.
ServiceNow Otto for Code is designed to empower developers with code suggestions. By using natural language prompts in the script editor on the ServiceNow AI Platform®, you will receive context-aware code suggestions that enhance your coding experience.

ServiceNow Otto for Code supports Now LLM Service, Azure OpenAI, Google Gemini and AWS Anthropic model providers. This capability is a part of Creator Pro Plus offering and includes the following skills:

* Code generation
* Code autocomplete
* Code editing
* Code explain and summarize
{#exploring-now-assist-code__ul_fcc_4gf_h2c}

## Code generation overview {#exploring-now-assist-code__section_jn1_ysb_vyb}

The Code generation skill creates new code at the cursor location based on user input, without altering the surrounding code. It considers the context provided by the code preceding and following it.

When code generation is enabled on an instance, Otto (![Otto icon appears in script editor]()) appears in the script editor.

After you describe the code you want to generate, you will receive code suggestions in the JavaScript editor on forms in the ServiceNow AI Platform® and in Script steps within Workflow Studio. Developers, regardless of their scripting experience on the ServiceNow AI Platform®, can benefit from code generation, allowing them to start writing custom code or refine existing code more efficiently.  
Note:  
Developers must be assigned the now.assist.creator role to use code generation. For more information on using this skill, see [Generate code with AI-powered code generation](https://servicenow-prod.fluidtopics.net/mXhKVBOyOM~vBj9FdMmPdg "Generate code from text with AI-powered ServiceNow Otto for Code.").

## Code autocomplete overview {#exploring-now-assist-code__section_slq_xgf_h2c}

The Code autocomplete skill provides contextually relevant suggestions as users type in the script editor. These suggestions appear in grey text and will only be added to the script once the user accepts them.

For more information, see [Generate code with autocomplete](https://servicenow-prod.fluidtopics.net/cSzj5Qtf6QEFvCVZ3SESqQ "The autocomplete feature of ServiceNow Otto for Code provides you with contextually relevant code suggestions.").

With the Australia release, Code autocomplete is available in the ServiceNow integrated development environment (IDE) application.

## Difference between Code generation and Code autocomplete skills {#exploring-now-assist-code__section_e1j_hww_rfc}

The Code generation skill requires a specific prompt from the user to create code that aligns precisely with the given requirements or instructions. The Code autocomplete skill works automatically. It generates code completions or
snippets based on the context around it.

This means the first skill relies on direct user input, while the second skill anticipates what the user might need, offering suggestions and completions without needing detailed prompts.

## Code edit overview {#exploring-now-assist-code__section_qpx_fhy_pfc}

The Code Edit skill modifies the selected code while reviewing the surrounding code. It functions only when the code to be edited is highlighted.

For more information, see edit-code-now-assist.html.

## Code explain and summarize overview {#exploring-now-assist-code__section_tls_vhf_h2c}

The Code explain and summarize skill provides a summary of the code and a comprehensive explanation of its functionality.

For more information, see [Explain and summarize code](https://servicenow-prod.fluidtopics.net/LGKaViNmIOV3qIwDo2N9rg "Get a summary of the code or a comprehensive explanation of its functionality.").

## ServiceNow Otto for Code benefits {#exploring-now-assist-code__section_ypm_43p_vyb}

{#exploring-now-assist-code__table_e12_qqv_jyb__entry__3}

| Benefit | Feature | Users |
|-|-|-|
| Generate code based on your prompts to improve quality and reduce repetitive tasks. | [Generate code with AI-powered code generation](https://servicenow-prod.fluidtopics.net/mXhKVBOyOM~vBj9FdMmPdg "Generate code from text with AI-powered ServiceNow Otto for Code.") | Developers |
| Quickly edit and refactor large code segments. | edit-code-now-assist.html | Developers |
| Add comments to code segments. | [Add comments to code](https://servicenow-prod.fluidtopics.net/siF~2x5xyF2IEJKgNlg~mw "Add comments in the ServiceNow Otto for Code enabled script editor using quick actions.") | Developers |
| Understand code. | [Explain and summarize code](https://servicenow-prod.fluidtopics.net/LGKaViNmIOV3qIwDo2N9rg "Get a summary of the code or a comprehensive explanation of its functionality.") | Developers |
| Identify code generated by AI. | [Tracking AI-generated code](https://servicenow-prod.fluidtopics.net/M5PjgjhBTjxk0oGBz2pxxQ#tracking-ai-generated-code "Control when to track and indicate that code is AI-generated.") | Developers, administrators |
[ ]

{#exploring-now-assist-code__table_e12_qqv_jyb}

