Skip to main content
AI Assistant actions are defined in a YAML file held in Polarion’s configuration repository. This page is the field-by-field reference. For how the pieces fit together, see Configure the AI Assistant.

File location and resolution

Action files live in the configuration folder .polarion/nextedy/ai/ — either under a project, or globally so that several projects can share one file. Administration → Nextedy AI → AI Assistant Actions lists the files found there. A sheet selects its file through the assistantConfig property in the global block of the Risksheet configuration:
When assistantConfig is unset, the assistant offers no actions.

File structure

The file has exactly two top-level keys, and both are optional.

Action fields

Required

The action id is the map key, not a field inside the action body.

scope

scope never filters the assistant panel’s own list — that always shows every configured action for the sheet.

contextSources

The labels are prose read by the assistant, not identifiers. "Hazardous situation" describes the value usefully; "hs_col_2" does not. This is the main lever over how well an action performs.An action sends the values you map here together with the selected row’s id and title. A project script can add further values at run time through the customAiContext hook — see Customize the Top Panel.Other contextSources blocks exist for context beyond the current row; they are not covered on this page.

discover

30 is the highest value maxCandidates accepts. A larger number behaves the same as 30.
Both prompts support ${globals.<key>} substitution. An unknown key resolves to an empty string.

output

Both are asked of the assistant rather than enforced — a result may not honour them exactly.

apply

apply.field does double duty: it also determines which work-item types an action can propose. Those types come from the column’s own configuration — the task data type for a task-link column, the column’s link types for an item-link column — so a recommendation is always something the column can legitimately hold.

What a recommendation contains

Context properties

All of these are Polarion context properties. The nextedy.ai.* properties are read from the global context only and cannot be varied per project.

Model connection

The API key is taken from the first of these that holds a value: the Polarion User Account Vault credential nextedy-openai-apikey, the JVM system property nextedy-openai-apikey, then the environment variable OPENAI_API_KEY. If none resolves, the assistant reports itself unavailable. All three are re-read per request, so a change applies to the next action without restarting Polarion.

Feature switches

Prompt overrides

Each replaces one of the assistant’s built-in instructions, for every action. Leave unset to keep the default.

Logging

Warnings and errors are logged regardless of both switches.

Complete example

actions.yaml

See Also

Last modified on September 3, 2026