What is Doofinder’s AI Search?

Version AI shows personal search results to every single customer based on their individual user behaviour. Data will be automatically boosted by attractiveness and conversions over the whole search engine. Additionally, the natural language processing technology (NLP) will be activated.

Notice: Version AI can be used in the trial period and for existing customers for 30 days, for free. After the trial, you need a valid subscription. You can subscribe in your Control Panel under https://app.doofinder.com/en/admin/account/plans/ -> Extra Feature -> Version AI.

Important: If you decide not to use AI Search you need to remove the AI modification from your javascript.

How to activate Version AI?

You just have to make a few changes to your Doofinder Script. You will have it done in no time!

Change Url var doofinder_script into: '//cdn.ebi.cloud/javascript/dfebi.js'

Example:

Standard Script:

<!-- Doofinder script starts here -->
<script type="text/javascript">
var doofinder_script ='//cdn.doofinder.com/media/js/doofinder-classic.7.latest.min.js';
(function(d,t){var f=d.createElement(t),s=d.getElementsByTagName(t)[0];f.async=1;
f.src=('https:'==location.protocol?'https:':'http:')+doofinder_script;
f.setAttribute('charset','utf-8');
s.parentNode.insertBefore(f,s)}(document,'script'));

AI Script:

<!-- Doofinder script starts here -->
<script type="text/javascript">
var doofinder_script ='//cdn.ebi.cloud/javascript/dfebi.js';
(function(d,t){var f=d.createElement(t),s=d.getElementsByTagName(t)[0];f.async=1;
f.src=('https:'==location.protocol?'https:':'http:')+doofinder_script;
f.setAttribute('charset','utf-8');
s.parentNode.insertBefore(f,s)}(document,'script'));

Add the following javascript object.

var dfEbi ={
  "loadScript":{
    "df-script":'//cdn.doofinder.com/media/js/doofinder-classic.7.latest.min.js'
  },
  "layers":dfClassicLayers,
  "skuField":"id"
 };

You need to define “df-script” which cdn javascript you want to use. These are the possible options:

  • '//cdn.doofinder.com/media/js/doofinder-classic.7.latest.min.js'
  • '//cdn.doofinder.com/media/js/doofinder-fullscreen.7.latest.min.js'
  • '//cdn.doofinder.com/media/js/doofinder-compact.7.latest.min.js'
  • '//cdn.doofinder.com/media/js/doofinder-embedded.7.latest.min.js'

You need to reference your doofinder layer configuration to “layers” the layer you use. Options:

  • dfClassicLayers
  • dfFullscreenLayers
  • dfCompactLayers
  • dfEmbeddedLayers

Last change – you need to define under which field of your product feed you have indexed your article numbers (SKU) skuField to make the personalized search work. In many cases, it will be the id or for example mpn. You can see this in the Boosting section of your Control Panel by opening the “+”. This will show you in what field you have indexed your SKUs.

DONE!

That’s it! This is how a standard Classic Layer Javascript looks like:

<!-- Doofinder script starts here -->
<script type="text/javascript">
var doofinder_script ='//cdn.doofinder.com/media/js/doofinder-classic.7.latest.min.js';
(function(d,t){var f=d.createElement(t),s=d.getElementsByTagName(t)[0];f.async=1;
f.src=('https:'==location.protocol?'https:':'http:')+doofinder_script;
f.setAttribute('charset','utf-8');
s.parentNode.insertBefore(f,s)}(document,'script'));

var dfClassicLayers = [{
  "hashid": "f8e872200339db58fdf49baa6c3c655b",
  "zone": "eu1",
  "display": {
    "lang": "es",
    "width": "80%",
    "align": "center",
    "facets": {
      "attached": "left"
    }
  },
  "queryInput": "#search"
}];
</script>
<!-- Doofinder script ends here -->

And this is how the AI Classic Layer JS looks like:

<!-- Doofinder script starts here -->
<script type="text/javascript">
var doofinder_script ='//cdn.ebi.cloud/javascript/dfebi.js';
(function(d,t){var f=d.createElement(t),s=d.getElementsByTagName(t)[0];f.async=1;
f.src=('https:'==location.protocol?'https:':'http:')+doofinder_script;
f.setAttribute('charset','utf-8');
s.parentNode.insertBefore(f,s)}(document,'script'));

var dfClassicLayers = [{
  "hashid": "f7e872290539db58fdf4dbca6c3a655b",
  "zone": "eu1",
  "display": {
    "lang": "es",
    "width": "80%",
    "align": "center",
    "facets": {
      "attached": "left"
    }
  },
  "queryInput": "#search"
}];
var dfEbi ={
  "loadScript":{
    "df-script":'//cdn.doofinder.com/media/js/doofinder-classic.7.latest.min.js'
  },
  "layers":dfClassicLayers,
  "skuField":"id"
 };
</script>
<!-- Doofinder script ends here -->

NOTICE: Each visible facet automatically activates NLP for its related attributes. Therefore, you can individually define on which part of your data you actually want to process natural language. Please be aware, that you will still get global search results under Boosting in the admin panel.

Recommendation: We recommend to install Layer via Admin Panel configuration:

<script
  type="text/javascript"
  src="//[zone]-search.doofinder.com/5/script/[hashid].js">
</script>

Remember to replace the placeholders in the URL by actual values:

  • [zone]: Use eu1 or us1 depending on your search engine’s zone.
  • [hashid]: Your search engine’s unique id.

If you publish your layer this way, the script will be served by Doofinder instead, so you will have to perform any modifications directly from the Doofinder Admin (Configuration -> Doofinder Layer Setup). Instead of the Javascript you just have to paste this part into your html code. Please be careful, some Plugins will do this out of the box.

Product Grouping

In order for DooFinder AI to unfold its full potential, it is crucial for us to fully understand the structure of your product data. Therefore, we strongly recommend that you transfer not only all of your main products, but also all known variants to doofinder.

Fortunately, even though you send us all your variants, you still have full control over whether DooFinder displays all of your variants within the search results or only your main products.

With the DooFinder function “Product Grouping” you can introduce all variants and decide whether we should group the variants within one single search result or not.

Please follow the guide at: https://www.doofinder.com/support/the-data-feed/grouping-product-variants