How to configure or change fields visible in Recommendations search

NavneetP
Mega Contributor

Hi everyone,

I have an query. I've been trying to figure out from 2 days but couldn't able to(may be because I'm new to SNOW). In the attached screen for the search results which are tagged as Knowledge doesn't have Category while there's category for all others. 
How to find this screen:

  1. Go to CSM/FSM Configurable Workspace > Interactions > My Interaction.
  2. Open any interaction.
  3. Search anything in the Recommendation Panel present on the right side of the screen.

I have already checked the category is present for the shown result in kb_knowledge table.

Kindly help.

2 ACCEPTED SOLUTIONS

NavneetP
Mega Contributor

It worked finally, but not via making changes in All > Recommended Actions > Action Types > Guidances. It turns out that when Recommended Actions are rendered through that specific UI component (Share KB in chat Interaction), the field display isn't governed by the standard guidance configurations at all. Instead, it relies directly on the UI Builder setup:

  1. Get Preview Fields (Data Resource): Adding kb_category to the fields retrieved by the data resource.

  2. Set Preview Fields (Client Script): Updating the script to parse kb_category and push it into the fieldsToDisplay state array so the card actually renders it.

Anyway thanks for taking your time and look into the issue. @Gangadhar Ravi  @Sandhya Gurram 

View solution in original post

mbhawnani
Mega Guru

Hello  @NavneetP 

As discussed, sharing below the page and Scripts responsible for displaying Knowledge Articles Recommendation on your UI Page.

Page name: Share KB in chat interactions
Data Resource: Get Preview Fields (you need to add 'Category'/field(s) you wish to display on the searched Knowledge card of 'Recommendation' tab here).

Client Script: Set preview fields (you need to add piece of code under 'fieldsToDisplay' section to fetch the 'Category'/added field value here & add it to the returned payload).

 

We have tried together the solution and it worked for you.

Request you to please mark my solution helpful/correct/accepted so it can help others looking for similar guidance. Thanks!

 

Best regards

Madhuri Bhawnani

View solution in original post

5 REPLIES 5

mbhawnani
Mega Guru

Hello  @NavneetP 

As discussed, sharing below the page and Scripts responsible for displaying Knowledge Articles Recommendation on your UI Page.

Page name: Share KB in chat interactions
Data Resource: Get Preview Fields (you need to add 'Category'/field(s) you wish to display on the searched Knowledge card of 'Recommendation' tab here).

Client Script: Set preview fields (you need to add piece of code under 'fieldsToDisplay' section to fetch the 'Category'/added field value here & add it to the returned payload).

 

We have tried together the solution and it worked for you.

Request you to please mark my solution helpful/correct/accepted so it can help others looking for similar guidance. Thanks!

 

Best regards

Madhuri Bhawnani