Summarize a client script using Now Assist

  • Release version: Australia
  • Updated June 11, 2026
  • 1 minute to read
  • Use the client script summarization skill to generate a plain-language summary of a client script directly in the UI Builder editor.

    Before you begin

    Make sure that you install UI generation and that you have the ui_builder_admin role. For more information, see Install UI generation and Grant UI Builder admin role.

    Turn on the Client script summarization skill.

    Role required: ui_builder_admin

    About this task

    Client scripts can be long and complex. The Explain code with Now Assist panel appears on the right side of the Edit client script dialog and generates a structured explanation of the selected script on demand. You can request a new explanation if the first response does not meet your needs.

    Procedure

    1. In the application navigator, navigate to All > Now Experience Framework > UI Builder.
    2. Open an experience with a client script.
    3. Select a page to open the page editor.
    4. From the Data and scripts panel, open a client script.
      The Explain Code panel appears if you have the ui_builder_admin role and have enabled the Client script summarization skill.
    5. Select Explain this code.

      Now Assist sends the script to the skill endpoint. When processing is complete, the panel displays two sections:

      • Summary: A concise description of what the script does.
      • Code explanation: A detailed explanation of how the script works, including which APIs are used and what each state variable does.
      Note:
      If you change the script, a message in the Explain code panel notifies you of the update and asks whether the code should be explained again. Select Explain again to generate a new summary.
    6. Optional: If the generated summary does not provide sufficient clarity, select the regenerate icon to request a new response from Now Assist.
      The model generates an alternative explanation for the same script.
    7. Review the summary and code explanation, then select Cancel or Apply as appropriate to close the dialog.

    Result

    A concise summary, information about where the client script is triggered, and a detailed explanation of the script's functionality are displayed. Use this information to decide whether to keep, modify, or replace the script.

    Table 1. TroubleshootingClient script summarization issues
    Symptom Likely Cause Resolution
    Explain Code panel does not appear Client script summarization skill is disabled, or user lacks the ui_builder_admin role. Activate Client script summarization skill in Now Assist Admin. Confirm the user has the ui_builder_admin role.