> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-engineering/use-chaos-engineering/templates/experiment-template-templates.md).

# Experiment Template

{% @harness-package-selector/package-selector platforms="%5B%7B%22label%22%3A%22Fault%20Template%22%2C%22slug%22%3A%22fault-template%22%2C%22path%22%3A%22chaos-engineering%2Fuse-chaos-engineering%2Ftemplates%2Ffault-template-templates%22%7D%2C%7B%22label%22%3A%22Probe%20Template%22%2C%22slug%22%3A%22probe-template%22%2C%22path%22%3A%22chaos-engineering%2Fuse-chaos-engineering%2Ftemplates%2Fprobe-template-templates%22%7D%2C%7B%22label%22%3A%22Action%20Template%22%2C%22slug%22%3A%22action-template%22%2C%22path%22%3A%22chaos-engineering%2Fuse-chaos-engineering%2Ftemplates%2Faction-template-templates%22%7D%2C%7B%22label%22%3A%22Experiment%20Template%22%2C%22slug%22%3A%22experiment-template%22%2C%22path%22%3A%22chaos-engineering%2Fuse-chaos-engineering%2Ftemplates%2Fexperiment-template-templates%22%7D%5D" selectedPlatform="experiment-template" %}

**Experiment Templates** allow you to create reusable experiment templates that can be shared and used across multiple projects.

![experiment templates](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-932465d00975e535c8f777ee46b06f11fb2e85c8%2Fexp-template.png?alt=media)

### Creating Experiment Templates <a href="#creating-experiment-templates" id="creating-experiment-templates"></a>

1. Navigate to **ChaosHubs** in your **Project Settings**

   ![chaos hubs](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-05fa95e0f496165740b691af4db9b8dbc1e37cc0%2Fchaos-hub.png?alt=media)
2. Choose the **ChaosHub** you want to create Experiment template in.

   ![chaos hub](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-71fc1cbe1887d2be4e648975beccfaa158e806a1%2Fclick-on-chaoshub.png?alt=media)
3. Navigate to **Experiment Templates** and click on **New Experiment Template** and start creating the template.

### Using Experiment Templates <a href="#using-experiment-templates" id="using-experiment-templates"></a>

You can use experiment templates in two ways:

#### Option 1: From ChaosHub <a href="#option-1-from-chaoshub" id="option-1-from-chaoshub"></a>

1. Go back to the **ChaosHub** you created the template in.
2. Choose the **Experiment Template** you created and click **Create Experiment**.

   ![create experiment](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-8a187273ab52a6a6547318b36144561d17435f2e%2Fcreate-experiment.png?alt=media)
3. Select your **Infrastructure**, in the next screen and click **Create**.

   ![create experiment](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-32df14f770d4fd93f45a1a6eab50279cdb5191a3%2Fselect-infra.png?alt=media)
4. That's it. Now, you can start building your experiment using the template you created.

#### Option 2: From Experiments Page <a href="#option-2-from-experiments-page" id="option-2-from-experiments-page"></a>

1. Navigate to **Chaos Experiments** page in your project.
2. Click **New Experiment** and select **Create from template** option.

   ![create experiment](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-39c6c25b59bbbc66ada177aaad54722cfb452745%2Fcreate-experiment-from-template.png?alt=media)
3. In the **Select an Experiment Template** modal, browse through available templates. You can filter templates by scope using the tabs (**All**, **Project**, **Organization**, **Account**) and apply additional filters like **Infrastructure type**, **Tag(s)**, or **ChaosHub**.

   ![select experiment template](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-0acf902e076d46255e28d041125ddc60e48f8072%2Fselect-experiment-template.png?alt=media)
4. Select the experiment template you want to use and click **Create Experiment**.
5. In the creation dialog, provide the experiment details:

   * **Name**: Enter a name for your experiment
   * **Description** (optional): Add a description
   * **Tags** (optional): Add tags for organization
   * **Organization** and **Project**: Select the appropriate values
   * **Infrastructure**: Select a Chaos Infrastructure

   ![create experiment from template-2](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-2a9e2d6e115ed2f2007188ede2f646fdbb6bef6b%2Fcreate-experiment-from-template-2.png?alt=media)
6. Click **Create** to create the experiment from the template.

{% @harness-feedback/feedback %}
