# AIChatConfig

interface

The configuration of the [AI Chat feature](module_ai_aichat_aichat-AIChat.md).

The properties defined in this config are set in the `config.ai.chat` namespace.

```typescript
ClassicEditor
	.create( {
		ai: {
			chat: {
				// AI Chat configuration.
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

See [the full AI configuration](module_ai_aiconfig-AIConfig.md).

See [all editor options](module_core_editor_editorconfig-EditorConfig.md).

<a id="properties">

## Properties

<a id="member-context">

### `context: AIChatContextConfig`

The configuration of the AI Chat context.

Read more in [`AIChatContextConfig`](module_ai_aichat_model_aichatcontext-AIChatContextConfig.md).

<a id="member-initialConversation">

### `initialConversation?: string`

Decides which conversation will be loaded after the feature has initialized.

Possible values are:

* `'new'` - a new conversation is started (default),
* `'lastCreated'` - the most recently created conversation will be loaded,
* conversation ID - the conversation with given ID will be loaded.

If `'lastCreated'` is set while the conversation history is empty, a new conversation will be started instead.

If the conversation with the specified ID is not found, an error will be thrown.

Defaults to `'new'`

<a id="member-shortcuts">

### `shortcuts?: readonly Array<AIChatShortcutDefinition>`

A list of shortcuts to be displayed in the AI Chat Shortcuts feed.

```typescript
ClassicEditor
	.create( {
		ai: {
			chat: {
				shortcuts: [
					// ...
				]
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

<a id="member-welcomeMessage">

### `welcomeMessage?: string`

The welcome message to be displayed when the AI chat is initialized. When not set, the default welcome message will be used.

Defaults to `'Hi! I can help you draft, rewrite, and improve your text, explore ideas, research topics, and solve problems. How can I help right now?'`

---

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