create_text_prompt
Create new text prompt versions in Langfuse for LLM applications. Manage immutable prompts with variables, labels, and configuration settings.
Instructions
Create a new text prompt version in Langfuse.
Prompts are immutable; creating a new version is the only way to update prompt content. Labels are unique across versions - assigning a label here will move it from other versions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the prompt to create | |
| prompt | Yes | Prompt text content (supports {{variables}}) | |
| labels | No | Labels to assign (e.g., ['production', 'staging']) | |
| config | No | Optional JSON config (e.g., {model: 'gpt-4', temperature: 0.7}) | |
| tags | No | Optional tags for organization (e.g., ['experimental', 'v2']) | |
| commit_message | No | Optional commit message describing the changes |