> For the complete documentation index, see [llms.txt](https://helpdocs.ycloud.com/help-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocs.ycloud.com/help-center/chatbot/chatbot-components/branch.md).

# Branch

## What is a Branch?

A Branch is used for customer attribute condition judgment and is not displayed to the customer. Enterprises can add judgment components to provide diverse responses for different attributes of customers and situations.

Within a Branch, multiple "filters" can be set to divert and respond to customers who meet different conditions.

## Applicable Scenarios

### User Attribute Judgment

Take the following Chatbot as an example, which is a return scenario for an e-commerce customer. The image below sets up three Branches:

1. The most recent purchase record is less than seven days old.
2. The customer has a high intent TAG.
3. Other conditions.

When a user triggers the Chatbot keyword and starts a conversation, the Chatbot will first judge the user's attributes before sending the first message. For example: If the user meets condition one, the Chatbot will reply with the return address information; if the user meets condition two or three, it will match to another flow connecting to customer service.

> Please note: When a user meets multiple conditions, the conversation will continue with the flow connected to the first condition based on the order of the Branches.

<figure><img src="/files/sCgPD3WP73vxbmWIyXz5" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://helpdocs.ycloud.com/help-center/chatbot/chatbot-components/branch.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
