# AIDefaultContextFeatures

interface

Narrows down which invocations of the AI features a [default context entry](module_ai_aicore_model_aidefaultcontext-AIDefaultContextEntry.md) applies to.

Each key targets one AI feature. When a key is omitted, the entry is **not** applied to that feature. A value of `true` applies the entry to every invocation of the feature, while a `RegExp` applies it only when one of the invocation IDs matches:

* `chat` - the ID of the [chat shortcut](module_ai_aichatshortcuts_aichatshortcuts-AIChatShortcutChatDefinition.md) used to start a conversation. A matching `RegExp` attaches the entry to that conversation, so it applies to the shortcut's message **and** to the conversation's later messages. A conversation not started by a matching shortcut (for example one started with a free-form message) receives the entry only when the value is `true`.
* `quickActions` - the ID of the quick action or of its group,
* `review` - the ID of the review command,
* `translate` - the ID of the target language.

```typescript
// Attach to all review commands, but only to the translate quick actions.
{
	review: true,
	quickActions: /^translate/
}
```

<a id="properties">

## Properties

<a id="member-chat">

### `chat?: boolean | RegExp`

Whether the entry is attached to the AI Chat messages. Provide a `RegExp` to attach it when a conversation is started with an [AI Chat shortcut](module_ai_aichatshortcuts_aichatshortcuts-AIChatShortcutChatDefinition.md) whose ID matches: the entry is folded into that conversation, so it applies to the shortcut's message and to its later messages as well. A conversation not started by a matching shortcut receives the entry only when the value is `true`.

<a id="member-quickActions">

### `quickActions?: boolean | RegExp`

Whether the entry is attached to AI Quick Action requests. Provide a `RegExp` to attach it only to actions whose ID, or the ID of their group, matches.

<a id="member-review">

### `review?: boolean | RegExp`

Whether the entry is attached to AI Review requests. Provide a `RegExp` to attach it only to review commands whose ID matches.

<a id="member-translate">

### `translate?: boolean | RegExp`

Whether the entry is attached to AI Translate requests. Provide a `RegExp` to attach it only to translations whose target language ID matches.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
