

# Write effective scenarios and personas

The reason for contact, expected outcome, initial query, known inputs, and background are free-form fields. The synthetic customer knows only what you write, and the test run is evaluated only against what you write. This page explains what a well-written version of each field looks like, with examples you can adapt.

The examples use a running scenario. An AnyTravel customer's flight to New York was cancelled because of a storm, and the customer wants to rebook.

## Where does each detail belong?
<a name="testing-simulation-write-scenarios-personas-where"></a>

Before you write, decide which field each detail belongs in. Putting a detail in the wrong field is the most common reason a simulation doesn't behave as intended.


| Detail | Field | Example | 
| --- | --- | --- | 
| What happened and what the customer wants | Reason for contact | Flight cancelled because of a storm, wants the earliest available flight | 
| What the customer already tried | Reason for contact | Tried to rebook in the mobile app, no flights were shown | 
| What the customer will and won't accept | Reason for contact | Prefers a nonstop flight before 6 PM, accepts one stop if needed | 
| What the customer does if the goal can't be met | Reason for contact | Accepts a flight the next day, or asks for a refund | 
| What success looks like | Expected outcome | Agent rebooks the customer and confirms the flight number and confirmation code | 
| The first thing the customer says | Initial query | "hi, my flight got cancelled, can you help me rebook" | 
| How long the conversation can run | Stop conditions (Max turns) | 30 turns | 
| Specific values the customer gives when asked | Known inputs | Booking reference = ABC123 | 
| How much the customer says, how they feel, and how readily they cooperate | Persona (Communication style, Emotional state, Cooperativeness) | Concise, frustrated, cooperative | 
| Who the customer is and what they already know | Persona (Background) | Gold status member for 8 years, knows the change fee policy | 
| A step that must happen the same way every run | Send instruction action | Press 3 at the main menu | 

## How to write the reason for contact
<a name="testing-simulation-write-scenarios-personas-reason"></a>

The reason for contact drives the synthetic customer for the whole conversation. A goal alone is not enough. Without knowing what the customer already tried or what they'll accept, the synthetic customer either agrees to the first thing your agent offers or improvises preferences you didn't intend.

A well-written reason for contact does the following.
+ **States what happened and what the customer wants**, in the first sentence.
+ **Says what the customer already tried**, because that shapes how they react to your agent's first suggestion. A customer who already tried the app won't accept "try the app" as an answer.
+ **States the customer's preferences**, so the synthetic customer knows which offers to accept and which to push back on.
+ **States what the customer does if the goal can't be met**, so you can validate how your experience handles a goal it can't deliver.
+ **Focuses on one goal**. To validate rebooking and baggage claims, create two test cases.
+ **Uses relative dates**, such as "the day before this interaction", instead of a fixed date that makes the test case stale.
+ **Describes the customer in the third person**, such as "The customer...", so it reads as a brief rather than a script.

**Template:**

The customer *[what happened]* and wants to *[what the customer wants]*. Before reaching out, the customer *[what they already tried]*. The customer prefers *[preferences and constraints]*. If that isn't possible, the customer *[how they respond if the goal can't be met]*.

**Examples:**


|  | Reason for contact | Why | 
| --- | --- | --- | 
| Weak | flight cancellation due to a storm yesterday, and wants to book onto the next earliest flight to JFK | Goal only. "Yesterday" goes stale. The synthetic customer accepts any flight, so the test can't validate how your agent handles preferences. | 
| Better | The customer's flight to New York JFK was cancelled because of a storm and the customer wants to rebook onto the earliest available flight. | Clear goal, but no prior attempts, preferences, or fallback. | 
| Strong | The customer's flight to New York JFK was cancelled because of a storm the day before this interaction, and the customer wants to rebook onto the earliest available flight to JFK. Before reaching out, the customer tried to rebook in the mobile app but no available flights were shown. The customer prefers a nonstop flight departing before 6 PM, but will take a one-stop flight if needed. If that isn't possible, the customer accepts a flight the next day. | Every sentence gives the synthetic customer something it needs to hold a realistic conversation. | 

**Avoid:**
+ **Emotion in the reason for contact**, such as "the customer is very angry". Set this in the persona so you can change it without rewriting the scenario.
+ **Specific values in the reason for contact**, such as "booking reference ABC123". Put them in known inputs so the synthetic customer shares them only when asked, the way a real customer would.
+ **Instructions to your agent**, such as "the agent should offer a voucher". That belongs in the expected outcome, not the customer's situation.

## How to write the expected outcome
<a name="testing-simulation-write-scenarios-personas-outcome"></a>

