Autocomplete curation is currently in beta. The dashboard page is marked with a Beta badge. Behavior may change before general availability.
Overview
Layers groups customer search queries into clusters. Each cluster has a canonical text (for example,"running shoes") and a set of raw queries that rolled up into it. By default, any cluster that passes frequency and relevance thresholds can surface as an autocomplete suggestion.
Autocomplete curation adds a second pass on top of that. Layers sends every candidate cluster — along with your store description and a natural-language brand prompt — to an AI model. For each cluster, the model decides:
- Whether the suggestion should appear at all (
allowed). - Whether the display text should be rewritten for customers (
display_label).
When to use it
Use autocomplete curation when you want more editorial control over the typeahead without hand-managing every suggestion. Common scenarios:- Remove off-brand suggestions. Hide queries that surfaced from historical data but don’t fit your catalog or voice.
- Standardize casing and phrasing. Force
"nike"to display as"Nike", or collapse"mens tshirt"into"Men's t-shirts". - Clean up plurals and typos. Prefer
"dress"over"dresss"as the customer-facing label while still matching both. - Enforce brand guidelines. Block suggestions that conflict with seasonal or legal guidance (for example, claims you can’t make about a product category).
How it works
Curation runs ahead of time rather than during each customer request. The live Autocomplete API returns the latest saved curation decisions for each cluster.- Layers selects clusters that pass a minimum frequency threshold and have not yet been curated for the current version of your prompt and description.
- Layers evaluates those clusters using your store description and brand prompt.
- For each cluster, Layers decides whether the suggestion should be shown and whether its display text should change.
- Layers saves those decisions so the next autocomplete request can use them.
When curation runs
Curation is triggered automatically in three cases:- When you save a new brand prompt. If the prompt or description changes, Layers starts a new curation run for your store.
- When you click Re-curate. This re-runs curation for every eligible cluster, regardless of version.
- Daily, at 09:00 UTC. Layers re-curates any stale clusters for every store that has either a brand prompt or a description set.
What the customer sees
After curation runs:- Suppressed suggestions are hidden from Autocomplete API responses entirely.
- Re-labelled suggestions appear with their curated text in
query_text. Matching is unchanged — a customer typing"nike"still reaches the same cluster, they just see"Nike"in the dropdown. - All other relevance, stem deduplication, and semantic redirect behavior continues to apply on top of curation.
Writing a good brand prompt
The brand prompt is free-form text, up to 2,000 characters. The model already receives your store description, so the prompt should focus on editorial rules rather than restating what you sell. Good prompts are specific and rule-based. Examples:- “Capitalize brand names (Nike, Adidas, Lululemon). Suppress suggestions that mention competitor brands we don’t carry.”
- “Prefer singular nouns in the display label (
dress, notdresses). Suppress suggestions that are only a misspelling of another suggestion.” - “This store is kosher-certified. Suppress any suggestion referring to pork or shellfish, even if customers have searched for it.”
- “Use sentence case for multi-word suggestions. Suppress any suggestion that looks like a SKU or part number.”
Previewing suggestions
The configuration page includes a live Preview panel. Enter any query and Layers shows the autocomplete pipeline with curation applied, so you can see exactly what a customer would see without waiting for the latest saved changes to finish applying. Preview results show:- The display label, with a strikethrough on any suggestion the model would suppress.
- The original canonical text alongside a rewritten label, when the two differ.
- The model’s short reason for its decision in the tooltip (visible to you, never to customers).
Configuration
Configure curation in the Layers dashboard under Settings → Autocomplete. For step-by-step instructions, see Configure autocomplete curation.Interactions with other features
- Stem deduplication and relevance gating run before curation. Curation only sees clusters that already passed those filters, so your prompt doesn’t need to cover typos or obvious duplicates.
- Semantic redirects run after curation, on the final suggestion text. A suggestion that is re-labelled can still trigger a matching redirect.
- Query interpretation is unaffected — curation decides which clusters appear as suggestions, not how the query itself is interpreted.
See also
- Configure autocomplete curation — Step-by-step dashboard walkthrough
- Autocomplete API — The endpoint that serves curated suggestions
- Semantic redirects — Redirect customers who type specific queries