# (CBR) Content Based Routing

Content-based routing (CBR) is a technique for routing messages or requests to different destinations based on their content. CBR can be used to improve the performance, scalability, and flexibility of communication systems. For example, CBR can be used to route web traffic to different servers based on the content of the request or to route messages from different sources to different consumers based on their content.

1. Drag the CBR from the BP Components and drop it on the right side.
2. The below screen will be displayed

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

3. Enter the CBR name you want.
4. Select the file format - XML / JSON.
5. Enter the XPath.
6. Click on Add Item&#x20;

* In **VALUE AT XPATH -** Enter the value of the field you want it to identify.
* In **TARGET CONNECTION -** Select the connection to which you want to send the file.

7. Click on Save


---

# Agent Instructions: 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:

```
GET https://docs.justransform.com/development/business-processes/components-of-business-process/cbr-content-based-routing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
