Manage state data in Microsoft Azure Bot SDK V4 using Nodejs - node.js

Can we have Manage state data in SDK V4 using Nodejs? I currently have used in SDK V3 using the link below https://learn.microsoft.com/en-us/azure/bot-service/nodejs/bot-builder-nodejs-state?view=azure-bot-service-3.0

All the information in the v3 docs can also be found in the v4 docs. The docs are just structured differently.
Check out this section which provides an overview on "Managing State". There is also this which discusses how to "Save user and conversation data" as well as this that goes over "Writing directly to storage".
Hope of help!

Related

Programmatically updating answer for an unanswered question in Custom Question Answering

I have created a custom question answering project using Microsoft Conginitive Services and deployed the same.
Now I would like to create an UI where an user can see the unanswered questions and update the knowledge base with appropriate answer using the UI itself.
From the deployment details, I am able to extract the Ocp-Apim-Subscription-Key. But I am little confused about the appropriate way of API call in my UI to track and update the unanswered questions.
Could not find many write-up or examples regarding this. Please guide me regarding the same.
It depends on the questions answering resource type you are using, as this service has evolved.
Azure Cognitive Service for Language (end of 2021)
This is the newest version of QnA Maker (as of late 2021), now called "Custom question answering" being part of Azure Cognitive Services for Language.
This service has a better offering in terms of API:
Service documentation is here
API documentation here
The "active learning" feature is offered through Language Studio portal (see doc).
But if you want something custom, you might be interested in the Authoring API: programmatically, you could use "Get QnAs" operation will give you all QnAs, and the RetrieveQnaRecord object included in the response contains a SuggestedQuestionsCluster object which could lead to interesting feedbacks to add.
QnA Maker (v4.0)
QnA Maker 4.0 has a REST API documented here.
In addition, you can directly check some calls using the API exposition in the right region. Example for West US here
=> For this service, there is no "feedback" solution exposed. The API allows to update a knowledge base, but you will not have an operation providing unanswered questions.

Guideline for Inter Service Communication with principal propagation with Cloud SDK on CF

We are trying to set two micro services where the principal needs to be propagated from the first microservice(Login happens here) to the second one (This uses cloud SDK to talk to S/4 Hana Cloud). Has this particular scenario been explored before / is there any existing guideline the Cloud SDK team suggests.
Anirban
The Cloud SDK capabilities related to Principal propagation in conjunction with OAuth flow are nicely explained in this blog article by Marco Dahms.
I hope you'll find an idea of how to adapt it to your use case. There are additional helpful links in the comments section of the blog.
If you give more details or what solutions you have already tried we are happy to help you further.
Cheers,
Artem

How to link google action with dialogflow using gaction CLI?

I am trying to automate the process of google action creation and deployment and for that I can find a a number of documents where gactions is being used to handle action console with action SDK.
I want to ask if their is any way i can link google action with my dialogflow agent using gaction CLI Or if any other CLI is already providing the support for same.
Under the hood an Actions on Google project will have a 'project id'. This is a Google Cloud Platform project, which gives your Action access to additional resources if you want, like Cloud Functions.
Dialogflow uses the same infrastructure, where the Dialogflow project id is a GCP project.
"gactions" as a command-line tool is not designed to work too closely with Dialogflow. However, as you know that your Action and Dialogflow share a common infrastructure, you could do some work yourself to use the Dialogflow API with your project ID to do some automation.

Azure Log Analytics - new Search REST API

Azure announced the ability to upgrade Azure Log Analytics workspace recently. It comes with a new query language (https://docs.loganalytics.io/index). But after the upgrade their Search REST API (https://learn.microsoft.com/en-us/azure/log-analytics/log-analytics-log-search-api) isn't working anymore. I wasn't able to find a way to execute new Search Queries via REST. I would imagine that it would be similar to AppInsights API (https://dev.applicationinsights.io/).
It also seems like they have actual API but no documentation as of yet, because Microsoft Flow has ability to integrate and execute Search Queries with the upgraded workspace (https://learn.microsoft.com/en-us/azure/log-analytics/log-analytics-flow-tutorial).
Any help in pointing on how to execute new Search API via REST is greatly appreciated.
Thanks
Documentation for new REST API wasn't available when this question was posted. Here is the MS response:
https://social.msdn.microsoft.com/Forums/azure/en-US/0c044c41-6642-4bb0-9a61-64d6f6b8b042/new-log-analytics-search-rest-api?forum=opinsights

How to integrate Watson Discovery with Watson Virtual Agent?

How to integrate Watson Discovery with Watson Virtual Agent? Can anyone give hints, sample code and provide documentation link? https://github.com/watson-virtual-agents/chat-widget does not contain information regarding this? Thank you very much!
Basically, you need to use a custom code with 2 APIs endpoint: Discovery and Virtual agent/ Conversation.
For now, have one example with Conversation Service and Discovery Service in Java, from IBM Developers, you can see in this link.
And a few weeks ago I built some simple example using the project conversation-simple for integrating Discovery, using the highlight and another custom params, using Node.js, you can see in this link
After creates one IBM Cloud (Bluemix), go to Catalog and Select the Watson services above, pay attention to the Services credentials when you click in your Watson Service for use each service, as you can see in my .env and IBM Professionals file, for all works, you need to paste the values into the Enviroment Variables or replace the values with the respective variables in your code.
See the Official Documentation for Using Watson Virtual Agent instead of Conversation.
See the Official Documentation and API Reference for use Watson Discovery.
See the Official Documentation and API Reference for use Watson Conversation.

Resources