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
      • Required comments
      • Required confirmation
      • Scheduled flag changes
      • Workflows
        • Creating workflows
        • Deleting workflows
        • Workflow templates
    • 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
  • Create progressive rollout workflows
  • Create maintenance window workflows
  • Create custom workflows
  • View workflows
ReleasesRelease management toolsWorkflows

Creating workflows

Was this page helpful?
Previous

Deleting workflows

Next
Built with
Workflows are in maintenance mode

The Workflows feature is in maintenance mode, and is planned for future deprecation at a date not yet specified. We will work with existing customers using workflows to migrate to a replacement solution when deprecation occurs.

This topic explains how to create and view workflows in LaunchDarkly.

You can create three kinds of workflows:

  • Progressive rollout workflows gradually increase the percentage of contexts targeted by a flag.
  • Maintenance windows let you temporarily toggle targeting on or off.
  • Custom workflows manage a specific rollout process that you define.

You can also save a workflow as a template to reuse later. To learn how, read Workflow templates.

You can also use the REST API: Workflows

Create progressive rollout workflows

Progressive rollouts are also a built-in feature of LaunchDarkly

If you are interested in gradually rolling out a particular flag variation to more contexts over a defined period of time, we recommend that you use the separate progressive rollout feature instead of setting up a progressive rollout workflow.

Progressive rollouts are an option on a flag’s targeting rule to serve a given flag variation to a specified percentage of contexts, and gradually increase that percentage over a specified time. They are a built-in feature that supports the most common use case for workflows. We recommend using progressive rollouts instead of workflows if they meet your needs, because progressive rollouts are easier to set up, and because the flag variation that any particular customer encounters changes only once over the course of the rollout. To learn more, read Progressive rollouts.

To create a progressive rollout workflow:

  1. Navigate to a feature flag.
  2. Click Manage workflows in the right sidebar.
  3. Click Progressive rollout. A “Configure progressive rollout” dialog appears.
  4. Configure your progressive rollout:
  • Choose when to start the workflow.
  • Choose the default variation to roll out to contexts.
  • Choose how much to increase the percentage of the rollout, starting at 0%. This setting overwrites any previously-defined rollouts for the default variation, so you should check to ensure that the default variation will not be reduced. Each increase is a step change, just as if you changed the percentage manually.
  • Choose how frequently to increase the rollout percentage.
  • Choose which context attribute to roll out by.

The "Configure progressive rollout" workflow dialog.

The "Configure progressive rollout" workflow dialog.
  1. Click Review workflow. An overview of the workflow appears.
  2. (Optional) Click the pencil icon next to the title to edit the title.
  3. (Optional) Click the pencil icon next to “Add a description” to add a description.
  4. (Optional) If you have an approvals process, you can remove the first “Schedule” step, add an approval step, and then re-add the schedule step.
Click to expand details on adding an approval step

If you have an approvals process, you can add an approval step to your workflow.

Here’s how:

  1. Click the overflow menu in the first first “Schedule” step.
  2. Choose “Delete step.” The Request approval and Schedule date and time options appear.
  3. Click Request approval.
  4. Click into the Reviewers menu and choose an approver.
  5. Enter a description in the Description field.

You must add approval steps before you add schedule steps.

  1. Click Start workflow.

For multivariate workflows, LaunchDarkly decreases and recalculates the variations that are not selected for the rollout. You should confirm the auto-calculated percentage rollouts and adjust them to your preferences if needed.

Create maintenance window workflows

You can use workflows to create maintenance windows that toggle a flag’s targeting on or off, and then back off or on, during a scheduled date and time.

To create a maintenance window workflow:

  1. Navigate to the Flags list and select the flag you want to create a workflow for.
  2. Click Manage workflows in the right sidebar.
  3. Click Maintenance window. A “Configure a maintenance window” dialog appears.
  4. Configure your maintenance window:
  • Choose whether to toggle the flag’s targeting on or off during the maintenance.
  • Choose when to start the maintenance.
  • Choose the length of the maintenance period.

The "Configure maintenance window" workflow dialog.

The "Configure maintenance window" workflow dialog.
  1. Click Review workflow. An overview of the workflow appears.
  2. (Optional) Click the pencil icon next to the title to edit the title.
  3. (Optional) Click the pencil icon next to “Add a description” to add a description.
  4. (Optional) If you have an approvals process, you can remove the first “Schedule” step, add an approval step, and then re-add the schedule step.

Create custom workflows

To create a custom workflow:

  1. Navigate to the Flags list and select the flag you want to create a workflow for.
  2. Click Manage workflows in the right sidebar.
  3. Click Custom build. A “Name the workflow” dialog appears.
  4. Add a Name and an optional Description.
  5. Click Next.
  6. (Optional) If you have an approvals process, click Request approval.
  • Click into the Reviewers menu and choose an approver.
  • Enter a description in the Description field.
  • You must add approval steps before you add schedule steps. If you accidentally add a schedule step first, delete the schedule step, and then add the approval step as the first step of that stage.

The "Approval Request" step of a custom workflow.

The "Approval Request" step of a custom workflow.
  1. If you don’t need to request approval, click Schedule date and time.
  • Choose Later to schedule the stage to begin a specified amount of time after the previous stage, for example, one hour after the previous stage
  • Choose Specific date and time to schedule the stage to begin at a specific time, for example, 4:00 PM on January 3, 2025
  1. Click plus (+) to add another step to your workflow.
  2. Add additional flag changes you want to make.
  3. Add another approval or schedule condition step to create another stage of the workflow.
  4. When you have added all of your release steps to the workflow, click Start workflow.

LaunchDarkly now processes the workflow steps for you based on the timeline and actions that you defined.

View workflows

To view workflow details:

  1. Navigate to the Flags list and select the flag with the workflow you want to view. The flag’s Targeting tab appears.
  2. Click Manage workflows in the right sidebar.
  3. In the Workflows table, use the menu to show a table of Active or Completed workflows.
  4. Click the name of the workflow you’d like to view.