简体   繁体   English

如何根据网站搜索栏中的用户查询启用或禁用 Watson 助手

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

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.因此,当用户在搜索栏中搜索任何内容时,我想检查 Watson 助手中是否有引导流,如果可用,那么我想在页面底部启用 Watson 助手并显示生成的对话流,如果否,则应禁用 Watson 助手。

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.因此,我总是会将查询传递给 Google 助理,并在响应中提供一些简单的内容来确定您的显示决策。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM