Skip to main content
Variables are the dynamic content in your prompts. They can take different values for all your test cases. You can create text, image, and PDF variables.

Creating Text Variables

Text variables are simple to create. The following is an example of a prompt without variables:
Example of a prompt without variables:
“Write a haiku about nature that captures a peaceful moment.”
The following is an example of a prompt with variables:
Example of a prompt with variables:
“Write a haiku about {{topic}} that evokes {{emotion}} and includes {{element}}”
A variable can be added anywhere in a prompt by enclosing its name in double curly braces, for example {{persona}}. You can manage the content for each variable in the Variable Editor: Defining the content of a variable

Creating Image Variables

To create image variables follow the steps below:
1

Click insert image

Insert a new image in the Editor and select From Variable.Adding a new image
2

Give a name and attach the image variable

Define a name for the image variable and attach it to the message.Name and attach image
3

Attach an actual image to the variable

Attach an actual image to the variable. You can paste the URL, the base64, or load it from your computer.Attaching an actual image

Creating PDF Variables

To create PDF variables follow the steps below:
1

Click insert PDF

Insert a new PDF in the Editor and select From Variable.Adding a PDF variable
2

Give a name and attach the PDF variable

Define a name for the PDF variable and attach it to the message.Rename a PDF variable
3

Attach an actual PDF to the variable

Attach an actual PDF to the variable. You can paste the URL, the base64, or load it from your computer.Attaching an actual PDF