Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt

Use this file to discover all available pages before exploring further.

Envs Docs Environments are independent copies of your AI agent. This makes it safe to test a change in isolation, compare two versions of your agent against each other (A/B test), or roll out a new version gradually. Environments are independent copies of your AI agent. This makes it safe to test a change in isolation, compare two versions of your agent against each other (A/B test), or roll out a new version gradually. Each environment has its own draft version, live version, and independent version history. Every project starts with a single environment called Main, which is what your users connect to by default.

Key concepts

ConceptWhat it is
EnvironmentAn independent copy of your agent.
Draft versionAn auto-saved working version of the environment, updated as you make edits.
Live versionThe most recently published version of the environment that’s receiving traffic, if configured.
Traffic splittingControl what % of live traffic is reaching which environment.
MergingPromoting a specific environment to Main.
Version historySnapshots of an environments versions over time.

Best practices

Use the following workflow for any meaningful change to your agent. Main keeps serving users throughout, and you can roll back at any step.
1

Clone Main

Create a new environment cloned from Main and name it after the change(s) you’re making.
2

Iterate

Work on the new environment and save ⇧⌘S or publish versions as you go.
3

Route a small percentage of live traffic

Once you’re happy with the changes, open edit traffic split and send a small percentage of live traffic to the new environment.
4

View results (A/B test)

Compare this environment to Main using your KPIs in Analytics, Evaluations and Transcripts.
5

Merge and clean up

If this environments proves to be performing better than Main, merge the environment to Main. Delete the environment on merge to keep your project clean.
6

Repeat

Repeat this process to continually improve your agent over time.
Each project supports up to 10 environments, including Main. If you’re close to the limit, merge or delete the ones you no longer need.

Managing environments

You can manage a project’s environments from SettingsEnvironments when editing a project. Or click the environment name in the left menu under the project name and press ‘view all’.
Clean Shot 2026 04 29 At 13 09 52@2x

Creating an environment

Click New environment in the top right. Give the environment a name, pick an environment to Clone from, and click Create. New Env Most of content from the environment that you chose to clone from will be copied into your new environment - see below for the exceptions.
Data typeBehaviour when cloning
Workflows, playbooks, and toolsCloned into the new environment.
Agent configuration (model, instructions, guardrails)Cloned into the new environment.
Widget settingsCloned into the new environment.
VariablesCloned into the new environment.
Knowledge base documentsThe contents of each knowledge base document are shared project-wide. The list of documents included in the original environment is cloned into the new environment. This means that adding or removing documents in the knowledge base is environment-specific, but modifying a document affects all environments that contain that document.
Knowledge base metadataEnvironment specific. Adding or removing metadata from a document only affects a specific environment.
Knowledge base integrations (Shopify and Zendesk)Shared project-wide.
Phone numbersShared project-wide, but assigned to a specific environment.
SecretsShared project-wide, with per-environment overrides available for both draft and live versions of each environment.
EvaluationsShared project wide. Results can be filtered to a specific environment and version.
AnalyticsShared project wide. Data can be filtered to a specific environment and version.

Switching between environments

Use the environment switcher at the top of the sidebar of any page inside your project to switch between environments. You can edit any environment, including ones your users are currently interacting with. Edits only affect the draft version until you publish your environment.
Env Switching

Cloning to new environment

Press the dropdown arrow next to the publish button, and select Clone environment to clone the current draft version to a new environment.
Env Clone

Discarding changes

Press the dropdown arrow next to the publish button, and select Discard changes to open a diff view where you can confirm the selection.
Envdiscard

Aliases

Every environment has a short, URL-safe alias used in API calls, the web chat widget, and any other programmatic reference. Main’s alias is main. Aliases don’t change when you rename an environment, so integrations keep working. Copy an environment’s alias from the Alias column in SettingsEnvironments.

Legacy projects

Projects created before environments launched use three fixed environments (Development, Staging, and Production) with aliases development, staging, and production. These keep working until you opt into migration. After migrating, update integrations that use the legacy aliases, including the web chat widget snippet. If you’re making use of the start session API endpoint, you’ll also need to update this to point to the main environment, rather than production.