SECAI Core · phase 5 of 15 · noun

Prompt template

The predefined structures used to format user queries or system instructions before they are processed by an AI model

The Explain card

Plain English
A prompt template is a predefined structure that formats user queries or system instructions before they reach the model, with placeholders filled in at runtime.
Example
A customer service app uses the template "You are a support agent for {company}. Answer only about {product}. Customer message: {input}". Every request follows the same shape. If {input} is dropped in without escaping or boundaries, a user can write text that reads like part of the instructions.
Why it matters
Templates are where untrusted data meets trusted instructions. Defenders review them like they review string concatenation in SQL: clear separation prevents injection.
Hook
A prompt template is a fill-in-the-blanks form, and the blanks are where attackers write.

Word knowledge

How the word is built, where it came from, and what it sits beside in memory.

In a sentence

On each support request, the gateway fills the {company} and {input} slots of a prompt template, then posts the completed string to the chat-completions endpoint.

Why these words
  • prompt Latin promptus, brought forth, from promere, to bring forth names the cue the phrase treats as fillable material, the text dropped into a reusable shape
  • template French templet, weaver's stretcher, from Latin templum, a small timber supplies the head noun, the stencil that holds that cue in a shape you reuse rather than a line you type once
Where it came from
Origin
English compound on the document-template pattern, from Latin promptus (brought forth, from promere) and French templet (weaver's stretcher, from Latin templum, a small timber)
Entered the language
c. 2022
What changed
Prompt had meant ready since the 1400s, then a theater cue that feeds a forgotten line, then the mark on a screen that waits for a command. Template had meant a weaver's stretcher, then a pattern you copy from, then a document with blanks. Libraries in the early 2020s joined the pair on the document-template pattern, and the compound became the ordinary name for the reusable stencil a model is handed.
How it is spelled
Pattern
Latin -pt- stays a cluster, never simplified to -t-
Pattern
English reshaped French templet into template, taking -ate as if from Latin -atus
Pattern
templ- keeps the Latin cluster, never simplified to tem-
Breaks the pattern
the noun phrase stays two words; the hyphen appears only when it modifies another noun
Breaks the pattern
template dropped the French -et of templet and took -ate, pulled toward plate
Breaks the pattern
prompt is noun and verb with no spelling change

Spelled like

  • attempt
  • exempt
  • temple
  • contemplate
Broken into chunks
  • pro
    • produce
    • promote
    • propose
  • mpt
    • attempt
    • exempt
    • contempt
  • templ
    • temple
    • contemplate
    • contemplation
  • ate
    • graduate
    • estimate
    • separate
What it sits beside

Same subject

Same shape

  • document template
  • email template
  • style template
  • command prompt

Prompt compounds

Template compounds

  • document template
  • email template
  • style template

Conversation cues

Where it sits in the deck

Phase 5: Interacting with Models: Prompting, APIs, and Retrieval

With a working model and clean data, learn the interaction layer — how users and systems communicate instructions and retrieve grounded answers.