create_chat_prompt
Create a new chat prompt version in Langfuse using role/content message arrays. Assign labels, tags, and config to manage prompts for LLM applications.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"prompt": "<prompt>"
},
"name": "create_chat_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the prompt to create | |
| tags | No | Optional tags for organization (e.g., ['experimental', 'v2']) | |
| config | No | Optional JSON config (e.g., {model: 'gpt-4', temperature: 0.7}) | |
| labels | No | Labels to assign (e.g., ['production', 'staging']) | |
| prompt | Yes | Chat messages in the format [{role: 'system'|'user'|'assistant', content: '...'}] | |
| commit_message | No | Optional commit message describing the changes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||