> For the complete documentation index, see [llms.txt](https://docs.peakcommerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.peakcommerce.com/product/using-peakcommerce/market-studio/who-gets-what.md).

# Who Gets What

**Who gets what** decides the experience a visitor receives once their market is known — the language they read, the profile that applies to them, and related settings. You write it as ordered, plain-language **sentences**:

> **When** *locale is fr-\** → they get *language: fr*
>
> **When** *audience is Enterprise prospects* → they get *profile: Enterprise*
>
> **Otherwise** → they get *language: en · profile: Standard*

## How sentences resolve

* **Read top to bottom.** Sentences are evaluated in order; use the arrows to reorder them.
* **The first line with an opinion about something decides it.** Each sentence sets only the facets you fill in. If sentence 1 sets the language and says nothing about the profile, a later sentence — or Otherwise — can still decide the profile. Facets you leave blank simply defer.
* **Otherwise always sits last.** It is the safety net that fills whatever is still blank after every sentence has spoken, so no visitor can end up with an undecided facet. It cannot be reordered.

## Conditions

A sentence's condition can be:

* **locale is `<pattern>`** — matches the visitor's browser/locale, with wildcards (for example `fr-*` matches `fr-FR` and `fr-CA`).
* **audience is `<audience>`** — matches membership in one of your [audiences](https://gitlab.com/peakcommerce/peak-help-docs/-/tree/main/product/rules-and-customizations/README.md).

## A note on currency

Currency is decided *before* sentences run: the visitor's currency selects the market, and each market has exactly one currency (see [Market Studio](/product/using-peakcommerce/market-studio.md#a-market-is-a-currency)). A currency the visitor explicitly arrived with — for example a `?currency=CAD` link — is authoritative; sentences fill in the facets that are still open, and can never silently switch a customer to a different currency than the one they chose.

If a visitor arrives with a currency no market serves, they are shown the currencies you do offer and asked to choose — never silently charged in a different currency. See [Trace a customer](/product/using-peakcommerce/market-studio/trace-a-customer.md) to preview both behaviours.


---

# 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.peakcommerce.com/product/using-peakcommerce/market-studio/who-gets-what.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.
