Bulk Fix code in real-time with Now Assist

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:3分
  • As a ServiceNow developer, you can receive code fix suggestions when an error is detected.

    始める前に

    Complete the pre-requisites and setup steps in order to activate Fix code in real-time. See Configure Fix code in real-time for Platform Health for details.

    Role required: sn_impact_gen_ai_fix_user

    手順

    1. If an error is detected that is eligible for an AI resolution, the Fix with Now Assist button will become visible.
      A findings message displays with the following information:
      • Finding level state: Act, Recommend, Suggest, or Review.
        • The ServiceNow leading practice issue finding and explanation is included.
        • Select the link to view the Scan Engine definition.
        • Findings for that definition are listed in the related lists for the definition record.
      • Details: Exact location in the code of the finding
      • Steps to resolve issue: Description of resolution
      • Supporting documentation: A link to KB or documentation explaining the recommended configuration
      • Impact: A rating on a scale of 1:10 on how the error can impact the overall code basis, with 10 having the most impact. Details are in the Scan Engine definitions details.
      Example Scan Engine code fix finding.
    2. Select Fix with Now Assist from the menu bar to execute the remediation process.
      Review the Now Assist Panel with remediation suggestions.

      The suggested fix for the Code Fix AI finding.

      • The Now Assist panel displays the reasoning, in steps, for the findings it provided resolutions for.
      • At the same time, a code comparison view displays on the script itself, illustrating the suggested modifications. Updated code is displayed in green and the removed code has a pink background.
      • The script editor is read-only until the Now Assist conversation closes, either by accepting or rejecting the proposed fix.
        注:
        You can either accept the code fix as is, reject it, or provide revisions to the suggested fix. During the revision process, you can interact with the AI Agent panel to prompt it to make additional changes for each finding.
    3. Enter Accept the solution in the AI response prompt to make the change.
      • The available prompts are displayed in the bulleted list for the proposed solution.
      • If you reject the solution, the code will be editable.
      注:
      Users with the executive role can access the Executive Dashboard which contains a module that displays all findings resolved using the Code Fix AI Agent. See Scan Engine Executive dashboard for additional information.