Explain and summarize code

task brazil Updated Sep 10, 2026 1 min read explain-and-summarize-code-with-quick-actions.md
Raw file servicenow.com

Get a summary of the code or a comprehensive explanation of its functionality.

Before you begin

Role required: now.assist.creator

Procedure

  1. Navigate to any script editor enabled with ServiceNow Otto for Code.

    For example, to open a script include form, navigate to All > System Definition > Script Includes and select a script include.

  2. In the script editor, select a code and then select the Otto.

    [Omitted image "soc-otto-menu.png"] Alt text: Select Summarize code to understand code.

  3. To understand the purpose of the code, select Summarize code.

    [Omitted image "soc-summarize-code.png"] Alt text: Select Summarize code to get a short explanation of the code.

  4. From the Use Otto to list, select Explain code in detail to get a comprehensive explanation of the code’s functionality.

    [Omitted image "soc-summarize-code-detail.png"] Alt text: Select Explain code in detail to get a detailed explanation of the code.

Search documentation
Search document titles and file paths on the brazil branch