Display customer’s recent searches before they type

Published July 21, 2022
Modules
Difficulty
Selected Clients
yes logoccc logo

An AI-powered Search is a great tool that can help you to create greater customer satisfaction resulting in higher conversions. To ensure a seamless customer search experience, you must anticipate their expectations and needs.

One of the ways to do so is possible by displaying customers’ recent searches just before they start typing their queries. This way, you deliver personalized search results, which allow you to pursue the shopping path of customers and allow them to return in an easy way to the items which they were interested in earlier.

This use case describes the process of creating an AI search extension that will display customers’ recent searches before they start typing.

Recent customer search

Prerequisites


Create an aggregate


Create an aggregate based on item.search event which is collected on the customer’s profile when they search for the certain phrase.

Note: item.search is an event that our system generates automatically when a customer searches for a phrase, if our AI search is implemented somewhere in any of your channels. It contains query parameter which stores the phrase entered by the customer.

This aggregate returns last 5 searches for every customer from last 30 days.

  1. Go to Analytics icon Analytics > Aggregates > Create aggregate.
  2. As the aggregate type, select Profile.
  3. Enter the name of the aggregate.
  4. Click Analyze profiles by and select Last Multi and as a size set 5.
  5. Select the item.search event.
  6. As the event parameter, select query.
  7. Set the period from which the aggregate will analyze the event to last 30 days.
  8. Save the aggregate.
Configuration of the aggregate
Configuration of the aggregate

What’s next


Once the aggregate is configured, it needs to be implemented as an element of your search engine. You can use dynamic content to display phrase suggestions automatically when the customer clicks on the search input and Jinjava code to insert aggregate result as the dynamic list of phrases the customer searched for recently, updated in realtime.

If you decide to use Dynamic Content, you need to implement Synerise tracking code on your website.

Tip: If you want to implement the recent searches list via API, you can use our dedicated API method to retreive customer’s recently searched phrases instead of creating an aggregate.

Check the use case set up on the Synerise Demo workspace


Check the aggregate settings in Synerise Demo workspace.

If you don’t have access to the Synerise demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker