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.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • Get started
    • Overview
    • Onboarding
    • Get started
    • Launch Insights
    • LaunchDarkly architecture
    • LaunchDarkly vocabulary
  • AgentControl
    • AgentControl
    • Manage AgentControl
  • Feature flags
    • Create flags
    • Target with flags
    • Flag templates
    • Manage flags
    • Code references
    • Contexts
    • Segments
  • Releases
    • Releasing features with LaunchDarkly
    • Release policies
    • Percentage rollouts
    • Progressive rollouts
    • Guarded rollouts
    • Feature monitoring
    • Release pipelines
    • Engineering insights
    • Release management tools
      • Approvals
      • Flag triggers
        • Creating flag triggers
        • Managing flag triggers
      • Required comments
      • Required confirmation
      • Scheduled flag changes
      • Workflows
    • Applications and app versions
    • Change history
    • Restoring previous flag versions
  • Observability
    • Observability
    • Session replay
    • Error monitoring
    • Logs
    • Traces
    • Observability metrics
    • Product analytics events
    • LLM observability
    • Alerts
    • Dashboards
    • Service map
    • Vega for auto-remediation
    • Observability MCP server
    • Search specification
    • Observability settings
    • Observability integrations
  • Experimentation
    • Experimentation
    • Experiment metric types
    • Experiment configuration
    • Managing experiments
    • Analyzing experiments
    • Multi-armed bandits
    • Holdouts
  • Metrics and events
    • Metrics in LaunchDarkly
    • Creating metrics
    • Metric groups
    • Events
    • Autogenerated metrics
  • Warehouse native
    • Warehouse native metrics
    • Setting up external warehouses
    • Creating experiments using warehouse native metrics
  • Infrastructure
    • Connect apps and services to LaunchDarkly
    • LaunchDarkly in China and Pakistan
    • LaunchDarkly in the European Union (EU)
    • LaunchDarkly in federal environments
    • Public IP list
  • Your account
    • Projects
    • Views
    • Environments
    • Tags
    • Teams
    • Members
    • Roles
    • Account security
    • Feature previews
    • Billing and usage
    • Changelog
Sign inTry it free
LogoLogo
On this page
  • Overview
  • Create flag triggers
ReleasesRelease management toolsFlag triggers

Creating flag triggers

Was this page helpful?
Previous

Managing flag triggers

Next
Built with

Overview

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.

The environment overflow menu.

The environment overflow menu.
  1. Select Configuration in environment. The “Environment configuration” screen appears.
  2. Find the “Triggers” section and click + Add trigger. The “Create trigger” dialog appears.
  3. 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.
  4. Choose an action you wish to perform with the trigger from the Action menu.
  5. Click Save trigger. A confirmation appears and the trigger appears in the flag’s configuration.
  6. 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:

A trigger with the URL obscured.

A trigger with the URL obscured.

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

You can also use the REST API: Create flag trigger