Integrating with Klevu Catalog Sync
You can integrate Commerce with Klevu quickly and easily in Commerce Manager. Klevu is an advanced AI-driven search and product discovery platform specifically designed for e-commerce websites. Once you have integrated Klevu, you can synchronize catalog from Commerce Manager to Klevu.
Collecting Commerce Manager Setup Information
Collect the following Commerce API keys. You can find this information in System > Application Keys in Commerce Manager when logged in as a user with Seller Admin privileges.
Commerce API Key | Description |
---|---|
Client ID | Your Commerce Client ID. |
Client Secret | Your Commerce Client Secret. |
Token URL | Your Commerce API token URL. |
Configuring the Integration
Now that you've collected the setup information let's begin by configuring the integration.
- In Commerce Manager, go to COMPOSER > Integrations Hub.
- Under Search click on the Klevu Catalog Sync Integration.
- Click Configure. The Trigger details are displayed.
- Click Next. The Connections page is displayed.
- Enter the Elastic Path Commerce Cloud Connection details. See Collecting Commerce Manager Setup Information.
- Click Connect. A new window is displayed to confirm the connection was successful. If successful, close this window and then click Next.
- By default, Fetch Main Image URL and Fetch Inventory toggles are enabled. You can modify the default configuration policy, batch size and concurrency settings if necessary. We recommend keeping these settings as default.
- Click Next.
- Provide the Base Product URL and Base Category URL relevant to your products and categories. For example,
https://www.example.com/products
andhttps://www.example.com/category
. - Click Finish to complete the configuration process.
Understanding Klevu Mappings
Once you have configured the integration, it creates:
- A Custom API named Klevu Keys under COMMERCE EXTENSIONS to map Klevu store credentials for publishing the catalog.
- A flow named Klevu Mapping under SYSTEM > Flows for mapping Klevu and custom fields.
- A Webhook event named Klevu Catalog Sync.
The following table describes the Commerce product fields and their corresponding Klevu attributes:
Commerce Product Fields | Maps to Klevu Attributes |
---|---|
product.attributes.sku | Klevu sku |
product.attributes.name | Klevu name |
product.attributes.description | Klevu description |
product.attributes.prices | Klevu prices |
product_base_url/product.attributes.slug | Klevu url |
Main image URL | Klevu images default url |
product.meta.child_variations[forEach].option.name | Klevu custom attribute. A list of all possible variations is created and verified to ensure all potential attributes exist in Klevu before initiating the catalog sync. |
product.attributes.base_product_id | Klevu parent Product |
product.meta.breadcrumbs [flattened] | Klevu categories |
Creating New Entries and Publishing Catalogs
To synchronize each catalog, you must create a separate Klevu store and collect API key and Klevu Rest Auth key. Klevu does not support multiple indexes within a single Klevu store.
Follow these steps to input Klevu credentials into the custom API Klevu Keys:
- In Commerce Manager, navigate to COMMERCE EXTENSIONS > Custom APIs.
- Select Klevu Keys and click All Entries.
- Select Create Entry.
- Specify the name of the catalog you wish to synchronize.
- Paste the API key that you copied from the Klevu store in the Klevu API Key field.
- Enter the Klevu API key for Indexing, which is
https://indexing.ksearchnet.com
. - Paste the Klevu Rest Auth key that you copied from your Klevu store in the Klevu REST AUTH Key field.
- In the Source Catalog ID field, provide the catalog ID for the catalog you want to synchronize.
- Click Create Entry.
- Once you have created a new entry, you can publish the catalog. See Publishing Catalogs.