Ai Search in Virtual agent

shraddhakar
Tera Contributor

I'm currently working on virtual agent and trying to configure ai search/semantic search for virtual agent but its not working. My requirement is to apply ai for model categories table so that when user enters any category then semantically based on user input I should get outputs of model category. Inputs from your end will be helpful. Thanks in advance.

Used below steps to configure but its not working :

https://www.servicenow.com/community/virtual-agent-nlu-articles/how-to-use-ai-search-and-other-searc...

https://www.youtube.com/watch?v=bzAKxjd0_uo

4 REPLIES 4

Saloni Suthar
Mega Sage
Mega Sage

Hi @shraddhakar ,

 

1. Create an indexed source for model categories table - https://www.servicenow.com/docs/bundle/vancouver-platform-administration/page/administer/ai-search/t...

2. Navigate to the search profile you are using for virtual agent and create a new search source - https://www.servicenow.com/docs/bundle/vancouver-platform-administration/page/administer/ai-search/t...

3. Publish the profile. 

 

If you have already completed the above steps, we need details on the configuration you have already done. 


If my response helped you, please click on "Accept as solution" and mark it as helpful.
- Saloni

Hi @Saloni Suthar , Thanks for your response. I have already configured things which you've mentioned but still its not working. Below are configurations which I have done:

Search Application configuration : 

shraddhakar_1-1747071610291.png

Navigation Tab:

shraddhakar_2-1747071692532.png

Search Profile : 

shraddhakar_3-1747071749650.png

Search source :

shraddhakar_4-1747071790616.png

 

Indexed source : 

 

shraddhakar_6-1747071875800.png

Search preview result : when same application trying to preview it gives below result : it gives correct number/count of search(banner) but doesn't displays result not sure why

shraddhakar_7-1747072008226.png

below is default chat experience setup topics, This is default haven't made any changes to it.

shraddhakar_8-1747072156377.png

Search mapping for default chat experience:

shraddhakar_9-1747072231603.png

 

Below is virtual agent flow: 

shraddhakar_10-1747072283935.png

Enter model category - text input

shraddhakar_11-1747072308376.png

 

Ai search topic block utility : 

shraddhakar_12-1747072354554.pngshraddhakar_13-1747072373783.png

Show model category is nothing but script action added to log result : 

shraddhakar_14-1747072412209.png

 

script used to log result : 

(function execute() {
gs.info('enter_model_category - '+vaInputs.enter_model_category + 'geniussearchresults -' + vaInputs.geniussearchresults + 'newsearchterm - ' + vaInputs.newsearchterm + 'searchmetadata - ' + vaInputs.searchmetadata + 'searchresults -' + vaInputs.searchresults + 'shouldaskinfohelpful - ' + vaInputs.shouldaskinfohelpful + 'shouldrunfallbacktopic -'+ vaInputs.shouldrunfallbacktopic + 'user -' + vaInputs.user);
})()

Hi @Saloni Suthar , Thanks for your response. I have already configured things which you've mentioned but still its not working. Below are configurations which I have done:

Search Application configuration : 

shraddhakar_0-1747072809451.png

 

Hi @Saloni Suthar , Thanks for your response. I have already configured things which you've mentioned but still its not working. Below are configurations which I have done:

Search Application configuration : 

shraddhakar_0-1747073022096.png

Search Profile : 

shraddhakar_1-1747073032564.png

 

Search source :

shraddhakar_2-1747073032566.png

 

 

Indexed source : 

 

shraddhakar_3-1747073032569.png

Virtual agent : 

shraddhakar_4-1747073060507.pngshraddhakar_5-1747073067589.png