# How to create a block in a chatbot to split it

# How do I create a block in a chatbot to split it?

This article explains how to **branch your chatbot based on user responses**. Follow these steps to set up routing rules. This ensures customers see targeted content.

### In this article, you will learn how to

- **Add a Split by condition block** to your chatbot.
- Fix setup problems inside the block settings.

## Before you start

Before creating a block in a chatbot to split it, make sure you have:
- An **existing chatbot** to **add a Split by condition block**.
- Customer data or tags ready in your workspace to route contacts into different branches.

## How to create a block in a chatbot to split it

1. Log in to your Flownally workspace.
2. Go to the **Chatbots** tab.

![](/help-center/04-chatbots/02-01-paused-chatbots-list.png)

3. Click an existing chatbot to edit it, or[create a new one](/chatbots/create-chatbot) to open the editor automatically.

![](/help-center/04-chatbots/07-chatbot-blocks/01-01-opened-paused-chatbot.png)

4. Click on **+** icon to add a new block.
5. Choose the **Split by condition** block.

![](/help-center/04-chatbots/07-chatbot-blocks/05-01-select-split-by-condition-block.png)

6.  Choose a condition for the chatbot to split:
	1. Choose one of the three outputs:
		- Send rich message
		- Wait for reply
		- Intent Detector
	2. Choose one of the fields available for the output blocks.
	3. Choose an operator to be used for checking in the output block.
	4. Type a value to be used for checking in the output block.

![](/help-center/04-chatbots/07-chatbot-blocks/05-02-split-by-condition-block.png)

> **Important:** You can use the advanced mode for splitting journey by condition. This option uses **expressions**.

## What happens after creating a block in a chatbot to split it?

After creating a block in a chatbot to split it, your assistant can divide the conversation layout. The system checks customer data automatically and sends users down the correct response path.

## Troubleshooting

### Contacts go down the wrong path

This occurs because your **condition values do not match** the contact data points exactly. You need to **verify your condition criteria** and make sure they match your active contact data.

### **Expression error** when trying to save the block

This happens because your **written expression contains incorrect formatting** or typos. You must **check your expression syntax** and clear any formatting mistakes to save the block.

## Related articles

- [How to create a block in a chatbot to send interactive messages](/chatbots/chatbot-blocks/send-rich-message-block)
- [How to create a block in a chatbot to transfer chat to human](/chatbots/chatbot-blocks/transfer-to-human-block)
- [How to create a block in a chatbot to update tags](/chatbots/chatbot-blocks/update-tags-block)
- [How to jump to another block in a chatbot](/chatbots/chatbot-blocks/jump-to-block)
- [How to create a block in a journey to split it](/journeys/journey-blocks/split-by-condition-block)
