# Auto-fix

Xygeni provides an Auto-Fix feature that automates the correction of SAST (Static Application Security Testing) issues. This feature can be accessed through two methods: the UI interface or the XygeniBot.

***

## 1. Xygeni AI Fix in the UI

The UI provides a streamlined, issue-by-issue approach to fixing vulnerabilities.

### How to Use:

1. **Navigate to Risks View**: After scanning your project, go to the risks view
2. **Select a SAST Vulnerability**: Choose one of the identified code vulnerabilities
3. **Click "Fix Vulnerability"**: This button appears once you've configured your integrations

<figure><img src="/files/eZf67GeGhSqusCWe2gdg" alt="" width="400"><figcaption></figcaption></figure>

4. **Review AI-Generated Fix**: Xygeni's AI agent analyzes the issue and proposes a potential fix

<figure><img src="/files/uP2Qo7fp4mSCkaajGqao" alt="" width="600"><figcaption></figcaption></figure>

5. **Open a Pull Request**: Submit the fix for review by project stakeholders through your SCM/ticketing system

<figure><img src="/files/YPqjrdctrBEK0ZzaIPqT" alt="" width="600"><figcaption></figcaption></figure>

{% hint style="info" %}
The "Fix Vulnerability" button only appears after proper integration configuration has been completed. See [Remediation Systems](/xygeni-administration/platform-administration/integrations/remediation-systems.md) for further information
{% endhint %}

## 2. AI Fix with XygeniBot

While the UI allows manual, one-by-one fixes, the XygeniBot enables bulk auto-remediation with advanced configuration options.

### Key Benefits:

* **Bulk Processing**: Auto-remediate all issues found within an analysis.
* **Customizable Filtering**: Configure which vulnerabilities to fix and which to skip. Set rules based on severity, language, tags or rules.
* **Customizable AI agent**: Use your own provided AI agent.

### Integration Setup

See [Xygeni Bot](/xygeni-products/scan-management/xygeni-bot.md) for further information.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xygeni.io/xygeni-administration/platform-administration/projects-management/auto-fix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
