create_chat_prompt
Create and version chat prompts with labels and configuration for LLM applications in Langfuse.
Instructions
Create a new chat prompt version in Langfuse.
Chat prompts are arrays of role/content messages. Prompts are immutable; create a new version to update content. Labels are unique across versions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the prompt to create | |
| prompt | Yes | Chat messages in the format [{role: 'system'|'user'|'assistant', content: '...'}] | |
| 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 |