Skip to main content

AI Mode setup

Add conversational search to your search bar: turn on AI Mode, set its texts and fine-tune the layout with CSS.

D
Written by David Kis

Overview

AI Mode brings Talkom into your store's search. An AI Mode button appears in your search bar. When shoppers click it, they switch from classic keyword search to a full-page conversation, where they can describe what they need and get product recommendations in a product carousel.

Learn more about the solution on talkom.ai.

How it works

  • The AI Mode button sits inside your theme's search field.

  • Clicking it opens the AI Mode page of your store at /pages/talkom-ai-mode.

  • The header of the page shows that AI Mode is active, a New Conversation button and a button to switch back to classic search.

  • Products appear as a carousel with Choose and a quick-view link, and the AI explains its picks below.

Product quick view

When a shopper clicks a product, a quick view opens over the page, so the conversation stays in place. It shows images, price, sizes, colors and the description. Shoppers can add to cart right there, click a suggested question about the product or ask their own, and open the full product page.

AI Mode, AI Assistant or Ask About Product?

They work together. Each one meets shoppers at a different moment:

Where it shows

Best for

How shoppers start

AI Assistant

Any page, as a floating bar or chat bubble

Questions at any point, support and orders

They open the chat

Ask About Product

Product pages

Questions about one product

They click a suggested question

AI Mode

Its own full page in your store

Browsing and finding products

They choose it, for example from the search bar

AI Mode runs alongside your classic search, it doesn't replace it. Shoppers can switch back any time.

Turn on AI Mode

  1. Make sure the AI Assistant (Core) app embed is on. See AI Assistant (Core) setup.

  2. In the theme editor, click App embeds, search for Talkom and turn on AI Mode.

  3. Click the arrow next to AI Mode to open the settings.

  4. Click Save.

Settings

Every text in AI Mode can be changed, so you can match your store's voice and language.

  • Text of the button: the label of the button in the search bar, for example AI Mode.

  • Text of the header: the title next to the active badge, for example Conversational Search.

  • Text of the AI mode active button: the badge that shows AI Mode is on.

  • Text of the AI mode deactive button and its (mobile) version: the button that switches back to classic search. Keep the mobile text short, for example Classic.

  • Text of the new conversation button and its (mobile) version: the button that starts a fresh conversation, for example New Conversation and New.

  • Custom CSS and Custom JS: your own code for AI Mode. See the CSS section below.

Selling in more than one language? Translate these texts with Translate & Adapt: Translate Talkom AI texts for every market.

CSS best practices

Every theme has a different header, so AI Mode usually needs a few pixels of fine-tuning. Add your CSS to the Custom CSS field of the AI Mode embed and use the CSS variables below rather than overriding layout rules. Test on a theme copy first.

Position the AI Mode button

The button is placed absolutely inside your search field. Move it with these variables:

  • --tai-button-top and --tai-button-right: distance from the top and right edge of the search field (default 5px).

  • --tai-button-margin-top: extra vertical offset for the button.

#talkom-ai-mode-button {   --tai-button-top: 4px !important;   --tai-button-right: 8px !important; }

If your theme renders more than one search field (for example one for desktop and one for mobile), each gets its own button. The #talkom-ai-mode-button selector styles all of them.

Fit the AI Mode page under your header

The AI Mode page sits below your theme's header. If your header is taller or sticky, content can slide under it. Adjust the offsets:

  • --tai-mode-page-space-y: space above the AI Mode page content. Set it to roughly the height of your header.

  • --tai-mode-header-container-top: where the AI Mode header bar (active badge, New Conversation) sticks.

  • --tai-selected-product-top: where the selected product panel starts.

This is the setup of our demo store:

#talkom-ai-mode, #talkom-ai-mode-button {   --tai-button-margin-top: 0px;   --tai-selected-product-top: 175px;   --tai-mode-header-container-top: 110px; } .talkomai-ai-mode-wrapper {   --tai-mode-page-space-y: 175px !important; }

Input and spacing

  • --tai-message-input-border-radius: roundness of the message input (default 25px).

  • --tai-chat-input-height: height of the input area.

  • --tai-scroll-button-bottom-position: position of the scroll-down arrow.

.talkomai-ai-mode-wrapper {   --tai-message-input-border-radius: 8px !important; }

Tip: check AI Mode on mobile too. Use the mobile preview in the theme editor, because headers are often a different height on small screens. You can wrap any rule in a media query, for example @media (max-width: 749px) { … }.

More variables and examples: Custom CSS for Talkom.

Need help?

We're happy to fine-tune AI Mode for your theme. Message us in the chat in the bottom right corner.

Did this answer your question?