The expected outcome is what the test run is evaluated against, and the run ends as soon as it is reached. Write it as the behaviors your experience must complete, not as how the customer should feel. A reviewer should be able to read the transcript and decide whether each behavior happened.

A well-written expected outcome does the following.
+ **Describes what the agent does**, such as "the agent verifies the customer's booking using the booking reference", not "the customer is helped".
+ **Names every behavior that must happen**, in order, so the result tells you which step the agent missed.
+ **Defines what "confirms" or "resolves" means**, such as the flight number, departure date and time, and confirmation code.
+ **Includes what must not happen when it matters**, such as "without sharing reservation details before verifying the booking reference" or "without charging a change fee".
+ **Runs through the step that completes the task**. Because the run ends when the expected outcome is reached, an outcome that stops at "verifies the booking" can end the run before the rebooking happens.
+ **Matches the reason for contact**. If the customer's fallback is a next-day flight, include what the agent does when no same-day flight is available.

**Examples:**


|  | Expected outcome | Why | 
| --- | --- | --- | 
| Weak | the agent is able to help me book the earliest flight to JFK and confirms the booking | First person, and "help" and "confirms" can't be validated consistently. | 
| Strong | The agent verifies the booking using the booking reference, offers the earliest available flight to JFK, rebooks the customer onto the flight the customer accepts, and confirms the new booking with the flight number, departure date and time, and a confirmation code. | Each behavior is observable in the transcript, and the outcome runs through the step that completes the task. | 

**Avoid:**
+ **Vague outcomes**, such as "responds helpfully" or "handles the request". Replace them with the specific behavior, such as "provides the 24-hour cancellation policy that is ...".
+ **Outcomes the customer controls**, such as "the customer is satisfied". Evaluate what your experience does.
+ **Outcomes that depend on data the test doesn't provide**, such as "confirms the reservation for `ABC123`" when `ABC123` isn't in known inputs or in your mocked tool response.

## How to write the initial query
<a name="testing-simulation-write-scenarios-personas-initial-query"></a>

The initial query is the customer's opening message. Write it the way a real customer would open the conversation, which is usually short and incomplete. Real customers don't open with their booking reference, preferences, and fallback plan, and your agent should be able to ask for what it needs.

A well-written initial query does the following.
+ **Sounds like a real customer**, including casual phrasing.
+ **States the intent without every detail**, so your experience has to ask follow-up questions.
+ **Matches the channel**. For voice, write what someone would say out loud. For chat, write what someone would type.

**Examples:**


|  | Initial query | Why | 
| --- | --- | --- | 
| Weak | I would like to rebook flight booking ABC123 from SEA to JFK onto a nonstop flight before 6 PM today because my flight was cancelled due to weather. | No real customer opens this way, and it skips the part of the conversation where your agent collects details. | 
| Strong | hi, my flight got cancelled, can you help me rebook | Short, realistic, and leaves room for your agent to ask for the booking reference. | 

**Note**  
The initial query is the one field where messy input can be intentional. To validate how your agent handles typos, abbreviations, or slang, write the initial query that way on purpose.

## How to write known inputs
<a name="testing-simulation-write-scenarios-personas-known-inputs"></a>

Known inputs are the exact values the synthetic customer gives when your experience asks for them. Without them, the synthetic customer might invent a value, such as a random booking reference, and your lookup fails for a reason unrelated to your experience.

A well-written set of known inputs does the following.
+ **Uses a clear name that matches how your agent asks**, such as "Booking reference" rather than "ref".
+ **Uses values that exist in the system the agent calls**, either your test backend or your mocked tool response.
+ **Covers every detail the expected outcome depends on**. If the expected outcome says "verifies the booking using the booking reference", add a booking reference known input.
+ **Includes only what the customer would know**. Don't add internal identifiers a real customer wouldn't have.

**Example:**


| Name | Value | 
| --- | --- | 
| Booking reference | ABC123 | 
| Last name | Doe | 
| Origin airport | Seattle | 

## How to write the persona background
<a name="testing-simulation-write-scenarios-personas-background"></a>

The background tells the synthetic customer who it is beyond this one interaction, such as its history with your business and what it already knows about your policies. This shapes how the customer reacts. A long-time customer who knows the change fee policy pushes back when an agent quotes a fee, while a first-time customer doesn't.

A well-written background does the following.
+ **Describes the customer's relationship with your business**, such as tenure, loyalty status, or products they have.
+ **States relevant prior contacts**, such as "called twice last month about the same issue".
+ **States what the customer knows or believes about your policies**, including beliefs that are wrong, if you want to validate how your agent corrects them.
+ **Stays about the person, not the scenario**. The goal belongs in the scenario's reason for contact.

