Modifying Content Displayed in AI Search for Knowledge

Justin21
Tera Contributor

I am trying to display the 'Category of the Knowledge Article', the 'Knowledge Base Name' and the 'View Count' in the search results that appear on knowledge article cards in AI search. 

I added these 'Table Fields' to the 'Taxonomy - Knowledge Search Results' EVAM View Config record (please see images for reference). 

 

However, these fields are not appearing when I search for a knowledge article using AI Search in Employee Center.

 

Does anyone know how to make additional fields (like the 'Category' of the knowledge article) appear on the knowledge search results card in AI search (please see images for reference)? 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @Justin21 you can add a detail label separator to help with layout.  The example below will show that as well as an optional parameter to move the location of the details 'above' the main part of the content.

 

{
    "component": "sn-search-result-evam-card",
    "staticValues": {
        "imageType": {
            "translatable": false,
            "key": "icon"
        },
        "icon": {
            "translatable": false,
            "key": "document-outline"
        },
        "detailLabelOne":{
            "key":"View Count:"
        },
        "detailLabelTwo":{
            "key":"View Count:"
        },
        "detailLabelSeparator":{
            "key":" | "
        },
        "detailPosition":{
            "key":"above"
        }
    },
    "mappings": {
        "textHeaderLabelOne": "topic", 
        "textHeaderLabelTwo": "number", 
        "textHeaderLabelThree": "sys_updated_on",
        "title": "ai_search_teaser_title",
        "summary": "ai_search_teaser_text",
        "detailValueOne":"sys_view_count",
        "detailValueTwo":"sys_view_count",
        "ariaLabel": "short_description" 
    },
    "actionMappings": {
        "clickAction": "navigation"
    }
}

Screen Shot 2023-04-10 at 9.41.15 AM.png

 

View solution in original post

5 REPLIES 5

Justin21
Tera Contributor

This is perfect! Thank you @Shamus Mulhall!