How to integrate Watson Discovery with Watson Virtual Agent? - 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.

Related

SDK Support for Document Service

I would like to connect the Document Service from Java (Spring Boot application deployed in SAP BTP Cloud Foundry environment with multitenancy) and I am wondering about the intended way to connect the document service in a multitenant szenario.
Does SAP cloud sdk helps with connectivity?
If we're talking about consuming the service on the SAP Business Technology platform - then yes. Check the multi-tenancy docs.
The SAP Cloud SDK is a framework for consuming services and usually not the best choice for publishing them. You can use it as a proxy or data adapter, of course, if that's what you need.
For service publishing with multi-tenancy, I'd recommend looking into the direction of the Cloud Application Programming model (CAP)
Are you building OData, OpenAPI or generic REST enabled service? The SAP Cloud SDK can help to consume your service with multi-tenancy out of the box using our OData or OpenAPI code generators and type-safe clients. You can also use the SDK for testing. Please, check the details in our docs.
I'd also recommend checking if the service you're building already exists or you can adapt some other service with help of the SDK.

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.

Manage state data in Microsoft Azure Bot SDK V4 using Nodejs

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!

Integrating Azure Bot with Azure Speech Services

Is there a possible way to integrate the speech services with bot? So i would like to know what is the process that goes in the integration of Speech Services with Bot?
How is it possible to do the integration with bot through the key that is obtained from the Azure Speech Service created?
And how to check whether the created Speech Services is working?
Is there any common portal for the Speech Services to be tested like the portal for custom speech(https://westus.cris.ai/Home/CustomSpeech)?
And What are the different ways for integrating?
To test the speech service whether works, you can use the code sample provided by Microsoft without write addition code. Refer to the Next steps section of Text to Speech
Or you can make the REST API using POST man according the documentation.
And to integrate the Speech Service with Bot, you can refer the figure below:

Resources