Skip to main content
Register now for TDX! Join the must-attend event to experience what’s next and learn how to build it.

Set Up Search Dictionaries

Note

Commerce Cloud is now Agentforce Commerce and B2C Commerce is now Agentforce Commerce for B2C. You may see references to Commerce Cloud and B2C Commerce in our applications and documentation.

Learning Objectives

After completing this unit, you’ll be able to:

  • List three standard search features in Agentforce Commerce for B2C.
  • List the five standard search dictionaries.
  • Describe three ways Agentforce Commerce for B2C can sort search results.
  • List the three general steps you must take to configure Search Dictionaries.

Introduction

Brandon Wilson is a merchandiser at Cloud Kicks, a company that specializes in high-end custom sneakers. The Cloud Kicks Agentforce Commerce for B2C storefront is attracting lots of attention and sales are great. But Brandon wants to ramp up search capabilities to improve the shopper experience and drive sales even further. He can do that with Agentforce Commerce Einstein.

Brandon Wilson, Cloud Kicks merchandiser

In this unit, Brandon reviews the great Agentforce Commerce for B2C search features that Cloud Kicks currently uses. Then he explores how Agentforce Commerce Einstein can push those features into overdrive.

Agentforce Commerce for B2C comes out-of-the-box with:

  • Keyword Search: The shopper enters a search term and the results display on the storefront (1).
  • Search Suggestions: As the shopper types, the storefront displays a list of possible results. At the same time, the software tries to complete the search term and automatically corrects spelling (2).
  • Search Results Sorting: Shoppers select how they want their results to sort (3).

Keyword search, search suggestions, and search results sorting

What Are Search Dictionaries?

Agentforce Commerce for B2C uses search dictionaries to provide search results. The better Brandon’s search dictionaries are, the more likely his shoppers can find what they’re looking for in their search results. Dictionaries include:

  • Synonyms: Words that mean the same thing.
  • Hypernyms: Term for a group of products. For example, the word top is a hypernym that contains the hyponyms tunic, shirt, and blouse. When a shopper searches for top, Agentforce Commerce for B2C returns products that contain top, tunic, shirt, and blouse.
  • Hyponyms: Term for an item in the group of products that a hypernym describes. For example, blouse is a hyponym of the hypernym top. When the shopper searches for blouse, Agentforce Commerce for B2C only returns products that contain blouse.
  • Common phrases: Word combinations that Agentforce Commerce for B2C must find together.
  • Compound words: Words that Agentforce Commerce for B2C splits into separate terms, based on a configuration rule that you set. For example, if you configure foot-*, a search for footstool returns results for foot and stool.
  • Stop words: Words that Agentforce Commerce for B2C ignores, such as an or the. Stop words keep the index more compact so results display faster.

After Agentforce Commerce for B2C checks its dictionaries, it sorts the results on the storefront. Agentforce Commerce for B2C sorts results based on the merchant or shopper-driven sorting rules that you configure in Business Manager.

How Einstein Adds Value

Brandon investigates how Agentforce Commerce Einstein ramps up the results of each these search features.

Feature

Standard Agentforce Commerce for B2C

Agentforce Commerce Einstein

Einstein Feature

Keyword Search

Dictionaries that you manually create based on your own specific data

Data that Einstein pulls from live searches and search results from many merchants and adds to existing dictionaries

Search Dictionaries

Search Suggestions

Basic search-as-you-type with advanced features: spelling correction and search term completion

Algorithms that add:

  • Recent user search phrases
  • Popular and trending search phrases
  • Personalized auto-correction and term-completion

Search Recommendations

Search Results

Configured search result settings for:

  • Keyword search
  • Category navigation
  • Storefront sorting options selected by shoppers
  • Behind-the-scenes via dynamic attributes or configured keyword groups

As Agentforce Commerce Einstein collects data, Predictive Sort learns about each shopper and increases the personalized sorting experience for them. This feature also enhances search results and suggestions.

