Skip to content

Install the gift finder ​

An "ask anything" block with a text input and suggested-question chips. Two variants: the gift finder, a full search section (default) configured per version in the dashboard, and a narrow banner (banner).

Gift finder preview

Whitelist your domain first

Humind only renders on domains whitelisted in the URL whitelist page of your dashboard. Add every environment you embed on (prod, staging, preview, etc.).

Preview ​

Banner runs offline. Default uses shop-domain="mock" to skip the /widgets/gift-finder call.

Which install path? ​

You run...Do this
A Shopify store (online-store theme)Use the Shopify theme blocks below. No HTML, no loader.
A non-Shopify storefrontCopy-paste the snippet with integration="custom".
A Shopify backend with a custom (headless) storefrontCopy-paste with integration="shopify" and pass shop-domain yourself.

Versions ​

The gift finder is configured in the dashboard only, under AI > AI Widgets > AI Gift Generator, as one or more versions. A version is a complete copy of the block, customized on its own:

  • Texts: eyebrow, title, subtitle and input placeholder, per language. An empty line is hidden.
  • Presentation: theme (default transparent, light card, primary brand card, or custom with its own background), primary color pair of the question chips and send button, button design (filled or outlined), suggested questions (automatic, none, or a count per device: computer and phone), header image (default, none or your own).
  • Style: fonts, weights, sizes, spacing, colors and corner radius of the eyebrow, title, subtitle, input, send button and question chips.
  • Question set: the suggested questions shown as chips (see Question sets).

The Default version always exists and cannot be deleted. Add others by duplicating an existing version, then:

  • bind it to page types (home, product, collection, search...): it is shown on those pages. A page type belongs to one version at most;
  • or leave it without page type and call it from a tag with version="<id>", for instance on a campaign page or in a hand-placed tag on a non-Shopify storefront.

Every version has an id (1 to 40 lowercase letters, digits or dashes, such as christmas-2026), fixed once the version is created. The dashboard shows the tag to copy; on a multilingual store it carries the language of the texts to serve.

Which version is shown ​

For each block on the page, Humind picks:

  1. the version named by the tag's version attribute, when that id exists;
  2. else the version bound to the page type, read from template-name (set automatically on Shopify);
  3. else the Default version.

An unknown version id never breaks the page: the block falls back to steps 2 and 3.

Background ​

The custom theme is the only one with a background of its own (the three other themes paint their card in the chat interface colors; the primary color pair, the button design and the style apply in every theme):

  • None: transparent.
  • Solid color, from ready-made palettes or a color of your own.
  • Texture: a pattern drawn in CSS on the base color, from a catalog of 4 (dots, graph paper, fine diagonals, rings), with a motif color, a scale and an intensity. The motif always fades out under the title and the input.

Question sets ​

The suggested questions come from a question set. The default set is your conversation starters, the same list as the chat home screen, the launcher and the search bar. Create other sets on the same page (AI generation, automatic translation, each question enabled or disabled, click counts), then attach a set to a version. Sets other than the default one are used by the gift finder only. Deleting a set moves the versions that used it back to the default set.

Shopify theme blocks ​

If your store uses an Online Store 2.0 theme, add the block from the theme editor: no code needed.

  • AI Gift Generator → renders the gift finder (variant="default").
  • Shop with AI Banner → renders variant="banner" (narrow banner).

Both blocks are available on every template (home, product, collection, page). shop-domain, market-key, integration and template-name are injected for you.

The AI Gift Generator block has no text or style setting: everything is configured in the dashboard, per version. Its Version field takes the id of a version, to show that version in this block. Leave it empty to get the version of the page type, else the Default version. The block also keeps a section background color and the spacing (padding top and bottom): they style the theme section around the widget, not the widget itself.

The Shop with AI Banner block is configured in the dashboard (AI > AI Widgets > Shop with AI Banner, "Customize the widget"), per language and, if you use it on several templates, per page type. The theme editor keeps its spacing.

Copy-paste ​

Use this path for non-Shopify storefronts, or for headless setups backed by Shopify. The tag only identifies your store and the page: texts, look and questions come from the dashboard.

html
<script src="https://widgets.thehumind.com/v1/loader.js" defer></script>

<humind-gift-finder
  shop-domain="store.example.com"
  integration="shopify"
  language="en"
  template-name="index"
></humind-gift-finder>

Non-Shopify backends use integration="custom" and company-id instead of shop-domain:

html
<humind-gift-finder
  company-id="<your-humind-company-id>"
  integration="custom"
  language="en"
  template-name="index"
></humind-gift-finder>

Pass template-name with the type of the page (same values as the chat: see template-name values) so that the versions bound to a page type apply. To show a given version whatever the page, add its id with version:

