Search docs...

Start typing to search documentation

Chat Guide

Prompt Template

Reorder what the model sees, block by block.

Concept

Every request is assembled from blocks: prompts, character data, lore, persona, and the chat history. The prompt template editor in the preset lets you reorder those blocks by dragging.

No template means the default order; the template only exists when you customize it, and removing it restores the default exactly.

Block types

Slot blocks stand for engine-provided content: main prompt, persona, lorebook, system prompt, and prefill. They render whatever those systems produce at request time.

Plain blocks are your own fixed text with a role of your choice, macro-expanded like everything else.

The chat history marker places the conversation itself. Everything above it is pre-history; everything below lands after the history, post-history territory.

Default order

The default assembly order is:

text
main prompt
lorebook entries
character blocks
persona
system prompt
example messages
[chat history]
post-history instructions

Leading system messages are hoisted into the request's system parameter unless the preset disables the system role.

Tips

Move the lorebook slot below character blocks when lore should override character facts; the later a block, the more the model weighs it.

Use the dry-run inspector in the chat actions menu to preview the exact assembled prompt without spending tokens.

Prompt Template Editor in UnoRouter