Predictive Sort

Shoppers want to find what they’re looking for now or they look elsewhere. With standard Agentforce Commerce for B2C keyword search, Brandon creates his search dictionaries manually. For example, he adds the term “high-top sneaker” to his list of compound words. Creating dictionaries this way is a manual effort that requires a deep understanding of his products and the locales he sells to.

Einstein Search Dictionaries pulls data automatically from live searches and search results from many merchants. It automatically detects relationships between search terms, and adds this data to existing dictionaries. No manual effort is involved!

Search Recommendations

Search recommendations begin as soon as a shopper starts typing into the search field. Agentforce Commerce for B2C comes with a basic search-as-you-type feature. Brandon can add automatic spell-correction and search term completion using Business Manager settings.

Einstein Search Recommendations applies algorithms to Agentforce Commerce for B2C data to identify the most relevant search results per shopper, even before the shopper types all the text. Using various data points, Einstein identifies recent user search phrases, popular and trending search phrases, and personalized auto-correction and term-completion.

Brandon’s shoppers can explore his site on the quickest path to conversion.

Search Results Sorting

Brandon uses Business Manager to configure how he wants Agentforce Commerce for B2C to sort search results. He can display a dropdown so shoppers can sort the results themselves, and he can perform behind-the-scenes sorting to promote certain types of products for:

  • Keyword searches
  • Category navigation
  • Dynamic attributes, such as availability, or configured keyword groups

With Einstein Predictive Sort, Brandon can deliver more tailored and relevant search results by incorporating multiple data points from:

  • Catalogs and products
  • Order history

Based on a shopper's behavior and affinity to products, Einstein saves a cookie on the shopper’s device that includes the shopper’s assignment to specific products. This assignment can change within a session and works for registered and unknown shoppers. As Einstein collects data, Predictive Sort learns about each shopper and increases the personalization of search results sorting. Predictive Sort works with every type of behind-the-scenes sorting.

Now that Brandon understands how Einstein can make his storefront search even smarter, he's eager to deploy the features. He tackles Einstein Search Dictionaries first.

Search Dictionaries

To start with, the search dictionaries, enabled by default in Agentforce Commerce for B2C, uses only the site’s data. Once Brandon accepts the Einstein Data Privacy Agreement, he has access to community data and his search dictionaries are combined with data from the other contributing Agentforce Commerce for B2C merchants.

When enabled, Einstein Search Dictionaries consumes all site searches and search-related settings and identifies terms that shoppers search for but that are not in a dictionary. Using artificial intelligence (AI), it automatically detects relationships between search terms, recommends which synonym list to assign them to, and then creates new recommendations.

With Einstein Search Dictionaries, Brandon can:

  • View new Einstein Search Dictionaries recommendations.
  • Accept or reject suggestions.
  • Blocklist specific terms.
  • Create new dictionary word stems with the Stemming Exceptions option.

Configure Search Dictionaries

To get the full benefit of Einstein Search Dictionaries, Cloud Kicks must share data with other merchants. That’s where the Einstein Data Privacy Agreement comes in. Linda Rosenberg, the Cloud Kicks’ administrator, must accept the terms and conditions of the Einstein Data Privacy Agreement on her staging instance, so Brandon can get started.

In this module, we assume you are a Agentforce Commerce for B2C merchandiser with the proper permissions to perform these tasks. If you’re not a Agentforce Commerce for B2C merchandiser, that’s OK. Read along to learn how your merchandiser would take these steps in a staging instance. Don't try to follow our steps in your Trailhead Playground. Agentforce Commerce for B2C isn't available in the Trailhead Playground. If you have a staging instance of Agentforce Commerce for B2C, you can try out these steps in your instance. If you don't have a staging instance, ask your manager if there is one that you can use.

With the privacy agreement, Linda gives her company’s consent to contributing its search dictionary data to a shared database. This provides recommendations to other merchants who’ve also consented to contribute to the shared database. Salesforce represents and warrants that it does not disclose a merchant’s search dictionary data to any other customer in identifiable form.

