> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/security-testing-orchestration/troubleshooting-and-resources/sto-use-cases/shared/sto-aida-workflow-partial.md).

# Sto Aida Workflow Partial

This procedure describes how to refine a suggestion by providing more information, such as additional context or code snippets, to Harness AI.

1. When you navigate to the **Vulnerabilities** tab and select an issue, select the **Remediation** tab in the **Issue Details** pane to view the **AI Remediation**.

   This suggested remediation is based on public information about the CVE or CWE and the first detected occurrence (**Occurrence 1**) in the target. If the scanner captures the code snippet where the vulnerability occurs, the query to Harness AI includes this snippet as well.

   You can send feedback to Harness about a specific remediation. Under **Helpful?**, click **No**. Then enter your feedback and click **Submit**.

   <figure><img src="/files/Mz6lebzEEdIL1BQ2Cc18" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>
2. If you want to optimize the advice with additional information or context, perform the following steps:

   1. Select **Edit Input**.
   2. Specify the occurrence, reference ID, and language (if you scanned a codebase).

   Harness AI can often auto-detect the language of a code snippet, but it is good practice to confirm that the language setting is correct.

   Some scanners provide details on the location of the vulnerable code, such as the file name and line number, but may not offer the specific code snippet itself. With the **Edit Input** option, you can copy and paste the exact vulnerable code snippet. Harness AI then uses this information to recommend code changes, which can be used to [create a pull request](/security-testing-orchestration/use-sto/sto-remediate-issues/ai-based-remediations.md#create-pull-request-from-sto) or make a [code suggestion](/security-testing-orchestration/use-sto/sto-remediate-issues/ai-based-remediations.md#make-code-suggestion-from-sto).

   3. Add any additional context in the text pane. For example, you might want to include relevant code immediately before the snippet where the vulnerability was identified, in addition to the snippet itself. Then select **Generate**.

      <figure><img src="/files/1wNpzRSX3B30cRDu5FKe" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>
3. To generate remediations for another occurrence, perform the following steps:
   1. In **Issue Details**, scroll down to the occurrence of interest and then select **Unsure how to remediate? Ask AI**. (You might need to wait a few seconds for the remediation to appear.)

      <figure><img src="/files/bbZzGyQKn8VB6u2eUWTw" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>
   2. To further refine the suggested remediation with an additional code snippet, select **Edit Snippet** and then regenerate.

      <figure><img src="/files/vUsTbazrAmup4vQ10nCZ" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>
