Display recommended articles in aem component via coveo | Community
Skip to main content
Level 4
September 18, 2024
Solved

Display recommended articles in aem component via coveo

  • September 18, 2024
  • 3 replies
  • 1871 views

I'm trying to implement a component in AEM where it will show articles/products based on previous search. It's more of a functionality like recommended videos that come in YouTube

As of now, the functionality is set to fetch the articles based on the inputs provided in the dialog so that it can query the pipeline accordingly and get the data. But going forward we would like to implement something like auto-generated articles that would come up in the component and the results should be based on what the user has previously searched across the site. If there's no match we want to display the closest results possible.

If someone could help with insights/ideas on how we can implement the same. Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Saravanan_Dharmaraj

@arindam6600 If you are using Coveo Javascript search UI framework , please follow the below tutorials. Basically you need to set the JSUI in a component and create the token and set the coveo endpoint and query the coveo. Does your model give the recommended articles for every search keyword ? 

 

https://levelup.coveo.com/learn/courses/jsui

 


If you are planning to start a new search UI for coveo, use Atomic UI instead of JS UI from Coveo. 

https://docs.coveo.com/en/atomic/latest/

 

 

3 replies

arunpatidar
Community Advisor
Community Advisor
September 18, 2024

Hi @arindam6600 
Please check if this helps: https://medium.com/@mugwadiinnocent/recommendation-system-with-javascript-without-ml-00fcd849051e

 

I'm not sure if you're planning to store the search information for user recommendations or if it's just going to be stored in local storage, which would be browser-specific.

Arun Patidar
Level 4
September 18, 2024

Hi @arunpatidar 

 

I'm targeting to send the usage analytics to coveo and utilize the ML feature over there to create a model that would basically generate the recommended articles. I've come across the documentation on how to create the model in coveo.

What I need help with is : How do I query that data from coveo and display it in a custom component in AEM.

arunpatidar
Community Advisor
Community Advisor
September 18, 2024

Hi @arindam6600 
Please check if this helps, seems like clientside implementation

https://docs.coveo.com/en/1886/leverage-machine-learning/deploy-content-recommendations-cr 

Arun Patidar
Rohan_Garg
Community Advisor
Community Advisor
September 18, 2024
Level 4
September 18, 2024

Hi @rohan_garg,

 

The integration of coveo with AEM is already done.

As for recommended articles, I've gone through the coveo docs and I'm somewhat aligned on how to create the model and leverage ML in coveo. What I'm unsure of is how to fetch the data into AEM.

Saravanan_Dharmaraj
Community Advisor
Community Advisor
September 18, 2024

@arindam6600 If you are using Coveo Javascript search UI framework , please follow the below tutorials. Basically you need to set the JSUI in a component and create the token and set the coveo endpoint and query the coveo. Does your model give the recommended articles for every search keyword ? 

 

https://levelup.coveo.com/learn/courses/jsui

 

kautuk_sahni
Community Manager
Community Manager
September 25, 2024

@arindam6600 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni