> ## Documentation Index
> Fetch the complete documentation index at: https://docs.julian.11x.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Page rules

> Change the widget's opening message, suggestions, icon, layout and variables on specific pages or sites.

One agent usually runs across a whole website, but a pricing page, a support page and a careers page call for different
openings. A page rule overrides the widget's settings on the pages it matches; everything it doesn't override keeps the
agent's normal settings.

Configure rules in **Widget > Data & Compliance > Page Rules**, under **Page-Specific Overrides**.

## Which pages a rule covers

| Site | Path | The rule applies to |
| - | - | - |
| `*.example.com` | (blank) | Every page on subdomains such as `www.example.com`, but not `example.com` itself |
| `*.example.com` | `/pricing` | Only `/pricing` on those subdomains |
| (blank, any site) | `/pricing` | `/pricing` on every site the widget is installed on |

The path is an exact page: `/pricing` matches `/pricing` and `/pricing/` (and ignores query strings), but not
`/pricing/teams`. Add a rule per page you want to cover, or use a site with no path to cover a whole site, such as a
separate help center domain.

## What a rule can change

| Category | What you can set for the matching pages |
| - | - |
| **Chat Settings** | First message, end message, and input placeholder |
| **Suggestions** | Different suggestion chips, or none |
| **Icon** | A different widget icon |
| **Layout** | Inline embed or floating launcher |
| **Input Variables** | Fixed values for the agent's input variables on these pages |

Input variable overrides let one set of instructions behave differently by page. For example, set `page_topic` to
`pricing` on `/pricing` and to `support` on your help site, and write the agent's instructions around `{{page_topic}}`.

## When several rules match

Every matching rule applies. When two rules set the same thing, the one higher in the list wins, so put specific rules
above general ones.

> [!NOTE]
>
> A page rule changes the first message for everyone on that page. To open the chat on its own, or greet visitors from a
> campaign differently, use [proactive engagement](https://docs.julian.11x.ai/chat/proactive-engagement.md) triggers, which have their own opening
> message.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.