WEBINARNo AI, your AI, or a team of agents: Introducing CKEditor Editing Toolkit. REGISTER NOW!
Sign up (with export icon)

AIQuickActionCustomChatDefinition

Api-interface iconinterface

A custom AI quick action definition that interacts with AI Chat.

It will open the AI Chat interface for interactive conversations. If model is specified, it will be selected for the new chat conversation. Otherwise, the model currently selected in the AI Chat will be used:

{
	id: 'summarize-in-bullet-points',
	label: 'Summarize',
	displayedPrompt: 'Summarize in 5 bullet points',
	prompt: 'Summarize the selected text in 5 bullet points.',
	type: 'chat'
}

Properties

  • Chevron-right icon

    The prompt shown in the AI Chat UI when the action is executed. If not specified, the prompt property value will be used.

  • Chevron-right icon

    group?: string
    readonlyinherited

    The ID of the group the action is added to, at the end, instead of the "Other" group. It can be a default group (for example 'translate') or a group defined in the ai.quickActions.items configuration.

    A placement in ai.quickActions.items takes precedence. An action listed there explicitly is displayed where it is listed. An action whose group lists its own items without it, or whose group is left out of ai.quickActions.items, is not displayed in the dropdown or in the menu bar, but it is still available as a toolbar component.

    {
    	id: 'translate-to-polish',
    	label: 'Polish',
    	prompt: 'Translate the selected text to Polish.',
    	type: 'action',
    	group: 'translate'
    }
  • Chevron-right icon

    icon?: string
    readonlyinherited

    The icon of the action in SVG string format. It is displayed when the action is placed at the top level of the list (see ai.quickActions.items) or added to a toolbar. If not specified, the icon of the group or a generic icon is used.

  • Chevron-right icon

    id: string
    readonlyinherited

    The unique identifier of the action.

  • Chevron-right icon

    label: string
    readonlyinherited

    The human-readable label of the action.

  • Chevron-right icon

    model?: string
    readonlyinherited

    The AI model to use for the action. For 'action' type, if not specified, the default model will be used. For 'chat' type, if not specified, the model currently selected in the AI Chat will be used.

  • Chevron-right icon

    prompt: string
    readonly

    The prompt to be sent to the AI Chat when the action is executed.

  • Chevron-right icon

    type: 'chat'

    The type of the action.