Skip to content

Macros & template tokens

Template tokens are placeholders Pyre resolves at send time, so a single prompt adapts to whatever character, persona, and lore are active in the chat.

These tokens are used in preset templates — the system-prompt template, post-history block, and the impersonate/continue overrides. {{char}} and {{user}} are also substituted in chat (for example in greetings and example dialogue).

Token Resolves to
{{char}} The active character's name.
{{user}} Your persona's name.
{{description}} The character's description.
{{personality}} The character's personality.
{{scenario}} The character's scenario.
{{persona}} Your persona's description.
{{mesExample}} The character's example dialogue.
{{wiBefore}} Fired lorebook (World Info) entries positioned before the prompt body.
{{wiAfter}} Fired lorebook (World Info) entries positioned after the prompt body.

Note

{{wiBefore}} and {{wiAfter}} are filled by your active lorebooks. Which entries land there depends on keyword scanning and the per-entry priority — see Lorebooks (World Info).

See also