create_prompt
Create versioned prompt templates with variable substitution for AI models in Portkey. Define templates with mustache syntax, set default parameters, and organize in collections.
Instructions
Create a new prompt template in Portkey. Prompts are versioned message templates with variable substitution support.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the prompt | |
| collection_id | Yes | Collection ID to organize the prompt in (use list_collections to find) | |
| string | Yes | Prompt template string with {{variable}} mustache syntax | |
| parameters | Yes | Default values for template variables | |
| virtual_key | Yes | Virtual key slug for model access | |
| model | No | Model identifier (e.g., 'gpt-4', 'claude-3-opus') | |
| version_description | No | Description for this prompt version | |
| template_metadata | No | Custom metadata (app, env, source_file, etc.) | |
| functions | No | Function definitions for function calling | |
| tools | No | Tool definitions for tool use | |
| tool_choice | No | Tool choice strategy | |
| dry_run | No | When true, validate without creating |