NEWCKEditor AI on your premises: Hook your LLM and register MCP tools. Webinar coming soon!
Sign up (with export icon)

AIChatConfig

Api-interface iconinterface

The configuration of the AI Chat feature.

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

ClassicEditor
	.create( editorElement, {
		ai: {
			chat: {
				// AI Chat configuration.
			}
		}
	} )
	.then( ... )
	.catch( ... );
Copy code

See the full AI configuration.

See all editor options.

Properties

  • Chevron-right icon

    The configuration of the AI Chat context.

    Read more in AIChatContextConfig.

  • Chevron-right icon

    initialConversation : string | undefined

    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'