--- title: "Flow builder basics" slug: "flow-builder-basics" description: "Learn how to create interactive flows for user onboarding and feature adoption, enhancing engagement with personalized, context-aware guidance." tags: ["User Onboarding", "Interactive Flows", "In-App Guidance"] updated: 2026-11-09T16:31:51Z published: 2026-11-09T16:31:51Z canonical: "help.userflow.com/flow-builder-basics" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.userflow.com/llms.txt > Use this file to discover all available pages before exploring further. # Flow builder basics The Flow builder is where you create a flow step by step: you add steps, pick how each one looks, point tooltips at elements in your app, and use triggers to decide what happens next. This page covers those building blocks. > [!NOTE] > This page covers flows you build from scratch. To have AI build a flow for you, see [Creating AI-generated Smartflows](/userflow/docs/creating-smartflows). ![The Flow builder showing a flow's steps connected left to right](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(11).png) ## Before you start 1. Install the [Userflow Chrome extension](/userflow/docs/userflow-chrome-extension) so you can select elements and preview the flow in your app. 2. [Install Userflow.js](/userflow/docs/userflowjs-installation) in your app so published flows can show to users. ## How do I create a flow from scratch? Before you build, decide who the flow is for, what it should help them know or do, and when they should see it. 1. Select **Flows** in the sidebar. 2. Click **Create flow**. 3. Select **Start from scratch**. 4. Enter a flow name and click **Create**. ## How can a flow start? A flow can start automatically when a user meets conditions you set, or when the user does something, such as clicking a button or a link. See [How to start flows or checklists](/userflow/docs/how-to-start-flows-or-checklists) for every option, and [Flow targeting and audience rules](/userflow/docs/flow-targeting-and-audience-rules) for choosing who sees the flow. ## Which step types can I use? Each flow step has a step type, which controls where and how the step appears. You can mix step types in one flow. New steps are speech bubbles by default. To change a step's type, click the gear icon ⚙️ on the step. ![The gear icon on a flow step, which opens the step type and settings](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(561).png) | Step type | What it does | Best for | | --- | --- | --- | | **Speech bubble** | Appears in a set position in your app (configured in your theme), not attached to an element. | Opening a flow with a friendly, action-focused message. | | **Tooltip** | Points at a specific element in your app. | Guiding users through a process one element at a time. | | **Modal** | Appears on top of your app and blocks the page behind it until the user dismisses it or moves on. | One-step announcements, inviting users to start a flow, or ending with a congratulations message (you can add confetti). | | **Hidden** | Shows nothing on screen. It waits for a trigger, such as a user action, before the flow moves on. See [Hidden steps](/userflow/docs/hidden-steps). | Waiting until a user finishes something in your app, or sending users to a page automatically. | ![Example of a speech bubble step](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(588).png) ![Example of a tooltip step pointing at an element](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(589).png) ![Example of a modal step over an app page](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(590).png) ![Example of a hidden step in the Flow builder with its triggers](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(592).png) ## Customize a flow step After you pick a step type, click the gear icon ⚙️ on the step to change its settings, such as its position, backdrop, buttons, and confetti. ### Can I use Liquid templates in flow steps? No. Liquid templates don't work in flow step content. Liquid only renders in a few Userflow fields, such as Adoption Agent instructions and a Resource Center knowledge block's default search, so a Liquid code sample in a speech bubble, tooltip, modal, or button won't run. See [Using Liquid templates in Userflow](/userflow/docs/liquid-templates) for the full list. To show different content to different users in a flow, add a step trigger with an **Attribute** condition and a **Go to step** action, so each user moves to the step written for them. ## How do I choose the element a tooltip points to? When you add a tooltip step, you select the element in your app that the tooltip should point at. For full instructions, see [Selecting elements](/userflow/docs/tooltip-element-selection). ### Use the automatic element selector Userflow's automatic element selector shows a picture of the element you picked instead of raw CSS, and uses several data points to find that element reliably. Its advanced options include: - **Dynamic text:** finds the element even when its text is different for each user. - **Strictness:** sets how strictly Userflow matches the element, from Loosest to Strictest. See [how to adjust strictness](/userflow/docs/tooltip-element-selection#userflow-picked-the-wrong-element-try-these-first). ### Select an element manually We recommend the automatic selector, but you can also click **Go Manual** to find an element by its text or by CSS. ### What if Userflow can't find the element? If Userflow can't find the element a tooltip points at, the cause is usually an iframe, several elements sharing the same CSS ID, or an element that takes so long to load that the step times out. See [Element not found](/userflow/docs/element-not-found) and [Flow step timeouts](/userflow/docs/flow-step-timeouts). ### Change where a tooltip appears To put a tooltip to the left, right, above, or below its element: 1. Click the selected element in the flow step. 2. Select **Specify tooltip position**. > [!NOTE] > Spacing and tooltip display > > A tooltip needs enough room on screen. If there isn't enough space in the position you chose, it shows in another position. ## Add step triggers Step triggers are "if this, then that" rules on a step. They decide what happens when a condition is met, so you can branch the flow, skip steps, and more. One step can have several triggers. To add a trigger, click **Add block > Trigger** on a step. Trigger conditions include: - **Attribute:** the user has a certain attribute value. - **Current page (URL):** the user is on a certain page. See [URL pattern matching](/userflow/docs/url-pattern-matching). - **Element is present / clicked / disabled:** an element in your app is in a certain state (useful when pages load slowly). - **Text input value:** an input field contains a certain value. - **User fills in input:** the user types anything into an input field. - **Current time:** a certain time or time period. - **Water is wet:** always true, so the trigger always fires. - **Logic group:** combine conditions with and/or. - **Wait:** wait a number of seconds before continuing. **Best practice:** add triggers to visible steps too, so users don't get stuck. > [!NOTE] > Triggers and event conditions > > Custom event conditions aren't supported in triggers. As a workaround, update a user attribute instead of sending an event. ### Which actions can a trigger or button run? Buttons, tooltip target clicks, and step triggers can all run actions. ![A flow step with a button, a tooltip target, and a step trigger, each able to run actions](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(370).png) 1. **Go to step:** move to another step in the flow. 2. **Track event:** track an event when the button is clicked or the trigger fires. Pick an existing event or type a new name to create one. Events created here are listed under **Settings → Events**, not on the **Event trackers** page. 3. **Dismiss:** end the current flow. 4. **Start new flow/checklist:** start a different flow or checklist (this dismisses the current flow). 5. **Navigate to page:** send the user to a URL, in the same tab or a new tab. See [How to navigate to a page when a flow starts](/userflow/docs/go-to-page-when-flow-starts). 6. **Snooze flow:** pause the flow for a set time. See [Snooze a flow](/userflow/docs/snooze-a-flow). 7. **Set user attribute:** set an attribute value, including adding to a number. 8. **Evaluate JavaScript:** run JavaScript in your app. See [Using Evaluate JavaScript](/userflow/docs/using-enhanced-javascript). ### Every trigger needs both a condition and an action A step trigger has two halves: a condition that says *when*, and an action that says *what happens*. A condition on its own does nothing. **Example: pause 20 seconds, then continue.** To hold a user on step 1 for 20 seconds and then move them to step 2: 1. Open step 1 and click **Add block → Trigger**. 2. For the condition, select **Wait** and enter 20 seconds. 3. For the action, select **Go to step** and choose step 2. Use **Go to step** whenever the answer to "what happens next?" is simply "the next step." **When you don't need a real condition:** if a step should always move on and the flow doesn't branch, pair **Water is wet** (the always-true condition) with **Go to step**. It reads oddly, but it's the intended way to say "always continue." Save real conditions, such as attributes and segments, for steps where the path actually splits. ### Delay a tooltip when its target is already on the page A tooltip shows as soon as its target element is on the page. To make a tooltip wait, add a step trigger to the step **before** the tooltip: 1. On the previous step, click **Add block → Trigger**. 2. Add the condition **Water is wet**, then a **Wait** condition with the number of seconds you want. 3. For the action, select **Go to step** and choose the tooltip step. If the tooltip is the first step in your flow, add a [hidden step](/userflow/docs/hidden-steps) in front of it and put the trigger there. The **Missing tooltip target tolerance** setting in your theme isn't a delay. It only applies when the target can't be found, and sets how long Userflow waits for it to appear. See [Missing tooltip target behavior](/userflow/docs/missing-tooltip-target-behavior). ### Carry a value from one flow step to a later one To remember something a user did earlier in a flow, such as visiting a page, save it as a user attribute with a step trigger: 1. On the earlier step, click **Add block → Trigger**. 2. Set the condition, for example **Current page (URL)** for the page you care about. 3. For the action, select **Set user attribute** and choose the attribute and the value to save, for example `visited_billing = true`. Later steps in the same flow, and other flows, can then use that attribute in their own triggers and conditions. ## Save, rename, duplicate, or delete a flow There's no Save button. The Flow builder saves your changes as you work. Saved changes don't reach your users until you click **Publish**. Until then, the environment shows **Pending changes** next to its version number. See [Setting up environments and versions](/userflow/docs/environments-and-versions). To rename a flow, click its name at the top of the builder. To duplicate or delete it, use the ⋮ menu in the top right. See the article on [renaming, duplicating, or deleting content](/userflow/docs/delete-and-duplicate-content). ## Plan how users move from step to step Decide for each step whether the user moves on by interacting with the flow (for example, clicking a button) or by doing something in your product. Avoid "Next, Next, Next" flows: with nothing to do, users lose interest. Give them an active path instead. - See [Flow best practices](/userflow/docs/flow-best-practices) for building engaging flows. - See [Adding and deleting steps in a flow](/userflow/docs/adding-and-deleting-steps) to add a step or insert one between two others. - If a step isn't connected to the rest of the flow, see [Disconnected steps](/userflow/docs/disconnected-steps). ## Hide a flow temporarily To show a flow only on certain pages after it has started, turn on **Temporarily hide flow if** in the flow's advanced settings. The flow is hidden while the condition is met, and other flows can start in the meantime. ![The Temporarily hide flow if setting in a flow's advanced settings](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/flows-guide-image-v47l0s4g.png) > [!WARNING] > **Important:** Use auto-start conditions to control who sees a flow and when, rather than the temporary hide condition. ## Focus attention with a backdrop A backdrop adds a semi-transparent layer over your app. It covers everything except Userflow content and the tooltip's target element, and blocks clicks on the page behind it. - Modal steps have a backdrop by default. - For tooltip and speech bubble steps, you can turn the backdrop on per step. - You can change how backdrops look and behave in your [theme settings](/userflow/docs/themes). ## How does a flow end? A flow ends when the user dismisses it or completes it. The two are tracked differently. ### Dismissing a flow Users can dismiss a flow at any time with the X button in the corner of modals, speech bubbles, and tooltips. You can turn this button off in advanced settings, but we generally don't recommend it. You can also add a **Dismiss** action to buttons, tooltip target clicks, survey questions, and step triggers. > [!TIP] > **Best practice:** Add a dismiss action on the last step so users have a clear way to finish. > [!NOTE] > Dismiss actions > > A **Start new flow/checklist** action dismisses the current flow for you. Other actions, such as **Navigate to page**, need their own dismiss action. > [!WARNING] > **Important:** Make sure every flow eventually dismisses or hides. An active flow blocks other flows from starting. > [!NOTE] > **Dismiss vs. snooze** > > Dismissing ends the flow. To let users come back to a flow later, use a **Snooze** action instead. See [Understanding flow dismiss, snooze, and restart](/userflow/docs/understanding-flow-dismiss-snooze-and-restart) for a full comparison. ### Completing a flow A flow is complete when the user reaches a completion step. By default that's the last step, but you can mark any step as an **Explicit completion step** in the builder. To complete a flow only when users click a specific button: - Add a hidden step after that button. - Give the hidden step an always-true trigger (**Water is wet**) with a **Dismiss** action. ### Change what the X button does By default, the X button dismisses a flow or checklist. In your [theme settings](/userflow/docs/themes), you can show an exit menu instead, with options to resume, close (dismiss), or restart the flow. The exit menu only appears on steps after the first step. ## Add confetti to a step Confetti adds a celebration animation to a modal, tooltip, or speech bubble, which works well at the end of an onboarding flow. To add it, turn on **Add confetti** in the step's settings. In the builder, confetti shows behind the step so you can see it's on. ![Confetti animation behind a modal step in the Flow builder](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(124).png) ## Related articles - [Getting started with flows and Smartflows](/userflow/docs/getting-started-with-flows) - [How to start flows or checklists](/userflow/docs/how-to-start-flows-or-checklists) - [Selecting elements](/userflow/docs/tooltip-element-selection) - [Step templates](/userflow/docs/step-templates) - [Flow not starting](/userflow/docs/flow-not-starting) ## Related - [Flow best practices](/flow-best-practices.md) - [Flow not starting](/flow-not-starting.md) - [Track flow button clicks](/track-flow-button-clicks.md)