Prompt Template
Definition
A prompt template is a reusable set of instructions for a large language model with placeholder variables that are filled at runtime with specific data. Unlike one-off prompts typed into a chat window, templates are versioned, tested, and optimized over time. In JieGou, every AI recipe is built on a prompt template with typed input schemas, output schemas, and optional knowledge base context.
Templates vs. Raw Prompts
A raw prompt is disposable — you type it once and get one response. A template is an asset — it's versioned, tested across multiple inputs, evaluated with AI Bakeoffs, and improved over time. Templates separate the "what to do" (the prompt logic) from the "what to do it with" (the input data), enabling reuse across hundreds of runs.
Variables and Schemas
Templates use {{variable}} syntax for input placeholders. Each variable is defined in an input schema with a type, description, and validation rules. When a recipe runs, JieGou validates the input against the schema, substitutes variables into the template, and sends the resolved prompt to the LLM. This ensures every execution receives well-formed instructions.
Related Terms
AI Recipes
Learn what AI recipes are and how they work in JieGou. Recipes are reusable, single-operation AI building blocks with structured inputs and outputs.
AI Workflows
Learn what AI workflows are and how they automate multi-step processes. Workflows chain recipes with branching, loops, approval gates, and parallel execution.