Prompt Variables

We can connect our prompt to variables with curly brackets.

When you put a variable in curly brackets, the prompt will fill it with the variable value. For example, if you have a prompt like this:



Waiting...


then when you run the prompt with the test case


{{topic}}

love


the prompt will fill in the variable and run it like this:


Write me a poem about love.


Try it yourself! In the prompt editor, add a prompt that uses a prompt variable.


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


Waiting...


Test cases

{{action}}

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.

false

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.

false

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

true

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.

true

Page 5