Skip to main content
The Prompt Editor is the core workspace of Prompt Studio. It provides a structured, IDE‑like interface for building and refining your prompts.

Message Blocks

Prompts are composed of structured message blocks. Each block represents a message in the conversation:
Block TypePurpose
SystemSets the model’s behavior, personality, and instructions
UserSample user input for testing and demonstration
AssistantPre-filled assistant responses for few-shot examples
Click Add Message to add additional blocks. Drag blocks to reorder them.

Template Variables

Use {{variable_name}} syntax anywhere in your message blocks to create dynamic prompts:
You are a helpful assistant for {{company_name}}.
The user's name is {{user_name}} and they need help with {{topic}}.
Variables are resolved at runtime when the prompt is called via API:
curl -X POST https://api.traceport.ai/v1/prompt/my-prompt/run \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{"variables": {"company_name": "Acme", "user_name": "John", "topic": "billing"}}'

Model Parameters

The right panel lets you configure model-specific settings:
ParameterDescription
ModelSelect the provider and model (e.g., Anthropic Claude 3.5 Sonnet)
TemperatureControls randomness (0 = deterministic, 1 = creative)
Max TokensMaximum number of tokens in the response
Top PNucleus sampling parameter

Toolbar Actions

The editor toolbar includes:
  • Run — Execute the prompt and view the output in the right panel
  • Save — Save the current state as a draft
  • Publish — Promote the draft to a published version
  • Fork — Create a copy of the prompt for experimentation
  • Optimize — Let Traceport’s AI analyze and suggest improvements to your prompt
Use the Fork feature to experiment with prompt variations without affecting the original.