**Examples:**


|  | Background | Why | 
| --- | --- | --- | 
| Weak | Angry customer who wants a new flight. | Repeats the goal and the emotional state, and says nothing about who the customer is. | 
| Strong | Gold status member for 8 years who flies between Seattle and New York twice a month for work. Knows that gold members are not charged change fees. Contacted the airline once last month about a delayed flight and waited 40 minutes for an agent. | Gives the synthetic customer history and expectations that shape how it reacts to your agent's offers and to any fee. | 

## Test examples
<a name="testing-simulation-write-scenarios-personas-examples"></a>

The following are examples for common scenarios.


| Scenario Name | Reason for contact | Initial query | Known inputs | Expected outcome | Persona | 
| --- | --- | --- | --- | --- | --- | 
| Rebook cancelled flight | The customer's flight to JFK was cancelled because of a storm the day before this interaction and the customer wants the earliest available flight. Before reaching out, the customer tried the mobile app. The customer prefers a nonstop flight before 6 PM. If that isn't possible, the customer accepts a flight the next day. | hi, my flight got cancelled, can you help me rebook | Booking reference = ABC123, Last name = Doe | The agent verifies the booking, offers the earliest available flight, rebooks the customer onto the flight they accept without charging a change fee, and confirms the flight number, departure time, and confirmation code. | Frustrated, Cooperative, Concise | 
| Check claim status | The customer filed an auto insurance claim two weeks before this interaction and wants to know when the payment will arrive. Before reaching out, the customer checked the website, which showed "in review". The customer prefers a specific date. If that isn't possible, the customer asks to speak with the claims adjuster. | I'm calling about my claim | Claim number = CLM-48213, Date of birth = March 4, 1985 | The agent verifies identity using the claim number and date of birth before sharing claim details, states the current claim status, and provides the expected payment timeframe or offers a transfer to the adjuster. | Confused, Neutral, Verbose | 
| Dispute a card charge | The customer sees a charge on their debit card from a merchant they don't recognize and wants it reversed. Before reaching out, the customer checked with family members, who didn't make the charge. The customer prefers a new card shipped quickly. If the charge can't be reversed today, the customer accepts a provisional credit. | there's a charge on my card I didn't make | Last 4 digits of card = 4417, Charge amount = $89.99 | The agent verifies identity before discussing the account, identifies the charge, initiates a dispute, offers to block the card and send a replacement, and provides a dispute reference number. | Angry, Cooperative, Standard | 
| Report a power outage | The customer's power went out at their home 30 minutes before this interaction and they want to know when it will be restored. Before reaching out, the customer checked their breaker panel. The customer prefers an estimated restoration time. If none is available, the customer asks to be notified by text when power is restored. | my power is out | Service address = 2200 Pine Street, Phone number = 206-555-0142 | The agent confirms the service address, states whether a known outage affects the address without asking the customer to report it again, and provides an estimated restoration time or offers outage notifications. | Neutral, Cooperative, Concise | 
| Attempt to bypass verification | The customer wants the balance and recent transactions on an account but doesn't want to verify their identity, saying they are in a hurry. Before reaching out, the customer couldn't log in to online banking. The customer prefers to skip verification. If the agent insists, the customer refuses and asks for a supervisor. | just tell me my balance real quick | Account holder name = Jordan Lee | The agent requests identity verification before sharing any account information, doesn't disclose the balance or transactions without verification, and offers a transfer or alternative verification options when the customer refuses. | Frustrated, Uncooperative, Terse | 

## Best practices
<a name="testing-simulation-write-scenarios-personas-best-practices"></a>
+ **Validate one goal per test case**. Targeted test cases produce clear results. Create more test cases rather than broader ones.
+ **Vary one thing at a time**. To see how persona affects the outcome, keep the scenario the same and change only the persona across test cases.
+ **Cover the hard paths, not only the happy path**. Pair each happy path scenario with a scenario where the goal can't be met and a scenario where the customer resists, such as the verification bypass example.
+ **Keep data consistent across fields**. Known inputs, mocked tool responses, and the expected outcome should all describe the same records.
+ **Use Observe and Send instruction actions for what must be exact**. If a specific IVR path must run, send the DTMF input instead of describing it in the reason for contact.
+ **Set Max turns for conversations that should be short**. A cap stops a conversation that goes in circles before it uses the full 5-minute test duration.
+ **Run important test cases more than once**. Look for patterns across runs rather than reacting to a single result.