- Docs
- Deploying Your Bot
- Widget Display Rules
Widget Display Rules
Control exactly which pages the chat bubble appears on — show it on your docs, hide it at checkout — using path-based display rules with drag-to-reorder priorities.
On this page
By default, the Bot Widget appears on every page that has your embed code. Display rules let you narrow that by URL path — show the bubble only on your docs, hide it during checkout, or anything in between. This article covers how rules are evaluated, the patterns that work, and what to check when a rule doesn't behave.
Where to find them
Open your bot's Deploy tab, stay on the Bot Widget sub-tab, and scroll to the Display rules card at the bottom.
Adding a rule
Each rule has two parts:
- A condition — pick one from the dropdown:
- Path contains — show the widget when the URL path contains the pattern.
- Path does not contain — hide the widget when the URL path contains the pattern.
- A pattern — a piece of the URL path, like
/products,/blog,checkout, or the wildcard*.
Type the pattern, choose the condition, and click Add Rule. New rules are added to the bottom of the list.
Patterns match against the path portion of the URL only — the part after your domain. For https://example.com/docs/getting-started?ref=nav, the path is /docs/getting-started. Domains and query strings are not matched.
How rules are evaluated
Every time a visitor loads a page, the widget walks your rule list top to bottom and stops at the first rule whose pattern matches the current path:
- If the matching rule is Path contains → the widget is shown.
- If the matching rule is Path does not contain → the widget is hidden.
- If no rule matches (or you have no rules at all) → the widget is shown by default.
Two things follow from this:
- Order matters. Rule 1 beats rule 2 whenever both match. Drag rules by the grip handle to reorder — the badge next to each rule shows its priority, with Priority 1 at the top.
- Matching is "contains", not "equals".
/docmatches/doc,/docs, and/product/doc-holder. Prefer patterns with a leading slash and enough of the path to be unambiguous.
The * wildcard
The pattern * matches every path. On its own it isn't useful, but combined with ordering it unlocks allowlist-style setups: a low-priority wildcard sets the default, and higher-priority rules carve out exceptions.
Common patterns
Hide on checkout, show everywhere else
Priority | Condition | Pattern |
|---|---|---|
1 | Path does not contain |
|
One rule is enough. On /checkout pages the rule matches and hides the widget; everywhere else nothing matches, so the widget shows by default.
Show only on your docs
Priority | Condition | Pattern |
|---|---|---|
1 | Path contains |
|
2 | Path does not contain |
|
On /docs/... pages, rule 1 matches first and shows the widget. Everywhere else, rule 1 doesn't match, rule 2 (the wildcard) does, and the widget is hidden.
Hide on admin and account pages
Priority | Condition | Pattern |
|---|---|---|
1 | Path does not contain |
|
2 | Path does not contain |
|
Multiple hide rules stack fine — the widget still shows by default everywhere none of them match.
Troubleshooting rules that don't match
The widget shows where you expected it hidden (or vice versa).
- Check rule order. The first matching rule wins, so a broad Path contains rule above your hide rule will show the widget before the hide rule is ever reached. Drag the more specific rule higher.
- Check for substring surprises.
cartalso matches/mycart-blog;/docalso matches/product/doc-holder. Make the pattern longer or add slashes. - Confirm you're testing the path, not the domain or query string — those are never matched.
A change doesn't seem to take effect.
- Rules are evaluated when the page loads. Reload the page you're testing — ideally in an incognito window with a hard refresh.
- On single-page apps that swap pages without a full reload, the widget keeps the decision made at load time. It re-evaluates on the next real page load.
Still stuck? The widget logs its full evaluation to the browser console. Open DevTools (F12), reload, and look for HelpJet Targeting Evaluation - it lists every rule, whether it matched the current path, and why the widget was shown or hidden. If the output doesn't match what you configured, send a screenshot to support along with your bot ID.
Where to go next
- Embedding & Sharing Your Bot — the four deploy channels and when to use each.
- Customizing the Chat Widget — colors, icons, header, and welcome message.
Was this article helpful?