As a ServiceNow developer, you can receive code fix suggestions when an error is detected.
手順
-
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.

-
Select Fix with Now Assist from the menu bar to execute the remediation process.
Review the
Now Assist Panel with remediation suggestions.

- 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.
-
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.