Refine search results in virtual agent coming from contextual search

Nihanth Allada
Mega Guru

Hi,

I am working on a virtual agent and using OOB Contextual search to find knowledge. The search results come from the article body and other places. Can we restrict the search query to short descriptions and metadata fields in the knowledge Article?

Regards

Allada

3 REPLIES 3

Shivalika
Mega Sage

Hello @Nihanth Allada 

 

 

You can follow below 👇 SN documentation for updating the fields in contextual search - 

 

https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/contextual-sea...

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

 

HI Shivalika,

I tried this approach, and I have configured two fields like short description and meta but still  the results are getting pulled from the article body,

Regards

Nihanth Allada

Hello @Nihanth Allada 

 

I see that this is for your virtual agent - then you will.also need to update the context search sys_id in virtual agent topic with the custom record you created. 

 

Refer below 👇 for process - 

https://www.servicenow.com/community/developer-forum/contextual-search-knowledge-article-in-virtual-...

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY