Skip to main content
Prompt templates allow you to save and manage complex system prompts centrally in the Neosantara dashboard and invoke them via the Responses API on /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 the prompt 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:
If no role markers are present in the template, the gateway processes the entire content under the user role by default.

Prompt Object Parameters

Combining Templates with Extra Instructions

Supply the instructions parameter to augment a template without modifying the underlying template text:

Next Steps