# Feature AI-101 - CKEditor dropdown to trigger AI-Actions

Project: Stream AI
Status: merged
URL: https://community.openproject.org/work_packages/AI-101

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 18.0.0 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Artificial Intelligence / AI text helper (AITH) |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan | Enterprise (ENT) |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Andreas Eiselt, Jonas Jabari |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Labor costs |  |

## Description

**As** a user writing text in OpenProject  
**I want to** pick an AI action from an "Assistant" button in the editor toolbar  
**so that** I can transform my text wherever I write

**Acceptance criteria**

  - Every rich text editor shows an "Assistant" split button: the main part runs the last used action, the arrow lists all available actions.

  - Work package description: all actions that may run for this work package (incl. type-scoped and template actions).

  - All other editors (comments, wiki, forums, meetings, …): only actions scoped "everywhere".

  - No available action → no button.

  - Readable in light and dark theme; disabled in source mode and read-only.

  - Running the action is delivered by AI-176.

**Technical notes**

  - Takes over <mention class="mention" data-id="25770" data-type="work_package" data-text="#25770">#25770</mention> and opf/commonmark-ckeditor-build#131; prototype run code removed, LLM gateway moves to AI-137.

  - Thin CKEditor plugin, logic in the core `AiActionsService` (`actionsFor`, `defaultAction`, `run`).

  - Description → work package / project list endpoint; other editors → context-free list endpoint (AI-134).

  - Dark theme: map `--ck-color-split-button-hover-background`.

**Permissions and visibility considerations**

  - *To whom is this feature visible?* Logged-in users in editors they can edit; for the description with `edit_work_packages` (or `add_work_packages` for new work packages).

  - *When is it not visible?* Feature flag or setting off, no LLM connection, no available action, anonymous users.

**Translation considerations**

  - *Key terms and phrases in the key languages*: "Assistant" (DE "Assistent"). Action names are not translated.

**Out of scope**

  - Running the action and the result pane (AI-176), selected text (AI-177), LLM gateway (AI-137).
