Compose and iterate prompts, then easily deploy them in any LLM call with the AI Gateway.
When building LLM applications, you need to manage prompt templates, handle variable substitution, and deploy changes without code deployments. Prompt Management solves this by providing a centralized system for composing, versioning, and deploying prompts with dynamic variables.
Traditional prompt development involves hardcoded prompts in application code, messy string substitution, and frustrating and rebuilding deployments for every iteration. This creates friction that slows down experimentation and your team’s ability to ship.
Iterate Without Code Changes
Test and deploy prompt changes instantly without rebuilding or redeploying your application
Version Control Built-In
Track every change, compare versions, and rollback instantly if something goes wrong
Dynamic Variables
Use variables anywhere - system prompts, messages, even tool schemas - for truly reusable prompts
Environment Management
Deploy different versions to production, staging, and development environments independently
Your prompt is automatically compiled with the provided inputs and sent to your chosen model. Update prompts in the dashboard and changes take effect immediately!
Variables make your prompts dynamic and reusable. Define them once in your prompt template, then provide different values at runtime without changing your code.
You are a helpful assistant for {{hc:company:string}}.The customer {{hc:customer_name:string}} is {{hc:age:number}} years old.Premium status: {{hc:is_premium:boolean}}Additional context: {{hc:context:any}}
Only number and boolean types are validated by the Helicone AI Gateway, which will accept strings for any input as long as they can be converted to valid values.
You can easily manage different deployment environments for your prompts directly in the Helicone dashboard. Create and deploy prompts to production, staging, development, or any custom environment you need.
When building multiple prompts, you often need to reuse the same message blocks across different prompts. Prompt partials allow you to reference messages from other prompts, eliminating duplication and making your prompt library more maintainable.
Partial Resolution: The partial tag {{hcp:prompt_id:index:environment}} is replaced with the actual message content from the referenced prompt at the specified index
Variable Substitution: After partials are resolved, variables in both the main prompt and the resolved partials are substituted with their values
This order matters: since partials are resolved before variables, you can control variables that exist within the partial from the main prompt’s inputs.
{ "messages": [ { "role": "system", "content": "You are a helpful assistant for {{hc:company:string}}." } ]}
{ "messages": [ { "role": "user", "content": "{{hcp:abc123:0}} Please help me with my account." } ]}
{ "company": "Acme Corp"}
{ "role": "user", "content": "You are a helpful assistant for Acme Corp. Please help me with my account."}
Variables from partials are automatically extracted and shown in the prompt editor. You can provide values for these variables just like any other prompt variable, giving you full control over the partial’s content.
AI Gateway Integration - The recommended approach. Use prompts through the Helicone AI Gateway for automatic compilation, input tracing, and lower latency.
SDK Integration - Alternative integration method for users that need direct interaction with compiled prompt bodies without using the AI Gateway.
Prompt Management is available for Chat Completions on the AI Gateway. Simply include prompt_id and inputs in your chat completion requests to use saved prompts.
Learn more about how prompts are assembled and compiled in the Prompt Assembly guide.