# Create branches and choose where each path leads

Source: https://knowledge.intractive.app/en/articles/creating-branches

Branches let one story show different content to different visitors, so you can tailor the story to its audience. You choose who decides the path, and where each path goes when it ends.

## Add branches to your story

1. In the editor, add a branching block where the story should split: a **Branch Choice**, **Hotspot Branch**, **VR Branch** or **Logic Branch**.
2. Add an option, hotspot, target or condition for each path. For a condition, first set up variables as described in Route visitors with a logic branch.
3. Point each one at its own branch. On the canvas, adding an option creates a path, and an option's **Leads to** can pick **New path…**. In the classic editor, set the option's **Action** to **Start branch**, then pick the branch or **Create branch**.\
   \[screenshot: a Branch Choice block with each option pointing at its own branch\]
4. Open the branch.
5. Add its content blocks. On the canvas, select the **+** at the end of the path to add the first block. In the classic editor, select **Edit branch** on the Branch row under the block, then **New content block**.
6. Choose what happens at the end of the branch.
7. Test the story with **Preview**.

When a visitor picks an option, they see the content blocks of that branch, and then go where the end of the branch sends them.

You can add, rename and reorder branches in the editor. In the classic editor, the breadcrumb at the top of the content-block list shows which branch you're editing; **Main branch** is the default. To change the order of blocks in a branch, use the move up and move down controls in the top bar of a content block. On the canvas, pick **Select** (V) in the tool menu and drag a block along its path. You can't drop it onto another path. Visitors see the blocks in that order, unless a branching block sends them somewhere else. Exits and branches follow the order of the block's options, not the order in which you created the branches.

## Route visitors with a logic branch

1. In the **Variables** tab of your story, create a variable for each thing you want to track.
2. Add content blocks that can store an answer in a variable, such as **Multiple Choice**, **True or False**, **Poll**, **Form**, **Swipe Cards** or **This or That**.
3. In the logic of those blocks, connect each answer to a variable and give it a value. For example, choosing option A on question 1 adds 1 to the variable `team_creative`.
4. Add a **Logic Branch** block after the questions.
5. Define which variable value leads to which branch.\
   \[screenshot: a Logic Branch block with two conditions and the fallback branch\]
6. Add the content you want to show in every branch.

The **Fallback** of a **Logic Branch** is in the block's settings below **Conditions**, in both editors. It has an **Action**, either **Start branch** or **Do Nothing**, and a **Branch**.

A variable holds something about the visitor, like a score, a name or a yes/no answer. Give each variable a name and a type: number, text or yes/no. Names can only use lowercase letters, numbers and underscores, for example `score` or `level_2`, with no spaces, dashes or camelCase. The variables you create also show in the **Submissions** tab of your story's analytics.

Visitors can move past **This or That**, because it has no required setting. **Answer is required** exists on **Multiple Choice**, **Swipe Cards**, **Checklist**, **Open Question** and **Hotspot Finder**. A **Branch Choice** can't be skipped.

### Start visitors in a specific branch from a share link

When you create a share link, you can set variables on it directly with **Set variables**, in the share link's advanced settings (the cog icon). The variable is set at the start of the story, and a logic branch at the start of the main branch sends the visitor to the right path. See Create an online share link for your story.

## What a branch is

A branch is a path in your story: a sequence of content blocks that a visitor only sees when they take that path. Every story starts with one main branch. You can add more branches to:

- create alternate paths for different audiences
- reuse content across routes
- organise your story in chapters
- show content only after a visitor gave a certain answer or reached a certain score

Every option you give the visitor is a path. A content block with 4 options creates 4 branches (A, B, C and D). When the visitor selects option A, they go to path A. Inside a branch you add content blocks the same way you do in the main branch.

