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

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.

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.

Related

Possible to upload documents to Watson discovery via Watson Assistant?

I have been trying to find an answer to this question, but can't seem to have any luck.
Is it possible to upload a document to Watson Discovery via Watson Assistant?
If so, could anyone point me in the right direction?
There is nothing out of the box that could do as you ask. Discovery does now come with a number of mechanisms to populate collections, i.e. Box, Web and sharepoint crawlers along with a manual upload. Non of these are integrated with Watson assistant.
That's not to say what you are looking for cannot be done, but you would need to build the mechanism yourself. As an example you could create a response payload (json packet ) within Watson Assistant that triggers some client code which performs an upload. This upload could then directly push the document into a discovery collection via discovery's API methods.

How to upload in muy website the watson chatbot, please

I already finish the chatbot, but I have no idea of how to upload it to my website, please, help :)
I tried to look for some code to send to the IT developers, but cannot find it :( And the IT guys are too busy, so I'ld like to get the answer by myself so I can send it to them if I'm not able to apply it. Thank you. (Btw: I'm not an IT person... :( )
Where to start?
The dialog / conversation part of your Watson Assistant part chatbot is available as a REST API.
There are several deployment options available. For the more popular choices the Assistant tooling provides integrations. So if you want to access your chatbot through slack, or facebook messenger or on a word press site then look at the documentation as to how - https://cloud.ibm.com/docs/services/assistant?topic=assistant-deploy-integration-add
If you are developing your own application or web-page, then your developers will need to design the User Interface and handle the quirks of your dialog. eg. Decide how to display images, options etc., all from the API, which is essentially only message in, response out - https://cloud.ibm.com/apidocs/assistant-v2#send-user-input-to-assistant. There are samples available for them to base from - eg. https://github.com/watson-developer-cloud/assistant-intermediate
If your website is using Wordpress, there is a very easy way to deploy the chatbot to it using a wordpress plug in - https://wordpress.org/plugins/conversation-watson/

Creating a workspace on IBM Watson lite

I am trying to create a workspace.
Will create a chatbot using Watson Assistant.
The tutorial I'm referring to is for Watson Conversation.
Can you point me where to look - it's just a different interface.
Thanks,
G
A workspace is now called a Skill. So click the Skills tab next to the home page and click create new.
There is a tutorial inside the Watson Assistant documentation that is continually kept up to date that may be easier to follow.

Check whether input belongs to list of intents or not in IBM Watson Assistant

I have build Intents and Entities in IBM Watson Assistant. Now I need to build a client chat UI and get the response based on my input.
Please let me know:
save the context and pass it back to Watson Assistant
If I don't build dialog in IBM Watson how can I build dialog logic in my .net client application. I mean how to check my input belongs to the list of entities or not ?
Harsha.

Is it possible to populate IBM Watson Assistant entites by reading from another system (e.g. Salesforce)?

I'd like to bring through entities from another system (e.g. Salesforce) into the Watson chatbot in order to allow the user to interact with them. e.g. Rather than explicitly defining "Customer" and then building a list of customers in Watson I'd like it to integrate and bring through all active Customer records from salesforce, each as their own entity. Is it possible to dynamically update Watson's entity list based on a table in another system?
There is no built-in functionality for that, but it can be done. Watson Assistant / Watson Conversation has an API and SDK support for adding entities. I have used that technique as part of the EgoBot project.
However, I would recommend to integrate Salesforce as a regular backend. Here is a tutorial for how to have a database as backend. Another option, depending on what you want to accomplish, is to look at the Salesforce to Watson integration. There is also a Salesforce / Watson SDK for that.

Resources