Virtual Agent User Input

Jack Littlewort
Giga Guru

Hi,

Is there a way for a topic to automatically perform the search using the phrase the user has input previous to selecting the topic?

For example, if a user enters 'I want to find where my paycheck is stored' and then the Search the Knowledge base topic, the results from searching 'I want to find where my paycheck is stored' are instantly returned.

Thanks,

1 ACCEPTED SOLUTION

You can call it with vaSystem.topicDiscovery(); Just make sure that the vaVars.global_search_text is set to what the user is searching for.

View solution in original post

7 REPLIES 7

Kenton Dover
Mega Guru

Take a look to see if the variable vaVars.global_search_text is populated with what you want. If not you can manually populate it in a script with what the user entered. Then when they select your knowledge topic search for it based on what is in the vaVars.global_search_text. 

Hi,

 

What topic would the variable need to be set in ?

Whatever topic where you collect "if a user enters 'I want to find where my paycheck is stored'"

I don't know what topic this would be.

 

The OOTB Greeting topic doesn't seem to use an Input to get the users initial message.

 

For clarification I'm talking about the message entered at this point: 

find_real_file.png