Linda further acknowledges that Salesforce can access her company’s search dictionary data submitted to Agentforce Commerce for B2C for training and to improve the Einstein Search Dictionary and any other current or future similar or related features, products, or services.

Let’s see how Linda gives consent in just a few clicks.

To access Business Manager, you must have a Agentforce Commerce for B2C implementation. In this module, we assume you are a Agentforce Commerce for B2C administrator or merchandiser with the proper permissions to perform these tasks. If you’re not a Agentforce Commerce for B2C administrator or merchandiser, that’s OK. Read along to learn how your administrator would take these steps in a staging instance. Don't try to follow our steps in your Trailhead Playground. Agentforce Commerce for B2C isn't available in the Trailhead Playground. If you have a staging instance of Agentforce Commerce for B2C, you can try out these steps in your instance. If you don't have a staging instance, ask your manager if there is one that you can use.

Here’s how to contribute search dictionary data to the shared database.

  1. In Business Manager, click App Launcher and select Administration | Global Preferences | Einstein Search Dictionaries Opt-In.
  2. Select I accept these terms and conditions.
  3. Click Save.

Here’s how Brandon configures Search Dictionaries.

Add the email addresses of people who plan to manage synonyms.

  1. In Business Manager, click App Launcher and select Merchant Tools | Site | Site Preferences | Search Preferences.
  2. Select Notification Settings for Search Dictionary.
    Business Manager Search Preferences - Notification Settings for Search Dictionary
  3. Add the emails.
  4. Click Apply.

If the site has multiple locales:

  1. In Business Manager, click App Launcher and select Merchant Tools | Site | Site Preferences | Search Preferences.
  2. Select Search Settings.
  3. Select Dictionary Locale Fallback to allow language level settings to update the regions.
    Business Manager Search Preferences - Dictionary Locale Fallback

Rebuild the search index.

  1. In Business Manager, click App Launcher and select Merchant Tools | Site | Search | Search Indexes.
  2. Select the checkbox for the relevant indexes.
  3. Click Rebuild.
    Business Manager - Rebuild Search Index page

Here’s how he uses Search Dictionaries.

  1. In Business Manager, click App Launcher and select Merchant Tools | Site | Search Dictionaries.
    Business Manager - Search Dictionaries Dashboard
  2. Click or select a dictionary type, for example, Compound Words.
  3. Click New to create a new dictionary entry.

Required fields are indicated by a red dot. The type is already selected: Compound Word.

  1. Select the locale.
  2. Enter the dictionary entry as a value: high-top.
    Business Manager - create a new dictionary entry
  3. Click Save.

To edit an entry you can search or filter to find it.

  1. Click Search Dictionary to search for an entry across dictionaries.
    Business Manager - search across dictionaries
  2. You can filter the search by type and locale. If no filters are applied, search includes all dictionaries.
  3. Click the filter icon to add a new filter.
    • Click Add Filter.
    • Select a field and a value.
    • Click Apply.
  4. Click Edit List Filters to edit an existing filter.

Stemming Exceptions

Next, let’s see how easy it is to create new stems using stemming exceptions.

  1. Open Business Manager.
  2. Select site > Merchant Tools > Search > Search Dictionaries.
  3. Click Stemming Exceptions.
  4. Click New.
    In Business Manager, enter “leggings” as a stemming exception and “leg” as the stem.
  5. Enter leggings as the exception and leggings as the stem.
  6. Click Save.

To push these changes to the production instance, Brandon asks Linda to replicate from development to the staging instance for testing, and then from staging to production.

Next Steps

Brandon learned how Agentforce Commerce Einstein can make search smarter on his Agentforce Commerce for B2C storefront. He explored Search Dictionaries and learned how to configure and use Search Dictionaries to improve shopper search results. Next, he implements Agentforce Commerce Einstein Search Recommendations.

Resources

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기