Prompt Template
A reusable prompt structure with placeholders that are filled in at runtime.
Full Definition
A prompt template is a parameterised string where fixed instructional scaffolding surrounds variable slots filled at runtime with specific inputs — user messages, retrieved documents, user profiles, or data records. Templates enforce consistency, make prompts version-controllable, and allow non-engineers to customise AI behaviour by editing template variables rather than raw prompt text. Template languages range from simple Python f-strings to dedicated frameworks like LangChain's PromptTemplate or Jinja2. Well-designed templates separate concerns cleanly: persona and instructions live in the template; dynamic data lives in variables.
Examples
A support-bot template: 'You are a helpful assistant for {company_name}. The customer's issue is: {issue}. Respond in {language} using a {tone} tone.'
A code-review template that injects the diff, language, and a checklist of review criteria into fixed slots.
Apply this in your prompts
PromptITIN automatically uses techniques like Prompt Template to build better prompts for you.