Migrating to Flows 2.0
This guide details the changes and how to migrate your onboarding flows to Flows 2.0
The old version of Flows will be shut down on March 31, 2025. Please ensure you migrate before this date. To ease the transition, Flows 1 usage will be free for everyone during this period. Read the full announcement on our blog.
Key changes
Workflows
Flows 2.0 introduces workflows, enabling you to create complex, multi-step experiences across sessions and the entire user lifecycle. Workflows are more versatile than original flows and can function independently of user interaction.
Flow is now a Tour
For step-by-step guides to specific tasks, use a tour within a workflow. Tours work similarly to old flows but offer special features, making them ideal for linear user journeys.
Pricing changes
We’re transitioning from a “Monthly Started Flows” model to a “Monthly Tracked Users (MTU)” model. This means you’ll pay based on the number of users initialized in a given month, with unlimited workflows included. For full details, visit our pricing page.
Projects are deprecated
Flows 2.0 removes the concept of "projects". If you have projects in Flows 1, you can still access them to migrate your flows. Use environments or separate organizations to manage project isolation.
Styling
Flows 2.0 does not support adding custom CSS in Flows Cloud. To customize components, use:
- Custom components for full flexibility.
- Built-in styles by extracting and modifying
index.css
from@flows/react-components
package.
How to migrate
Install the new SDK
Intall @flows/react
package or update @flows/js
to the latest version.
Use built-in components
In Flows 2.0, you can create custom UI components and use them in your workflows. To make the transition easier, we have created a set of built-in components. These components keep the most common use cases in mind, if you need different features, create your own custom components. To use the built-in components install the @flows/react-components
or @flows/js-components
package.
Then import and use the components in your app.
Add custom components
Flows 2.0 supports custom components for greater flexibility. Create components in your app, pass them to FlowsProvider, and use them in workflows. For more information, see the custom components guide.
SDK deprecated functions
Flows 1 function | Status | Replacement |
---|---|---|
init() | Replaced | Use FlowsProvider |
startFlows() | Deprecated | – |
nextStep() | Deprecated | – |
endFlow() | Deprecated | – |
getCurrentStep() | Deprecated for now | Replacement coming soon |
resetFlow() | Deprecated for now | Replacement coming soon |
resetAllFlows() | Deprecated for now | Replacement coming soon |
init() tracking function | Deprecated for now | Future integrations to replace this |
Have questions or need help migrating? Contact us via hello@flows.sh or join the Slack community.