Build and improve a prompt
Start in Playground with a draft prompt, then refine it for clarity, correctness, and brevity.Create a prompt

Open Playgrounds and create a new playground
- By Alyx
- By UI
- By Code
Create a new playground
Choose a provider or model

Choose provider and model in the Playground
Draft and refine your prompt with Alyx
Create a prompt for a customer support agent that handles returns and escalations. UseGive feedback on Alyx’s drafts and keep iterating until you are satisfied with the prompt.{customer_input}and{order_id}as variables.
Use Alyx in the Prompt Playground to draft prompts
Try the prompt in the Playground
Test a prompt
Test your prompt against real examples before shipping.Test prompts in Playground against datasets, traces, or multiple versions
- By Alyx
- By UI
- By Code
Load or generate data
Load your prompt
{variables} with your dataset columns.Create evaluator and run
Review results
Save and version prompts
When a variant wins, save it to Prompt Hub so your team can track and deploy it safely.
Prompt Hub: prompts list, versions, and labels
- By Alyx
- By UI
- By Code
Save this prompt to Prompt Hub as support-agent-v2 with a description that we tightened escalation rules.
Alyx can help you refine messages, parameters, and tools first; when you are ready, ask it to save (or click Save Prompt yourself) so a new immutable version is written to Prompt Hub with the name, description, and tags you want.Browse and compare prompt version history

