# How to create a block in a chatbot to detect customer's intent

# How do I create a block in a chatbot to detect customer's intent?

This article explains how to **set up a chatbot to analyze user messages to find out what they want**. Follow these steps to train your chatbot with example inputs. This helps the assistant match customer phrases to correct outcomes.

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

- **Add an Intent Detector block** to your chatbot.
- Provide training examples for customer phrases.
- Fix intent matching errors.

## Before you start

Before creating a block in a chatbot to detect customer's intent, make sure you have an **existing chatbot** to **add an Intent Detector block**.

## How to create a block in a chatbot to detect customer's intent

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 **Intent Detector** block.

![](/help-center/04-chatbots/07-chatbot-blocks/08-01-select-intent-detector-block.png)

6. Choose if you want the chatbot to wait for a new message or use the last one.
7. Add the intent name.
8. Provide an example message you might receive from a customer that the intent detector would use to determine their intent.
9. Optionally add additional intents to split your chatbot into more paths.

![](/help-center/04-chatbots/07-chatbot-blocks/08-02-intent-detector-block.png)

## What happens after creating a block in a chatbot to detect customer's intent?

After creating a block in a chatbot to detect customer's intent, your assistant can interpret text messages. The system processes customer inputs and routes them to the best matching conversational step.

## Troubleshooting

### Wrong intent triggered

This can happen because your training examples overlap too much. To fix this you need to edit the phrases to make them distinct.

### **Chatbot can't be activated yet** when trying to activate the chatbot

This happens because the text field is completely empty. To solve this problem, you should provide a name for the intent and examples of what the customer might say, before closing the settings.

## Related articles

- [How to create a block in a chatbot to send messages](/chatbots/chatbot-blocks/send-message-block)
- [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)
