---
schema_version: "1"
id: ba945cab32eb67db72325c9a30f9884a823d4db18c5a5d50a8321d57df788b3b
title: Integrate Salesforce Knowledge with Omniscript
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_integrate_salesforce_knowledge_with_omniscript_9810.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_integrate_salesforce_knowledge_with_omniscript_9810.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4e21cd1baf681ee917e629f387d21e8e400336cd7830d1b9b8db2945604e4548
description: Enable users to search and view Salesforce Knowledge Articles when using an Omniscript. Configure Omniscript Knowledge Options to search for articles based on static values and dynamic inputs from Omniscript fields, or a query from a simple search bar.
products:
  - Omnistudio
release: "264"
---
# Integrate Salesforce Knowledge with Omniscript

Enable users to search and view Salesforce Knowledge Articles when using an Omniscript. Configure Omniscript Knowledge Options to search for articles based on static values and dynamic inputs from Omniscript fields, or a query from a simple search bar.

For each set of search criteria for knowledge articles, the maximum number of results displayed is 2000 records. Salesforce set this limit for SOSL queries.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_important.png)

Important

Your organization must have [Salesforce Knowledge](https://help.salesforce.com/apex/HTViewHelpDoc?id=knowledge_setup.htm&language=en_US) enabled to use this feature.

From the Omniscript Designer Preview, you can open the article in a new browser tab.

**Simple Search Bar**

![image](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/salesforce_knowledge_omniscript.png)

- **[Set Up Omniscript to Work with Salesforce Knowledge](https://help.salesforce.com/s/articleView?id=xcloud.os_integrate_salesforce_knowledge_with_omniscript_9810.htm&release=264.0.0&type=5)**  
    To let users search and view Salesforce Knowledge articles in an Omniscript, integrate Salesforce Knowledge into the Omniscript. Omniscript also supports querying Lightning Knowledge.
- **[Configure Knowledge for Individual Steps in the Omniscript](https://help.salesforce.com/s/articleView?id=xcloud.os_integrate_salesforce_knowledge_with_omniscript_9810.htm&release=264.0.0&type=5)**  
    After the initial configuration to set up your Omniscript to work with Salesforce Knowledge, integrate Knowledge in your Omniscript Steps. Configure options on each step to enable Knowledge and filter results.
- **[Open Knowledge Base Articles Outside an Omniscript](https://help.salesforce.com/s/articleView?id=xcloud.os_integrate_salesforce_knowledge_with_omniscript_9810.htm&release=264.0.0&type=5)**  
    Launch Knowledge base articles outside of an Omniscript using the Omniscript Knowledge Base component in a Community or Lightning page.

## Set Up Omniscript to Work with Salesforce Knowledge

To let users search and view Salesforce Knowledge articles in an Omniscript, integrate Salesforce Knowledge into the Omniscript. Omniscript also supports querying Lightning Knowledge.

Before you begin:

- Enable Salesforce Knowledge.
- (Optional) Enable Lightning Knowledge.

![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_tip.png)

Tip Because search results display a maximum of 2000 results, set up search filters so users can refine their criteria for more accurate results.

To set up Omniscript for Salesforce Knowledge:

1. From the Setup panel, expand the **Knowledge Options** section and select **Enable Knowledge**.
2. If needed, to integrate Lightning Knowledge with Omniscript, select **Use Lightning Knowledge**.
    
    Lightning Knowledge must be enabled in your org.
3. If needed, to open Knowledge articles outside of an Omniscript using the **Vlocity Omniscript Knowledge Base** component in a Community or Lightning page, select **Display Outside Omniscript**.
4. If needed, to filter Knowledge articles by record type, select **Filter Knowledge Search by Record Type**.
    
    Knowledge searches use only the types listed in the Record Type Filter property for the step.
5. To search only specific fields in articles, use the Knowledge Article Type Query Fields Map section.
    1. In **Article/Record Type API Name**, enter the Article Type API name for Classic Knowledge or enter the Record Type API name when **Use Lightning Knowledge** is enabled.
    2. In **Field API Name**, enter the API name of the field to include in searches, such as Title.
        
        For multiple fields, enter a comma-separated list with no spaces, such as Title, namespace\_\_richText\_\_c,Summary.
        
        The Omniscript preview displays these fields.
6. To query additional fields and record types, click **\+ Add New Knowledge Type Field Map** and repeat step 5.
7. If **Use Lightning Knowledge** is enabled, enter the Lightning Knowledge object's API name into the **Lightning Knowledge Object API Name** field, such as namespace\_\_Knowledge\_\_kav.
8. (Optional) In **Label**, enter the text displayed above the Knowledge component, such as Suggested Articles.

## Configure Knowledge for Individual Steps in the Omniscript

After the initial configuration to set up your Omniscript to work with Salesforce Knowledge, integrate Knowledge in your Omniscript Steps. Configure options on each step to enable Knowledge and filter results.

Before you begin, set up your Omniscript to work with Salesforce Knowledge.

1. From the Omniscripts Designer, click the Step that you want to display the Knowledge component.
2. In the Properties panel, expand the **Knowledge Options** section, and click **Enable Knowledge**.
3. Update **Language** from the default value **English** to your preferred language.
4. Update **Public Status** from the default value Online to **Archive** or **Draft**.
5. In the **Keyword** field, enter the text to search for.
    
    This text can be literal text, such as Service Disconnect.
    
    Or you can use merge fields for variable data. For example, enter %RouterType% to enable your users to enter keywords to search for in a Text element whose **Name** is RouterType. For information on merge fields, see [Access Omniscript Data JSON with Merge Fields](https://help.salesforce.com/s/articleView?id=xcloud.os_access_omniscript_data_json_with_merge_fields_22053.htm&release=264.0.0&type=5 "Enable Omniscript elements and element properties to access data JSON using merge fields. A merge field is a variable that references the value of a JSON node. For example, if a JSON node is \"FirstName\": \"John\", then the merge field %FirstName% returns John.").
6. To filter articles by their [Data Category](https://help.salesforce.com/articleView?id=category_whatis.htm&type=5&language=en_US), enter a SOQL query in the **Data Category Criteria** field.
    
    For example, enter Troubleshooting\_\_c AT (Router\_\_c) to show articles from the subcategory `Router` under the parent category `Troubleshooting`.
    
    For information on building queries for data categories, see [With Data Category filtering Expression](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_with_datacategory.htm).
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)
    
    Note You don't need to enter **WITH DATA CATEGORY** in your query.
7. If needed, when Filter Knowledge Search by Record Type or Lightning Knowledge is enabled in the Setup panel, enter the Record Type's API name in **Record Type Filter** to search those record types.
    
    For multiple Record Types, enter a comma-separated list with no spaces, such as FAQ,INFO.

## Open Knowledge Base Articles Outside an Omniscript

Launch Knowledge base articles outside of an Omniscript using the Omniscript Knowledge Base component in a Community or Lightning page.

The Omniscript Knowledge Base component renders Knowledge base articles side by side with an Omniscript or as a standalone component. When opening Knowledge Base articles from an Omniscript, Omniscript passes specific information into the component to search the Knowledge base and render articles.

1. In your Omniscript's Setup panel, expand **Knowledge options**, and enable knowledge articles.
2. Enable Salesforce Lighning Knowledge, and configure the remaining fields using the instructions in [Set Up Omniscript to Work with Salesforce Knowledge](https://help.salesforce.com/s/articleView?id=xcloud.os_integrate_salesforce_knowledge_with_omniscript_9810.htm&release=264.0.0&type=5 "Enable users to search and view Salesforce Knowledge Articles when using an Omniscript. Configure Omniscript Knowledge Options to search for articles based on static values and dynamic inputs from Omniscript fields, or a query from a simple search bar.").
3. If needed, enable users to open knowledge base acrticles outside the Omniscript.
4. Activate the Omniscript.
5. Open the Lightning App Builder and create a page with a layout containing at least two regions. See [Lightning App Builder](https://help.salesforce.com/articleView?id=lightning_app_builder_overview.htm&amp;type=5&language=en_US).
6. From the Lightning page, drag the deployed LWC Omniscript component into the page. See [Add Your Omniscript to a Lightning Page](https://help.salesforce.com/s/articleView?id=xcloud.os_add_your_omniscript_to_a_lightning_page_19957.htm&release=264.0.0&type=5 "In Omnistudio standard runtime, add the standard Omniscript component to a Lightning page after activation.") and [Add Your Omniscript to an Experience Cloud Page](https://help.salesforce.com/s/articleView?id=xcloud.os_add_your_omniscript_to_an_experience_page_19992.htm&release=264.0.0&type=5 "In the Omnistudio standard runtime, add the standard Omniscript component to an Experience Builder page after activation.").
7. From the Components section, drag the **Vlocity Omniscript Knowledge Base** component to where you want it displayed.
8. In the **omniscriptKey** field, enter the name of the LWC Omniscript component using the syntax type\_SubType\_Language.
9. If needed, in the **layout** field, enter newport to render the Knowledge base article with the Newport Design System styling.
10. Save the Lightning page and test the Omniscript on the Lightning page to preview the behavior.