html
<humind-gift-finder
  company-id="<your-humind-company-id>"
  integration="custom"
  language="en"
  version="christmas-2026"
></humind-gift-finder>

Banner variant:

html
<humind-gift-finder
  variant="banner"
  integration="shopify"
  title="Shop with AI"
  subtitle="Describe what you need"
  placeholder="Try: anti-frizz shampoo for curly hair"
></humind-gift-finder>

Variants ​

variantAPI call on mountUse case
defaultGET /widgets/gift-finderThe gift finder: primary search block on home, collection, or landing pages. Shows the version picked for the page, with its texts, look and suggested questions.
bannerGET /widgets/gift-finderThe same block without the photo nor the suggested questions, a star before its title, edge to edge in its theme. For global sections (header, footer, promo rows).

The light and primary looks of the gift finder are a presentation setting of each version, in the dashboard. Once your gift finder has versions, variant="light" and variant="primary" on a tag show the version's own look, like default.

Attributes ​

Gift finder ​

The gift finder reads only these attributes: they identify your store, the page and, optionally, the version.

AttributeTypeDefaultPurpose
variant'default' | 'banner'defaultWhich block: the gift finder (default) or the banner.
shop-domainstring-Required for default (or company-id). Pass "mock" for an offline demo.
market-keystring-Multimarket setups only: names the market when several markets share the same domain (required there, ignored on single-market domains). Set automatically on Shopify. Same behavior as the chat widget: see several markets on one domain.
company-idstring-Alternative to shop-domain.
integration'shopify' | 'woocommerce' | 'custom' | 'prestashop' | 'playground'shopifyBackend platform. Use custom when the storefront is not Shopify/WooCommerce.
languagestring-ISO 639-1 code: language of the version's texts and questions. Supported: en, fr, de, es, ar, it, nl, pt, ru, zh.
template-namestring-Storefront template the widget sits on (Shopify template.name: index, product, collection, search, 404...). Selects the version bound to that page type, when there is one. Omitted or no match = the Default version. Set automatically on Shopify.
versionstring-Id of a version (1 to 40 lowercase letters, digits or dashes). Shows that version whatever the page type. Unknown id = the page type rule, then the Default version.
api-urlstringhttps://api.thehumind.comOverride API base URL.

Text and style attributes: no longer read ​

Earlier installs set the texts and the look of the gift finder on the tag. Once your gift finder has versions, the widget ignores these attributes: configure everything in the dashboard instead (AI > AI Widgets > AI Gift Generator). They have no effect left on a tag, so you can remove them.

AttributeNow in the dashboard
title, subtitle, placeholder, hide-title, hide-subtitleTexts of the version (an empty line is hidden).
variant="light", variant="primary", color-scheme, primary-color, text-color, button-design, show-questions, max-questions, logo-url, show-imagePresentation of the version.
title-subtitle-colorStyle of the version.

The widget.show_gift_finder_image key of the Settings API has no effect either once versions exist: each version sets its header image.

The banner is not affected by versions. Its theme and colors (the gift finder's themes: transparent, light card, brand color, custom with a solid or textured background, and its own brand colors) and its star are set in the dashboard only (AI > AI Widgets > Shop with AI Banner, "Customize the widget"). The tag keeps these attributes.

AttributeTypeDefaultPurpose
titlestring''Headline. Merchant-branded; not auto-localized. Overridden by the wording set in the dashboard (AI > AI Widgets > Shop with AI Banner, "Customize the widget"), per language and per page type.
subtitlestring''Sub-headline. Same precedence as title.
placeholderstringWhat can I help you find? (en)Input placeholder. Leave blank to get the auto-localized version for language. Same precedence as title.
shop-domain / company-idstring-Identifies your store: the banner then loads its theme and texts from the dashboard. Without it, the banner shows in a dark band with the built-in wording.

The banner ignores every other attribute, style attributes included (section-background-color, title-subtitle-color, star-color, text-align, layout, size, full-width, border-radius, font, show-star, star-icon-url, input-background-color, input-opacity, input-text-color): you can remove them.

Events ​

Fires humind-open-chat on window when the user submits the input or clicks a preset chip. The chat overlay (if installed) catches it and opens with the user's query.

js
window.addEventListener('humind-open-chat', (e) => {
  console.log(e.detail.message); // string the user submitted
});

Mock mode ​

Pass shop-domain="mock" (or company-id="mock") to skip the /widgets/gift-finder call and render a hard-coded sample. Useful for local previews, Storybook, or demos before the merchant account is live. The sample has no versions, so the text and style attributes stay reactive in this mode.

Released under the proprietary Humind license.