# Setting up AI Search

> Switch the smart search on for your store, point it at your search box, and match it to your brand.

URL: https://help.yasan.ai/en/setting-up-ai-search/
Updated: 2026-11-20

AI Search replaces your store's own search with a smart search overlay. A visitor writes what they are looking for in their own words, and the search answers with products from your catalogue and asks follow-up questions that narrow the selection down.

## Before you start

> **Info**
>
> AI Search is available for every store you connect to Yasan. The **Search** group appears in the store's settings as soon as your AI Sales Agent is ready, and the search itself stays off until you enable it. If the group is missing and the search pages show a "Search is not enabled for this store" notice, write to us at [hello@yasan.ai](mailto:hello@yasan.ai) and we will turn it on.

Everything below lives in **AI Sales Agent → your store → Search**. Each change gets a live preview next to the settings, so you can see the overlay before your customers do.

## Switching the search on

**1. Open the store's settings**

Click **AI Sales Agents** in the left menu and choose **Configure** on the store you want the search on. The store's **Status** page opens.

**2. Install the snippet if it is not on your store yet**

On Shoptet, and on WooCommerce with the Yasan plugin, the code is installed for you. On a Shopify store installed from the App Store, chat and search share the theme embed: once the Widgets embed is on and saved, there is nothing to paste. On a Shopify custom app, WooCommerce connected with REST API keys, and a product feed, the snippet is on the store's **Status** page, in the **Install the script** step — paste it just before the closing `</body>` tag, the same way as for [the chat widget](https://help.yasan.ai/en/installing-the-chat-widget/). The snippet is shared by both, so a store that already runs the AI Sales Agent has nothing to paste. To finish the step, tick **I declare that the script is on every page of my shop.** and choose **Continue**. Until then, the switches on the Status page stay locked.

**3. Choose Turn on next to the search**

The **Status** page lists both widgets. Choose **Turn on** next to the search; its row then shows **On**. The **Search** group in the left column holds **Search triggers** and **Texts**.

**4. Check your store**

Purge your cache or CDN, open the store and use its search box — the smart search opens over the page.

![AI Search activation](https://help.yasan.ai/help/setting-up-ai-search/search-activation.en.png)

*Switching the smart search on for your store*

## Pointing the search at your search box

Under **Search triggers** you tell the search which of your store's search boxes to listen to. The results appear right below your store's search field as the shopper types.

Fill in the **Store search selectors** with the CSS selectors of your search field or the whole search box that contains it — a search button alone isn't enough. Without a selector the smart search never opens; on Shoptet and Shopify, the selector for the standard search field is filled in for you.

```css
form.search input[name="q"]
```

How to find a selector in your browser and cover several search boxes is covered in [Search Triggers](https://help.yasan.ai/en/search-triggers-in-ai-search/).

## Matching your store's look

Under **Theme** in the **Common** group you set how the search looks on your store. The theme is shared with your chatbot, so the same settings dress the chatbot too:

- **Color scheme** — light or dark.
- **Accent color** — the brand color for bubbles and buttons in the search and in your chatbot.
- **Colorfulness** — how far the search leans on your brand color.
- **Corner shape**, **Size** and **Density** — match them to the buttons, type size and spacing of your site.
- **Element style** — **Filled** buttons and visitor messages in the chat carry your brand color; **Outlined** ones show it as a border and text, which suits sites with outlined buttons. If you set their colors by hand under **Advanced colors**, they are used exactly as you picked them, and the dashboard warns you when they are hard to read.
- **Product image shape** — landscape for electronics, furniture or car parts, square for most catalogues, portrait for fashion.

![Theme settings](https://help.yasan.ai/help/setting-up-ai-search/search-appearance.en.png)

*The theme settings with a live preview of the search*

## Texts

Under **Texts** you write the **Hints in the refine field** — short examples that take turns in the empty field under the results and show customers how to narrow the search down ("Ideally under 500", "For winter running"). Write them for each of your store's languages separately; leave them empty and Yasan's own hints are used.

## Switching the search off

On the store's **Status** page, choose **Turn off** next to the search. Yasan asks you to confirm: type `turn off search` under **To confirm, type:**. The overlay then stops serving; your store's own search takes over again. The product index stays warm, so switching the search back on serves right away. On a snippet install, the snippet stays on your site. On an App Store Shopify store, the theme embed stays on. Both are shared with the AI Sales Agent, so switching the search off never removes them.

## Related Articles
- [Search Triggers](https://help.yasan.ai/en/search-triggers-in-ai-search/)
- [Installing the AI Sales Agent](https://help.yasan.ai/en/installing-the-chat-widget/)
- [Customizing AI Sales Agent Appearance](https://help.yasan.ai/en/customizing-widget-appearance/)
- [Importing Products via Feed](https://help.yasan.ai/en/importing-products-via-feed/)