---
sourceDocument: Brazil Impact
sourceDocumentLink: https://www.servicenow.com/docs/r/impact

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Impact

ft:clusterId :

    - ipact

bundleId :

    - ipact


---

# Prevent and resolve technical debt with AI

# Prevent and resolve technical debt with AI {#ariaid-title1}

Release version: Brazil  
Updated November 5, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read  
Use the Scan Engine and ServiceNow
Otto AI agent to prevent technical debt as you code or remediate existing findings from completed scans.

## Prevention and remediation workflows {#prevent-resolve-technical-debt-ai__two_approaches}

AI-powered code fixes are available through two distinct workflows. Understanding which workflow applies to your situation helps you take action quickly.  
{#prevent-resolve-technical-debt-ai__two_approaches__entry__3}

| Workflow | When You Use It | Outcome |
|-|-|-|
| Real-time Prevention | * You're actively writing or modifying code in your development environment. * When you save a record, the Scan Engine detects violations inline and you generate an AI fix before committing or promoting the code. {#prevent-resolve-technical-debt-ai__ul_nl1_yck_ckc} Note: See [Supported record types for Real-time prevention monitoring with AI](https://www.servicenow.com/docs/lPCiX3mCLU9YPUQa7WyxFQ "The Scan Engine checks your code against active scan definitions and displays findings inline along with AI-suggested fixes you can apply.") for the tables that are supported. | * Prevents technical debt from reaching production. * Reduces time spent in code review cycles. |
| Batch Remediation | * A scan has completed and findings are displayed in the findings dashboard. * You review the list of violations and generate AI fixes in bulk or individually to clean existing technical debt. {#prevent-resolve-technical-debt-ai__ul_mkj_zck_ckc} | * Accelerates remediation of existing issues. * Reduces manual development effort and errors when fixing production code. |
[Table 1. AI-powered code fix workflows]

## Unified AI engine {#prevent-resolve-technical-debt-ai__unified_ai_engine}

Whether you're preventing technical debt during development or remediating findings from scans, you interact with the same AI fix generation engine.

* ServiceNow Otto AI agent analyzes your code against scan definitions
* Side-by-side code comparison interface shows original code versus suggested changes
* You accept, reject, or revise suggested fixes using the same controls
* Exception workflows for Recommend level findings follow the same process
* All changes are tracked in your active update set with full audit trails

## AI-suggested fix capabilities {#prevent-resolve-technical-debt-ai__ai_fix_capabilities}

The AI fix engine handles common coding violations quickly and accurately. Common fix types include the following:

* Replacing deprecated API calls with current equivalents, for example, gs.log to gs.error
* Adding missing error handlers to prevent unhandled exceptions
* Correcting scoped app API usage to match ServiceNow general guidelines
* Removing unsafe or deprecated functions to improve security
* Formatting code to match style guidelines and improve maintainability

## Key benefits {#prevent-resolve-technical-debt-ai__key_benefits}

* Faster development: Developers can apply AI-generated fixes instantly instead of manually reviewing and correcting code
* Consistency: All fixes follow the same coding standards and patterns, reducing variability across your codebase
* Learning: Side-by-side code comparisons help developers understand ServiceNow general guidelines and leading practices
* Scale: Bulk generate fixes to remediate dozens of violations in one workflow instead of fixing them individually
* Reduced risk: AI fixes are generated from validated patterns and include full audit trails for compliance

## Next steps {#prevent-resolve-technical-debt-ai__next_steps}

Choose the workflow that matches your current task.

* You're writing code and want to catch violations before saving, See [Use Real-time prevention monitoring while coding](https://www.servicenow.com/docs/b1oU2gwfwTGNePuHuQdGKQ "As you write and save code, the Scan Engine detects violations in real-time and displays findings inline. You can then generate an AI-suggested fix before committing your changes.")
* A scan has completed and you want to fix existing findings, See [Remediate existing findings with AI-suggested fixes](https://www.servicenow.com/docs/Htm3pL~lYHyG0YWyg9uIjA "After a scan completes and populates findings, use the AI-Eligible Findings dashboard to generate and apply AI-suggested fixes in bulk or individually to accelerate remediation of technical debt.").

