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( {
		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'

  • Chevron-right icon

    shortcuts : readonly Array<AIChatShortcutDefinition> | undefined

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

    ClassicEditor
    	.create( {
    		ai: {
    			chat: {
    				shortcuts: [
    					// ...
    				]
    			}
    		}
    	} )
    	.then( ... )
    	.catch( ... );
    
    Copy code
  • Chevron-right icon

    welcomeMessage : string | undefined

    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?'