This article will explain the Cognitive Search component and how to configure the component in the Experience Designer.
Cognitive Search
When the virtual assistant doesn’t understand what is being asked, relevant search results can be used to help the user. This can be achieved using the Cognitive Search feature.
Cognitive Search Results are displayed on an Adaptive Card. All styling should be handled via the Adaptive Card.
Cognitive Search is available only for the Chatbot and not for the Voice skills.
\uD83D\uDCD8 Steps to configure the Cognitive Search feature
Cognitive Search can be implemented using the Cognitive Search node in the Experience Designer
The Cognitive Search node can be found in the left pane of the Experience Designer under the Orbita section
The Cognitive Search node takes the following parameters as input
msg.cognitiveSearch.subscriptionKey
msg.cognitiveSearch.customConfigId
msg.cognitiveSearch.query
msg.cognitiveSearch.count
msg.cognitiveSearch.offset
The inputs can be configured in a function node like below
We get the msg object as output from the Cognitive Search node.
Input Parameters
| This is the custom subsciption key of the Cognitive Search |
| |
| This is the search query for which we will get the results in the output of the Cognitve Search node For Example the query can be “Who is the CTO of Valley Health?” |
| This determines the number of search results to be displayed initially. For Example if the search result has 10 records and the count is 3, the first 3 results will be shown with a load more button. |
| This count defines the number of records to be skipped. For Example if the search results has 10 records and the offset value is 2, the first 2 records will be skipped and the remaining 8 results will be available in the output |
To configure the subscriptionKey and customConfigId, please contact support @orbita.ai.