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

I have tried, no response. are  you getting response if you do so , can you check your side ,add screenshot if possible

anitha0887_0-1705606573370.png

 

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,

what I  need to change in AI configuration, please let me know

Thank you for sharing documents.