/v1/responses using a template ID and dynamic variable injection instead of retransmitting large prompts with every request.
Executing Prompt Templates
Invoke a saved prompt template by passing theprompt parameter containing the template id and a variables key-value object.
Prompt templates are a dedicated capability of the
/v1/responses endpoint and are not supported on /v1/chat/completions.Template Authoring in Dashboard
Templates are managed through the Dashboard Templates configurator. Templates support placeholder interpolation and multi-turn role markers.Variable Placeholders
Use double curly brackets{{variable_name}} to define variables injected at runtime:
Multi-Turn Role Markers
Use# Role: <role> markers at the start of any line to segment instructions across system, user, assistant, or developer roles:
user role by default.
Prompt Object Parameters
Combining Templates with Extra Instructions
Supply theinstructions parameter to augment a template without modifying the underlying template text: