> For the complete documentation index, see [llms.txt](https://docs.bird.com/taxi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bird.com/taxi/connectors/iterable/setting-up-segmentation-for-iterable.md).

# Segmentation in Taxi

[Segment sets](https://docs.messagebird.com/taxi/Dynamic%20content,%20segmentation%20and%20personalisation/Segmentation/creating-and-managing-segment-sets) and [single segments](https://docs.messagebird.com/taxi/Dynamic%20content,%20segmentation%20and%20personalisation/Segmentation/creating-and-managing-single-segments) are defined in the segmentation section of your Taxi account. These allow you to set up rules to control which content is sent to the groups of people within this segmentation. They are then applied to any of the modules in your Email Design System to give you complete control of the specific content that’s sent to your customers.

\
Iterable segmentation is mapped by the connector to handlebar code snippets, and this is run when the email is sent. This ensures each recipient gets the content selected for them.

![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-c3e4c557281d2c0e9c9e70f442c23d5e8c197135%2FIterable%2Bsegmentation.png?alt=media)

Once segments are defined it is possible to use them in the Taxi editor and to preview content for each segment.

To be able to export code through the connector, the handlebar code for segments must be added. This code is set per connector. This means you can use different rules between environments, so you can work with different data structures and formats in your different environments if needed.

\
Code for segments is entered through the segmentation settings.

![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-936e040265002464732516f1f31471c343e11056%2Fiterable%2Bsegmentation%2B2.png?alt=media)

In Iterable there are multiple ways that you can use conditional logic. Here is a list of what is supported via the connector:

![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-292d50e3108a19176fc15629f2a12ee74d80a86d%2Fimage.png?alt=media)

Please note that rows marked not supported may still work in the ESP if the handlebar notation is manually inserted into the HTML. Find out more information about these functions [here](https://support.iterable.com/hc/en-us/articles/205480365#working-with-strings).

\
When setting up your segmentation in Taxi you can choose which of the supported functions you want to use.

![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-cb16b0dddadd22c5fb79f7f15d0df9fe63962ca9%2Fiterable%2Bsegmentation%2B3.png?alt=media)![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-565e31281dba09f4e4cfde3dd65b022232d74d57%2Fiterable%2Bsegmentation%2B4.png?alt=media)


---

# 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://docs.bird.com/taxi/connectors/iterable/setting-up-segmentation-for-iterable.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.
