Adding the Insight Query Summary component
Adding the Insight Query Summary component
Coveo for Salesforce 4.4 (June 2020)
The Insight Query Summary component is enabled by default in Coveo for Salesforce package version 4.4 and above.
The Insight Query Summary component is intended to be used in Coveo Insight Panel Lightning components where a contextual query is performed by default.
When integrated in a Coveo Insight Panel Lightning Component, the Insight Query Summary component displays a message to help your agents understand why the suggested results are relevant to their current task.
If your agents perform a query in the search box, the Insight Query Summary falls back to the QuerySummary
component.
When your support agents are browsing a Salesforce Case, the Insight Query Summary component displays the following message by default:
Once they send a query, the message changes to display the QuerySummary
:
See InsightQuerySummary Component for the component’s complete reference documentation.
Adding the Insight Query Summary component in a Coveo Insight Panel Lightning Component
-
Access the Interface Editor of the Coveo Insight Panel Lightning Component in which you want to add the Insight Query Summary component.
-
Select the Code View tab.
-
In the
coveo-summary-section
section, replace theCoveoQuerySummary
andCoveoQueryDuration
elements with the following:<div class='CoveoInsightQuerySummary'></div>
The
coveo-summary-section
section should now look like this:<div class="coveo-summary-section"> <div class='CoveoInsightQuerySummary'></div> </div>
-
Click Save.
Customizing the Insight Query Summary component
When you integrate the Insight Query Summary component in a Coveo Insight Panel Lightning Component, the default message is: Insights related to this [CURRENT_SALESFORCE_RECORD]
.
Where [CURRENT_SALESFORCE_RECORD]
is automatically replaced with the Salesforce record on which the Coveo Insight Panel Lightning Component is integrated.
You can, however, change the default message if needed:
-
Access the Interface Editor of the Coveo Insight Panel Lightning Component in which you integrated an Insight Query Summary component.
-
Select the Code View tab.
-
Find the
CoveoInsightQuerySummary
element, and then add the following element:data-title='[MY_CUSTOM_MESSAGE]'
Where you replace
[MY_CUSTOM_MESSAGE]
with the message you want the component to display by default.The
CoveoInsightQuerySummary
element should now look like this:<div class='CoveoInsightQuerySummary' data-title='[MY_CUSTOM_MESSAGE]'></div>
-
Click Save.