All docs
Simulations
Simulations are scripted or generated customers that talk to your agent the way real ones do. Each scenario checks the outcome, the tone and the rules you care about.
Writing a scenario
A scenario describes who the customer is, what they want and what a pass looks like. Parley plays the customer, varying wording and mood across runs.
yaml
scenario: Outside return window
customer: Bought a jacket 45 days ago, polite but firm.
expect:
- explains the 30 day policy
- offers store credit as an exception
- never promises a cash refund
- hands off if asked twice for a managerGenerating scenarios
Point Parley at a week of real conversations and it drafts scenarios from them, grouped by topic. Review and keep the ones that matter.
Running suites
bash
parley test run --env returns-v2
# 3 scenarios passed · 0 failed · avg score 94Run suites from the editor, on every push from the CLI, or nightly against main. Simulations are never billed.
Something unclear?Contact supportor browse thehelp centerAll guides

