For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
This topic explains how you can use experiment flags to test a hypothesis. These flags help you validate the impact of features you roll out to your app or infrastructure.
About experiment flags
Experiment flags are temporary flags. In the most common use case, you wrap an experiment flag around code for a new or improved feature that impacts end users. Experiment flags can be either boolean or multivariate, so that the experiment can test multiple values. You can pair flags with metrics to compare context or system behavior between two or more flag variations. To learn more, read Experimentation.
Create experiment flags
To create an experiment flag:
Click Create and choose Flag. The “Create flag” dialog appears.
Enter a unique, human-readable Name. A suggested key auto-populates from the name you enter, but you can customize it if you wish.
(Optional) Click Edit key to update the flag key. You’ll use this key to reference the flag in your code.
(Optional) Enter a Description of the flag. A brief, human-readable description helps your account members understand what the flag is for.
(Optional) Click No template and select Experiment. The flag type updates to String.