> 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/s3-webex-campaign/setting-up-segmentation-for-the-s3-webex-campaign-connector.md).

# Setting up segmentation for the S3 Webex Campaign Connector

Unlike personalisation where you can use any code, the S3/Webex connector uses the Webex scripting language.

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](/taxi/dynamic-content-segmentation-and-personalisation/segmentation/creating-and-managing-segment-sets.md) and [single segments](/taxi/dynamic-content-segmentation-and-personalisation/segmentation/creating-and-managing-single-segments.md) are defined in the segmentation section of your Taxi account. These enable you to set up rules to control which content is sent to which groups of people in your data. They are then applied to any of the modules in your EDS to give you complete control of the specific content that’s sent to your customers.

This segmentation is mapped by the connector to handlebar conditional code snippets, and this code 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-bc512ec797c9f56454d6567ba5e3aab48fbe5448%2FScreenshot%2B2022-09-27%2Bat%2B10.40.43.png?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 code for segments must be added. This code is set per connector. This means you can use different conditions or variable names between environments, and thus you can work with different data structures and formats 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-d5f3dcdd57b375b203c7d027f770fd480b07ae7c%2FScreenshot%2B2022-09-27%2Bat%2B10.41.24.png?alt=media)![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-aa94708db80fb6483b270195f034f69575f1b779%2FScreenshot%2B2022-09-27%2Bat%2B10.41.51.png?alt=media)

When you export from Taxi, the if statements will look like this:

\#if\_10 $(gender) == 'female' #\
\
\#elseif\_10 $(gender) == 'male' #

Segmentation in Webex needs the number in the if statement for it to work.

When you have multiple if statements in an email they need to have different numbers and each one needs to be higher than the last.

Taxi automatically adds these in when exporting. For example, if there was an if statement after the one above it would be like this:

\#if\_11 $(gender) == 'female' #\
\
\#elseif\_11 $(gender) == 'male' #


---

# 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/s3-webex-campaign/setting-up-segmentation-for-the-s3-webex-campaign-connector.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.
