> 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/pardot-connector/setting-up-segmentation-for-pardot.md).

# Setting up segmentation for Pardot

The segmentation features in Taxi for Email allow modules within an email to be aimed at particular audiences from within our email editor. Filtering to see what recipients in different groups will receive, can be performed in real-time while building the email.\
\
[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 template to give you complete control of the specific content that’s sent to your customers.

This 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-06413dfee12c87ca9648180efefae7b9dfaef304%2FServiceLogin?alt=media)

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

\
Finally, 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-d69e1c9f9a99f66a3ffeadca03e05ae469ccf4f7%2FRSZD5fSX-8CyUbGij5R3yKFj0D4YORoG2Vn6PtMOPsdVy_PqacTCYZ--NAIVankXi043MG4mU5LZlM4OZgUJK-TbDwz9u_pgp4otGk3HvcQtLBzfG7RHKnkQbSdjCtgsA2py_3TE?alt=media)

\
You can then input the handlebar if statement you want to use:

![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-548c50507f44a49a8813667944a5d480e567c854%2FFKw-A39vNhiGLtK1408fxkgokUyItRSE2r_eN-1NjsXbhy_kSGC7_H6XzsJHhhX_6Eya5xYWm8MnXOEU83qNsyCpQluaTivcWhuOOzFenlnueoM3kEdaEknG4Lj8O5UcMUVFm-Oq?alt=media)

Things to note with Pardot and Segmentation

1. You cannot use handlebar conditionals based on the specific value of a field in your data. For example, you can target users based on whether or not their location is known, not whether or not their location equals London.
2. If you export as a segment set, as described above, you can’t also include segmentation in the versions.
3. You are able to use single segments with the Pardot connector but you can’t add lots of conditions using the rule builder in the editor.


---

# 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/pardot-connector/setting-up-segmentation-for-pardot.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.