![](https://storage.googleapis.com/intractive-knowledge-media/acc9639e05fc2fd62b41f42b3fa81d3b87312aa843169453b2ba3d1dca57906f.png)

## Choose a branch type

There are four types of branch. They differ in who decides where the visitor goes.

| Branch type | Who decides the path | Best for |
| --- | --- | --- |
| **Branch Choice** | The visitor, by picking an option | Menus, "choose your topic" moments, self-paced exploration |
| **Hotspot Branch** | The visitor, by tapping a spot on an image | Maps, floor plans, illustrated pick-a-path scenarios |
| **VR Branch** | The visitor, by looking at or tapping a target in a 360-degree view | Virtual tours, such as an entrance, then a lobby, then the individual rooms |
| **Logic Branch** | The story, based on the visitor's earlier answers | Personalised outcomes, quizzes, tailored routes |

### Branch choice

A **Branch Choice** looks like a multiple choice question. Its options send the visitor down a path. There's no right or wrong answer. Each option is its own branch. Use it when you want to put the visitor in control.

Question blocks such as **Multiple Choice** and **True or False** can also point each answer at a different branch.

### Hotspot branch

A **Hotspot Branch** works the same way as a **Hotspot Finder**, but each hotspot leads to its own path. A hotspot is a clickable area in an image, or the whole step. When the visitor taps it, they go to that path. When they have seen it, you can send them back to the hotspot image to explore the other spots.

Use it for interactive maps, illustrated scenes, a "pick a door" moment, or any moment where "tap what interests you" is more natural than a list of options.

A **Map** block can open branches too. Each marker leads to its own path through its own connection. A marker without one uses the connection that names no marker. When the map's skip is on, that has its own connection too.

### VR branch

A **VR Branch** works like a hotspot branch, but inside a VR or 360-degree view. The visitor looks around, finds a clickable target and moves on to the next view or path. A **VR Branch** has its own 360-degree media and targets, so it needs no **VR Media** block. Use it for virtual tours where visitors move from space to space.

### Logic branch (advanced)

A **Logic Branch** chooses the path for the visitor, based on the answers they gave earlier. It's the option for more advanced builders, and it works with variables.

The visitor never sees a logic branch. Its only job is to send each visitor down the right path. For example: if `score` is higher than 10, go to the expert ending; otherwise, go to the beginner ending. You can combine several conditions for more complex routing.

## Choose what happens at the end of a branch

After the last content block in a branch, you decide where the visitor goes next. On the canvas the setting is **When this path ends**, the chip at the end of the path. In the classic editor, use the menu at the bottom of the branch's list, or at the branch end in the **Flow** view. The classic list menu offers **Continue to next block**, **Loop back to branch choice** and **Jump to another block**. The classic Flow view uses slightly different labels.

- **Continue to the next block** (classic: **Continue normal flow**): the visitor carries on with the story after the branch.
- **Loop back to** the opening block (classic: **Loop back**): the visitor returns to the menu to explore another option. Branches the visitor already completed are marked, so they can see what is left to discover. Loop back only returns while untaken branches remain.
- **Jump to a block…** (classic: **Jump to content block**): the visitor skips straight to a specific block in the story.

> [!TIP]
> **Tip:** Use loop back for self-paced exploration, when you want to show more information. Use continue when every visitor should end up at the same conclusion, whichever path they took.

For example, a story starts with a menu (the branch choice) with several branches. The visitor picks one, watches one content block, and then loops back to the menu. In the classic Flow view, the orange line and the **Loops** badge on the branch show that **Loop back** is selected after that block. On the canvas, the ending reads **Loop back to** with the name of the opening block.

![](https://storage.googleapis.com/intractive-knowledge-media/f584fb1e40077631bfc371ab39bef7d79067bd6c536fc4a8074029913a6bc749.png)

![](https://storage.googleapis.com/intractive-knowledge-media/3bf2a15fd1113283892d86aa1d984562584ad9d9d4f097626397c458314de6d1.png)

## Send visitors back to a menu or out of a branch

Branches can sit inside other branches. Keep an eye on the complexity.

### Go back to a menu higher up

To send visitors from a nested branch back to the main menu, or from a sub-page back to an overview, end the nested branch with **Jump to a block…**. Then choose the block that holds that menu or overview.

### Give a menu an exit

Add an option such as "Continue" to the branch choice, and end its branch with **Continue to the next block**. Visitors who pick it leave the menu and carry on with the story after it. Options that start no path carry on along the block's own path, so they act as an exit too. On the canvas they are grouped in one **Continues** row. The branch can stay empty: picking the option then carries on as the end of the branch says, which is the next block by default. On the canvas, an option can also lead to **Continue**, with no branch.

### Let visitors take each path once

To let visitors take each path only once, turn off **Enable reselection** on the **Branch Choice**. When they come back to the menu, the options whose paths they already took are disabled.

\[screenshot: a Branch Choice block with Enable reselection turned off\]

### Move on when every option is viewed

To move on automatically once every option was viewed, let every option loop back:

1. Give each option of the **Branch Choice** its own branch with at least one content block.
2. End each option's branch with **Loop back to** (classic list menu: **Loop back to branch choice**; classic **Flow** view: **Loop back**).

The menu returns until every branch has been taken. Then the story carries on after the menu. **Enable reselection** isn't needed for this. With it on, which is the default, visitors can replay an option they already viewed. With it off, viewed options are disabled.

### Send visitors out of the story

To send visitors to an external page, such as your website or a booking form, end the branch with a **Redirect** block.

## Duplicate, copy and move content blocks

- To duplicate one content block on the canvas, select **Duplicate** (⌘D) in the block menu. The copy lands right after the original, in the same branch. This helps when several steps share the same layout and you only want to swap the text or media. In the classic editor, select **Copy content block** in the block's menu, then **New content block** > **Paste copied block**.
- To copy a block somewhere else, select **Copy** (⌘C) and then **Paste after** (⌘V) in the block menu, or **Paste copied block** in the block picker. To copy several blocks, shift-click them and press ⌘C (Ctrl+C), then ⌘V or **Paste N copied blocks** in the block picker.
- Blocks only move within their own branch. To move one to another branch, copy it, paste it there and delete the original. There is no action to duplicate a whole branch.
- To drop a **Branch Choice** and keep its content, paste the branch's blocks elsewhere and delete the **Branch Choice**.
- If you remove an option, its branch is deleted when it's empty. Otherwise it's kept and shown as unreachable.
- Deleting a block or path moves it, and everything under it, to the story's trash, for 7 days by default. A single block without branches is deleted without asking. A block with branches, or several blocks, asks first. Restore it from **Recently deleted**. A path restored there comes back unlinked.

\[screenshot: the canvas block menu with Duplicate, Copy and Paste after\]

## Plan your branches before you build

Sketch your flow first: where the story starts, which paths exist and where they come back together. Complex stories get confusing quickly, and a simple drawing on paper saves a lot of time in the editor. After publishing, the **Flow** view in your story's analytics shows which paths your visitors actually took.

## Fix common branch problems

### The visitor ends up in the wrong place after a branch

Check the end-of-branch option of the last block in that branch: **Continue to the next block**, **Loop back to** or **Jump to a block…**.

### Visitors never reach a new branch

Check which branch each option, hotspot, target or condition in the branching block points to. If you removed an option, its branch is deleted when it's empty. A branch that holds blocks is kept, and on the canvas, its exit row on the block marks it as unreachable.

### How many options a menu can have

Add as many options as your story needs, but keep menus short enough to read comfortably on a phone.

## Next

- Create an online share link for your story
- Variables & logic
