Generate Policy with Copilot in Alert Intelligence
Virtana's Copilot provides a natural language interface in the Generate Policy With Copilot window, so that you can draft custom alert policies quickly. However, you can review, edit, and enhance the policy before saving it for your environment.
Opening the Generate Policy with Copilot window
To access the policy creation interface, perform the following steps:
Navigate to the Global View in the Virtana Platform.
Click the Governance and select Alert Intelligence.
Click New Custom Policy.
Generate Policy With Copilot window opens.

Tour of the Generate Policy with Copilot window
The window features the Copilot conversational assistant and the policy editor side by side. As you can enter your policy requests in Copilot, you can review and edit the resulting alert policy in YAML format.
Copilot Assistant

Copilot is introduced as a GAed tool designed to help you generate alert policies by responding to natural language questions or descriptions. You can type 'help' at any time to view Copilot’s capabilities.
You can customize the inputs by using the following capabilities of the Copilot:
Basic Copilot specifications
Description
Natural Language Input
You can describe your policy requirements in plain English, and Copilot generates the corresponding policy logic.
Edit Existing Policies
Load and modify existing policies using natural language or manual edits, or ask Copilot questions about your changes.
Help and Guidance
Enter Help in the chat box to access usage tips, sample statements, and guidance.
Action Summaries
Copilot summarizes changes after each update for transparency.
Stop Function
Enter Stop in the chat box to interrupt Copilot’s processing and revert to the previous state if needed.
Feedback
Use the thumbs up/down icon to provide feedback and improve Copilot’s accuracy.
(Optional) You can use the following sample prompts for Copilot to generate the policy:
Create a policy to suppress repeated alerts from the same source within 10 minutes.
Automatically group similar disk failure alerts from the same storage array.
Trigger an alert only if memory usage stays above 80% for more than 15 minutes.
Only escalate critical alerts from the Database category.
Policy Editor

This section displays the YAML structure where the generated alert policy appears. You can manually edit the policy fields, including:
Field
Description
Name
Enter a unique and descriptive name that reflects the purpose of the policy.
Description
Provide a detailed explanation of what the policy aims to achieve and its significance.
Criteria
Define the triggering conditions under which the policy will be applied, typically filtering alerts based on their status.
Precedence
Set a value indicating the priority of the policy, with lower numbers representing higher priority.
Category
Classify the policy under the correct category, which in this case will be set to "alert_handling".
Actions functions
You can view the action keys in the top right corner of the policy creation and editing window, which provide essential actions for managing your policy files.

Action
Description
Upload File
Import policy files for reuse, backup, or sharing in
.yamlformat.Save Policy
Save the current policy you’ve written or modified.
Cancel
Exit the policy creation screen without saving changes.
Create a policy using Copilot
To create a policy using the provided Copilot, perform the following steps:
Click New Custom Policy to open the Copilot interface.
Enter a natural language prompt describing what you want the policy to do, for example, suppress alerts from server group X during maintenance windows.
Copilot generates the policy.
(Alternate) Use the Upload File to import an existing policy in
.yamlformat.Review the output, make manual edits if needed, or ask follow-up questions in the chat box.
(Optional) If unsure, enter "Help" for usage tips and example prompts.
(Optional) If you need to interrupt Copilot’s processing, enter "Stop" to cancel and revert.
Click Save Policy to save the policy.
You can view the policy on the Alert Intelligence page. Check and enable the policy using the toggle button under the status column to activate the policy.
Edit a policy using Copilot
To edit a policy using the provided Copilot, perform the following steps:
In the Alert Intelligence page, click the existing policy name.

The Alert Policy window opens.

You can view the general information about the policy and the policy code.
(Optional) Use the toggle button to enable the policy execution state if it is disabled.
Click Edit to edit the existing policy.
The Update Policy window opens.

Review the policy, make manual edits if needed, or ask follow-up questions in the chat box.
(Optional) If unsure, enter "Help" for usage tips and example prompts.
(Optional) If you need to interrupt Copilot’s processing, enter "Stop" to cancel and revert.
Click Update to save the updated policy.
You can view the policy on the Alert Intelligence page. Check and enable the policy using the toggle button under the status column to activate the policy.
Caution
While Copilot provides a starting point for creating policies, some of Copilot's answers may be incorrect, incomplete, or misleading for your organization. Be sure to validate the resulting policy in the provided editor.