-
Inserting Coveo Components
- Integrating a Coveo Full Search Page
- Integrating a Coveo Insight Panel Lightning Component
- Integrating a Coveo Case Deflection Component
- Integrating Coveo in a Lightning Community
- Integrating a Coveo Insight Panel Classic Component
- Integrating a Case Creation Page
- Integrating a Coveo Recommendation Component
- Accessing the Coveo for Salesforce Interface Editor
Integrating a Coveo Recommendation Component
Pro and Enterprise editions only Coveo for Salesforce 3.38 (August 2019)
The Coveo Recommendation Component is a Lightning Web Component that displays a list of recommended results. The results are based on recorded events and the history of the user who is navigating the website.
The custom token isn’t yet supported with the Recommendation component.
-
Access your Salesforce organization.
-
Create a community (see Create Communities).
-
Access the Community Builder of your community (see Community Builder Overview).
-
Access the page where you need to insert the component.
-
In the left sidebar, select the Components tab.
-
In the Components tab, under Custom Components, drag the Coveo Recommendation component and drop it where desired.
-
At the top right of the page, click Preview. Then, set up the search page.
-
Now that you have your Coveo Recommendation component, you must set an Event Recommendation model in Coveo organization (see Coveo Machine Learning Event Recommendations Overview).
Integrating a Custom Coveo Recommendation Component
You may want to integrate a Coveo recommendations components that you can customize to your needs. You can do this with the following procedure:
This is a temporary solution, Coveo is currently working on a more convenient tool for customizing the Recommendation component.
-
Integrate the Coveo Community Search component in your community.
-
Access the Community Preview mode, and then click
.
-
Select Edit, and then, in the Interface Editor that opens, access the Code View tab.
-
Replace the configuration by the following:
<div class="CoveoRecommendation" data-results-per-page="5" data-hide-if-no-results="true" data-excerpt-length="150" data-enable-history="false" style="margin:0;"> <div class="CoveoAnalytics"></div> <div class="coveo-recommendation-header"> <div class="coveo-recommendation-title" style="padding-left: 15px;">Recommendations</div> </div> <div class="coveo-recommendation-body"> <div class="CoveoResultList" data-layout="list"> <script id="Default" class="result-template" type="text/html" data-layout="list"> <div class="coveo-result-row" style="display: flex; align-items: center;"> <div class="coveo-result-cell" style="margin-left: 10px;margin-right: 10px;height: 30px;"> <div class="CoveoIcon" data-small="true" data-with-label="false"></div> </div> <div class="coveo-result-cell"> <a class="CoveoSalesforceResultLink" data-open-in-sub-tab="true" data-always-open-in-new-window="true"></a> </div> </div> </script> </div> </div> </div>
-
Click Save.
You can now modify the component options and styling.