{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":2908,"path":"application-development/ui-builder/use-case-client-script-summarization.md","title":null,"bundle":null,"doc_type":null,"release":null,"body":"---\ntitle: Use case: Summarize a client script using ServiceNow Otto\ndescription: Understand and edit client scripts.\nlocale: en-US\ncanonical_url: https://www.servicenow.com/docs/r/australia/application-development/ui-builder/use-case-client-script-summarization.html\nrelease: australia\nproduct: UI Builder\nclassification: ui-builder\ntopic_type: concept\nlast_updated: \"2026-10-09\"\nreading_time_minutes: 2\nbreadcrumb: [Use case, Use, UI generation, UI Builder, Builder library, Developing your application, Building applications]\n---\n\n# Use case: Summarize a client script using ServiceNow Otto\n\nUnderstand and edit client scripts.\n\n## Scenario\n\nA developer at a financial services company has joined a team responsible for managing an existing IT operations portal created with UI Builder. This portal consists of multiple pages that contain client scripts written by a previous developer who is no longer with the organization. Before making any modifications, the new developer needs to understand the functionality of each client script and the specific events that trigger them.\n\n## Problem\n\nThe client scripts are lengthy and undocumented, making it time-consuming for the developer to read through each one to understand its purpose. Misinterpreting a script before making changes could introduce bugs or break key portal functionality. Manually reviewing and documenting each script would take hours and slow down the team’s ability to deliver updates.\n\n## Solution\n\nWith Client script summarization, the developer can select any client script in the **Data and scripts** panel and request an instant AI-generated explanation. ServiceNow Otto provides both a high-level summary and a detailed breakdown of the script’s logic and trigger conditions, enabling the developer to quickly assess the script’s purpose and decide whether changes are safe to make.\n\n## Before you begin\n\nMake sure that you install UI generation and that you have the ui\\_builder\\_admin role. For more information, see [Install UI generation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/install-ui-generation.md) and [Grant UI Builder admin role](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/grant-ui-builder-admin-role.md).\n\n## Configuration steps\n\nPerform the following steps to use the Client script summarization skill:\n\n1.  Navigate to **All** &gt; **Now Experience Framework** &gt; **UI Builder**.\n2.  Open the IT operations portal experience.\n3.  Select the page that includes the client script for review.\n4.  In the **Data and scripts** panel, open the relevant client script.\n\n    The **Explain Code** panel appears.\n\n    **Note:** The **Explain Code** panel appears only if you're assigned the ui\\_builder\\_admin role and if the Client script summarization skill is enabled.\n\n5.  Select **Explain this code**.\n6.  Review the concise summary and detailed explanation, including trigger conditions.\n7.  If you make changes to the script, select **Explain again** to regenerate the summary for the updated version.\n\n    **Note:** If you update a script after reviewing the explanation, the **Explain Code** panel will notify you of the code changes. Always select **Explain again** to understand the latest version of the script.\n\n\n## Outcome\n\nThe developer quickly comprehends the purpose and functionality of the client scripts, whereas manually reading and interpreting the code would take several hours. This knowledge enables the developer to confidently plan and implement updates without the risk of introducing unintended regressions.\n\n**Parent Topic:**[UI Generation use cases](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/ui-generation-use-cases.md)\n\n**Related topics**  \n\n\n[Client script summarization](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/client-script-summarization.md)\n\n[Summarize a client script using ServiceNow Otto](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/client-script-summarization-generation.md)\n\n"}}