Prompt Templates

Ships with five built-in templates like Fix Grammar & Spelling and Summarize. Create custom templates or define team-wide presets via config.

Templates for user prompts can be shared between both the view button for multi-field generation and the toolbar buttons for inline text generation.

Default Templates since v3.0.0

Kirby Copilot includes five built-in prompt templates that cover common text generation tasks. They can be selected from the templates dropdown in the prompt dialog.

  • Fix Grammar & Spelling: Correct grammar and spelling errors
  • Make Concise: Shorten text while preserving meaning
  • Simplify: Rewrite in simpler language
  • Extend: Expand on the existing content
  • Summarize: Create a brief summary
Default templates are automatically displayed in the Panel user's language. Supported languages include English, German, French, and Dutch. If a user's language is not supported, templates fall back to English.

Managing Prompt Templates

Click the bookmark icon in the prompt dialog to open a dropdown menu. From here, you can select Save as template to store the current prompt, or choose one of your existing templates to apply it.

Kirby Panel
Fix all spelling and grammar errors in the given text. IMPORTANT: Preserve all formatting (bold, italic, links, code, headings, lists, etc.) exactly as in the original. Only output the corrected text, nothing else.

Replace

To organize your templates, select Edit templates from the dropdown. This opens a nested dialog where you can add new templates, rename existing ones, reorder them by dragging, or delete prompts you no longer need.

Kirby Panel

Templates ×

# Template namePromptDelete
1

Fix Grammar & Spelling

Fix all spelling and grammar errors in the given text. IMPORTANT: Preserve all formatting (bold, italic, links, code, headings, lists, etc.) exactly as in the original. Only output the corrected text, nothing else.

2

Make Concise

Make the given text more concise by removing unnecessary words while keeping the meaning intact. IMPORTANT: Preserve all formatting (bold, italic, links, code, headings, lists, etc.) exactly as in the original. Only output the reduced text, nothing else.

3

Simplify

Simplify the given text to make it easier to understand, using simpler words and shorter sentences. IMPORTANT: Preserve all formatting (bold, italic, links, code, headings, lists, etc.) exactly as in the original. Only output the simplified text, nothing else.

4

Extend

Extend the given text with more details, examples, or explanations while maintaining the same style and tone. IMPORTANT: Preserve all formatting (bold, italic, links, code, headings, lists, etc.) exactly as in the original. Only output the extended text, nothing else.

5

Summarize

Summarize the given text concisely while keeping the key points. Only output the summary, nothing else.

Templates are saved in the browser's local storage and are specific to each user and device.

Config-Defined Templates since v3.2.0

You can predefine prompt templates in your Kirby config that appear for all Panel users. This is useful for editorial teams that need consistent prompts across all editors, such as applying house style guidelines or formatting conventions.

site/config/config.php
return [
    'johannschopplich.copilot' => [
        'promptTemplates' => [
            [
                'label' => 'Apply House Style',
                'prompt' => 'Format the text according to our editorial style: artist names in bold, album titles in italics, use curly quotation marks.'
            ],
            [
                'label' => 'Add Spotify Links',
                'prompt' => 'Find all album titles in the text and wrap them in Markdown links to their Spotify pages.'
            ]
        ]
    ]
];
Config templates appear first in the dropdown as read-only entries. They replace the built-in defaults, but any templates users have already saved remain intact and editable.
Prompt templates are complete prompts you invoke as a unit. For reusable behaviors that compose with any prompt, see Skills.