Actions3
- Prompt Actions
Prompt → Create Prompt
AI-generatedSummary
Create a new prompt in Langfuse by specifying its name, type (text or chat), and content. Optionally add labels, tags, configuration, and a commit message for versioning.
Inputs
- Prompt Name (required) — Name for the new prompt
- Prompt Type (required) — The type of prompt to create, either 'text' or 'chat'
- Prompt Content (required) — The content of the prompt as plain text (required if Prompt Type is 'text')
- Chat Messages (required) — A JSON array of chat messages, each with role and content (required if Prompt Type is 'chat')
- Labels — Comma-separated list of labels to categorize the prompt
- Tags — Comma-separated list of tags to assign to the prompt
- Config (JSON) — Configuration object in JSON to customize the prompt settings
- Commit Message — Optional commit message describing this prompt version
Output shape
a single record representing the created prompt's details
Returns the created prompt object as received from the Langfuse API's POST /api/public/v2/prompts endpoint. Optional inputs like labels, tags, config, and commitMessage are sent if provided.