--- title: Add the Insight Query Summary component slug: '3253' canonical_url: https://docs.coveo.com/en/3253/ collection: coveo-for-salesforce source_format: adoc --- # Add the Insight Query Summary component > **Available since** > > This feature was introduced in the June 2020 release of Coveo for Salesforce version [4.4](https://docs.coveo.com/en/3236#june-2020-release-v4-4). > It's enabled by default in this and later releases. The Insight Query Summary component is intended to be used in Coveo [Insight Panels](https://docs.coveo.com/en/2898/) where a contextual [query](https://docs.coveo.com/en/231/) is performed by default. When integrated in the [Coveo Insight Panel Lightning Component](https://docs.coveo.com/en/1028/), the Insight Query Summary component displays a message to help your support agents understand why the suggested results are relevant to their current task. If your support agents perform a query in the search box, the Insight Query Summary falls back to the [`QuerySummary`](https://coveo.github.io/search-ui/components/querysummary.html) component. **Example** When your support agents are browsing a Salesforce case, the Insight Query Summary component displays the following message by default: ![Insight Query Summary | Coveo for Salesforce](https://docs.coveo.com/en/assets/images/coveo-for-salesforce/insight-query-summary.png) Once they send a query, the message changes to display the `QuerySummary`: ![InsightQuerySummary | Coveo for Salesforce](https://docs.coveo.com/en/assets/images/coveo-for-salesforce/insight-query-summary.gif) See [InsightQuerySummary component](https://docs.coveo.com/en/3251/) for the component's complete reference documentation. ## Add the Insight Query Summary component in a Coveo Insight Panel Lightning Component . [Access the Interface Editor](https://docs.coveo.com/en/3081/) 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 the `CoveoQuerySummary` and `CoveoQueryDuration` elements with the following: `
` The `coveo-summary-section` section should now look like this: ```html
``` . Click **Save**. ## Customize the Insight Query Summary component When you integrate the Insight Query Summary component in the 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](https://docs.coveo.com/en/3081/) 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: ```html
``` . Click **Save**.