issue with OOB topic block " contextual search" in chat bot

anitha0887
Tera Contributor

Hi folks,

 

Iam new chat bot, i am using  OOB topic block " contextual search" in topic flow. In that  there is input mapping section has following fields are context(string ) and query(string) , I do not know what would be entered to those field. I have choosen data picker option --script varible showing empty. I whould be entered.Can anyone help me on this.please refer screen shot for better understanding of my query.

anitha0887_0-1705530661503.png

anitha0887_1-1705530732380.png

 

 

2 ACCEPTED SOLUTIONS

ahefaz1
Mega Sage

Hi @anitha0887 ,

 

The search context or context field value will contain the sys_id of the search context you want to use in the VA topic. This comes from the table 'cxs_context_config' and defines search configuration. If you do not have a script variable, you can create one and add the sys_id  by dot-walking to the script variables object in the topic, or you can return the sys_id of the search context directly from the script.

 

ahefaz1_1-1705545531051.png

 

 

The search query has to be captured. In the search query parameter, you can pass the value from the 'describe issue' block from your VA topic node. You should be able to dot-walk to it using the input variables object.

 

ahefaz1_2-1705545552276.png

 

Hope this helped.

Please accept solution OR mark helpful.

 

Thanks,

 

 

 

View solution in original post

Below is the response I get on my PDI, where I do not have AI search

 

ahefaz1_0-1705607210287.png

 

On the instance where I have AI search it works OOTB:

ahefaz1_1-1705607315235.png

 

You might need to check your AI search configuration.

Thanks,

View solution in original post

15 REPLIES 15

ahefaz1
Mega Sage

Hi @anitha0887 ,

 

The search context or context field value will contain the sys_id of the search context you want to use in the VA topic. This comes from the table 'cxs_context_config' and defines search configuration. If you do not have a script variable, you can create one and add the sys_id  by dot-walking to the script variables object in the topic, or you can return the sys_id of the search context directly from the script.

 

ahefaz1_1-1705545531051.png

 

 

The search query has to be captured. In the search query parameter, you can pass the value from the 'describe issue' block from your VA topic node. You should be able to dot-walk to it using the input variables object.

 

ahefaz1_2-1705545552276.png

 

Hope this helped.

Please accept solution OR mark helpful.

 

Thanks,

 

 

 

I want to use  OOB AI search topic block, in input mapping there is field called "search term" whtat value need to be fill.I created simple topic called password reset,i add two steps 1)describe issue 2) AI seacrch .if user enter enter issue , chat bot need to display related article that is what my requirement.I am new to virtual chat bot.refer screenshot for better details.

anitha0887_0-1705595695753.png

 

@anitha0887 ,

 

For the search query you should be able to pass the input from the describe your issue node.

I was able to get the below response when I passed to AI Search topic the search string policy:

It will also perform a topic discovery.

 

ahefaz1_0-1705597647720.png

 

ahefaz1_1-1705597727299.png

 

 

 

Please accept solution OR mark helpful.

 

Thanks,

Can you elaborate more  on this, how did you pass data to search string parameters ,did you write any script .