Create the support-ticket dataset
1
Create an empty dataset
Open Datasets under Resources in the Studio sidebar. If the example already exists, open it. Otherwise, click New dataset, name it
Support ticket triage, and click Create dataset.The new dataset opens at Variable settings.2
Match the prompt's variable
Click Add variable and enter:
Enter the name without braces.
ticket_text matches {{ticket_text}} in your User message. Click Save variable settings before adding or importing cases.3
Preview the sample CSV
Download support-triage.csv, then click Import CSV and select the file.Check the column mapping:
The preview shows the total case count and a sample of the rows. Confirm that ticket text appears as an input and the JSON reference answer appears as expected output. Resolve any import issues before continuing.
4
Import and inspect
Click Import 8 test cases, then open Test cases. An empty dataset now contains eight cases.Open a row to read the complete ticket and expected output. The sample includes billing, account access, product failures, general questions, and a ticket that contains an instruction the prompt should treat as data.

Preview the CSV mapping before importing. Reference answers belong in Expected output, separate from the prompt's variables.
Inputs and expected output
For the first case,ticket_text contains the login failure affecting five agents. Its reference answer contains:
Reference answer

The imported dataset contains eight cases. Open a row to read its full input and reference answer.
Add or edit a case
To add another scenario, click Add test case, fill the defined variables, enter an optional Expected output, and save. This adds a case beyond the eight in the sample. Open a case and click Edit test case, or use its row actions to choose Edit, when you need to correct it. Search Test cases to find inputs or expected outputs. Use Export CSV for the dataset, or select rows and choose Export selected for a subset. Keep the input contract stable. While cases exist, existing variable names, types, and required settings are fixed. You can add optional variables. If your prompt needs a different input contract, create a separate dataset with matching settings.Prepare your own CSV
Use the prompt’s variable names as headers and includeexpected_output only when you have reference answers. For example:
Example CSV
Evaluation snapshots
When you run an evaluation, Studio saves the dataset inputs used for that run. See them listed under Evaluation snapshots. An unchanged dataset can reuse its existing snapshot. Later edits affect future evaluations. They do not rewrite earlier run inputs, references, or scores. Deleting a case from the current dataset also leaves its existing evaluation snapshots intact. To reuse an agreed correction from an evaluated or production output, follow Human review. Add test case appends the reviewed inputs and final corrected answer and saves a new snapshot; it leaves existing rows and evaluation snapshots intact.Troubleshooting
Next, create and test an evaluation rule, then use Evaluate dataset or Evaluate to run the saved prompt against these cases.