How enable or disable the Watson assistant based on the user query in search bar in a website

209 views Asked by At

I have an website were I have search bar to search the articles. So when a user searches anything in the search bar I want to check whether there is a guided flow in the Watson assistant, if it is available then I wanted to enable the Watson assistant in the bottom of the page and show the resulting dialogflow and if no then the Watson assistant should be disabled.

1

There are 1 answers

2
mpjjonker On

You can call the assistant always (in the background) and based on the response decide if you want show the assistant.

The whole concept of the Assistant is figuring out the intent.

So I would always pass the query to the Assistant and have something easy in the response to base your display decision on.