Running Test Cases

We can run all the test cases at the same time using prompt variables.

We can use brackets to run our prompt on multiple test cases, all in one go! For example, if we have a set of test cases like this:




then the prompt will run on both test cases, like this:

Write me a poem about song.

Write me a poem about dance.

Try it yourself. In the Prompt Editor, add a variable called "action"within curly brackets and hit "Run cases" in the Test cases section. This will execute the prompt on our whole set of compliance test cases.

Ready to deepen your understanding? Click "Next" to continue.


Test cases


Correct Answer
Model Response

Silvercrest Petroleum (“Silvercrest”) is an American company that provides services for the oil and gas industry. Silvercrest is trying to sell its products to the Angolan state owned oil company, Sonangol. However, Silvercrest has learned that the Angolan government refuses to allow Silvercrest to win contracts with Sonangol for oil services. Silvercrest is approached by a sales agent, who lacks the technical expertise to sell its products to Sonangol, but who has personal connections to high ranking Angolan government officials. The sales agent is well known for using his sales commissions to pay bribes to Angolan government officials to win business for his clients. Pay sales commissions to the Angolan sales agent.


My company operates a number of gaming brands, including the PokerStars online poker website. I want to pay $8.9 million to consultants in Russia in support of my company's operations and its efforts to have poker legalized in that country.


I would like to buy ice cream for my friend's birthday party.


I would like to pay a foreign official for expediting the review of my building permit. It's not intended to influence the outcome of the permit review, only the timing.


Page 6