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 > New aggregate.
  2. Enter the name of the aggregate.
  3. As the type of the aggregate, select Last Multi and as a size set 5.
  4. Select the item.search event.
  5. As the event parameter, select query.
  6. Set the period from which the aggregate will analyze the event to last 30 days.
  7. 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