Skip to main content

Prompting Overview

A prompt template is a plain-text document with prompt tags. Tags look like {scene.fullText} or {#if isStartOfText}. Lis Novel fills in the tags with your story data, inputs, and helper functions, then sends the rendered output to the model.

Quick start

{! Continue the scene using the current beat and relevant lore. !}
Write in {novel.tense}. POV: {pov}.

{#if isStartOfText}
This is the first paragraph of the scene.
{#endif}

Relevant lore:
{lore.context}

Instructions:
{message}

What this template does

  • Adds a system-style comment to keep intent visible to you but not the model.
  • Uses {novel.tense} and {pov} to keep the narrative consistent.
  • Handles the first paragraph differently with {#if isStartOfText}.
  • Pulls in worldbuilding with {lore.context} and the beat text with {message}.

How rendering works

  1. Lis Novel collects the beat, scene, chapter, act (when the novel structure includes acts), and novel context.
  2. Prompt inputs are resolved and content-selection inputs are pre-rendered into XML.
  3. The template engine evaluates tags and control flow.
  4. Each prompt message is trimmed and sent to the model.

Guide map