> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating flag triggers

<View title="Developer" />

<View title="Federal docs" />

<View title="EU docs" />

This topic explains how to create flag triggers.

## Create flag triggers

To create a trigger:

1. Navigate to the feature flag for which you wish to create a trigger.
2. Click on the **three-dot** overflow menu for the environment you want to create a trigger in.

<Frame caption="The environment overflow menu.">
  <img src="https://mintcdn.com/launchdarkly/WYiCaDy82H6mz_dK/images/auto/environment-overflow-menu-flag.auto.png?fit=max&auto=format&n=WYiCaDy82H6mz_dK&q=85&s=aba2b2fc13383c3708b976afa5431ae0" alt="The environment overflow menu." width="520" height="598" data-path="images/auto/environment-overflow-menu-flag.auto.png" />
</Frame>

3. Select **Configuration in environment**. The "Environment configuration" screen appears.
4. Find the "Triggers" section and click **+ Add trigger**. The "Create trigger" dialog appears.
5. Choose the tool you wish to use from the **Trigger type** menu. You can also choose **Generic trigger** to create a trigger that is not associated with any specific tool.
6. Choose an action you wish to perform with the trigger from the **Action** menu.
7. Click **Save trigger**. A confirmation appears and the trigger appears in the flag's configuration.
8. Copy and save the unique trigger URL. You must do this now. After you leave this page, the trigger URL will be obscured and you will not be able to view it again:

<Frame caption="A trigger with the URL obscured.">
  <img src="https://mintcdn.com/launchdarkly/ppwc2LYsjE8wwIC_/images/auto/triggers-url-obscured.auto.png?fit=max&auto=format&n=ppwc2LYsjE8wwIC_&q=85&s=4c24ca7327835ade7039bf121e1f7865" alt="A trigger with the URL obscured." width="1040" height="366" data-path="images/auto/triggers-url-obscured.auto.png" />
</Frame>

You have created a new trigger for your flag. You can create more triggers if necessary by clicking **Add trigger**.

<Card icon="https://mintcdn.com/launchdarkly/YIC2H8XW-fomhquw/assets/icons/openapi-logo.svg?fit=max&auto=format&n=YIC2H8XW-fomhquw&q=85&s=dd9578a9668a86e1a8b8c314921f204c" horizontal width="2500" height="2452" data-path="assets/icons/openapi-logo.svg">
  You can also use the REST API: [Create flag trigger](/docs/api/flag-triggers/create-flag-trigger)
</Card>
