js client for azure DirectLine App Service Extension - botframework

I am using DirectLine App service extension in order to connect with bot logic. I want to know if there any JS client available for this on the UI side. Azure documentation have C# one
https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-directline-extension-net-client?view=azure-bot-service-4.0
but I am looking for a Js client because I want to develop a custom UI. I don't want to use webchat for this.

Related

Is it possible to integrate braintree with .net desktop application?

Is it possible to integrate braintree payment gateway with .net desktop application rather than Website, And Mobile applications? As per their documentation, they have three Client SDKs (JS, Android, IOS).
For it to be secure you should have an HTTPS web service handling the server-side portion of the Braintree integration. This server does not need to serve any HTML. It does need to handle the server-side API communication with Braintree servers, and send the token to the client when requested, and receive the nonce from the client and use it to create transactions.
The "desktop" client .NET application should use the JS SDK. Theoretically the client could implement HTTPS calls in native .NET with no JS SDK, but it will be far simpler and more robust to use the JS SDK provided by Braintree in your .NET application.

Is there any way to develop own Webchat instead of Microsoft Botframework-Webchat

I don't want to keep any dependency on Microsoft Botframework registration for Webchat. I have successfully deployed my Bot Code in Shared Server instead of AzurePortal, But to use the Webchat I have to register the Bot in AzurePortal.
My concern is to develop own Webchat which will directly communicate with the Bot API Endpoint.
Have anyone work on this situations.
To clarify, bots communicate via:
User interaction with DirectLine Client ->
DirectLine API receives data and sends to bot ->
Bot hosted anywhere receives message
WebChat is just a DirectLine client. If you want to build your own WebChat, you can clone the repo and build it yourself. Note, however, that all this does is make it so you can host your own webchat.js file.
I believe that what you're actually looking for is to build your own DirectLine API. The only way to do so, currently, is to develop it in Node with the offline-directline npm package. This is not an official Bot Framework package, but will accomplish what you need. To then use WebChat with offline-directline, you would just need to change domain property when rendering WebChat.

Can we develop a functional or process bot using azure service

I'm looking for a solution where my bot can understand users request(may be with LUIS this can be achieved) and verifies/validates the user/requirement with master data. If all good, then connect to my native database(Siebel CRM via API) to perform the defined action and log a reference ticket(via API) and finally send an email to user using outlook. Is this achievable using azure service?
Yes, the Bot Framework can do all of those things:
my bot can understand users request
LUIS is perfect for this.
verifies/validates the user/requirement with master data
All of this can be done within Waterfall dialogs or Prompts. You can either store the master data in the bot code, or query it from an external source and have the bot validate against it.
Here's a good sample for prompts and validation.
connect to my native database(Siebel CRM via API) to perform the defined action and log a reference ticket(via API)
The bot runs on C#/Node, so anything (including calling your APIs) that you can do in C#/Node, you can do in your bot.
send an email to user using outlook
Bot Framework has a specific Email Channel for this or you can use the Graph API.
Recommended Resources
Docs and QuickStarts
Samples Repo
Reference Docs: C# / TypeScript
LUIS Docs

How to connect QnA Service on qnamaker.ai to an azure chatbot using Bot Service?

I’ve created a QnA Service using qnamaker.ai and when I proceed further to create a bot using the Bot Service, I cannot because the upon searching there’s no option like Bot Service (Preview) as mentioned in the tutorials. Instead I’m presented with the following:
• Web App Bot
• Functions Bot
• Bot Channels Registration
On Azure, there are 3 services related to Bot:
Web App Bot
Functions Bot
Bot Channels Registration
Web App Bot and Function Bot are both part of Bot Service:
Bot Service provides the core components for creating bots, including
the Bot Builder SDK for developing bots and the Bot Framework for
connecting bots to channels.
Simply put, Bot Service will host a Web App / Functions Bot in Azure and let you config channels or edit the code online.
Bot Channels Registration is for projects where the developer creates their own web app project based on Bot Builder SDK and deploy the web app to Azure/AWS/Google Cloud Platform. In Azure's Bot Channels Registration, the developer can link their web app's url to Azure and enable channels to communicate to their bot. In summary, this scenario enable more flexiblity in development and hosting.
In your case, you can create a Web App / Functions Bot use QnA Bot template. Once created, in Application Settings > under App settings > Find QnAKnowledgebaseId & QnASubscriptionKey,
replace the two fields from the information in QnA service.
Save the update and your Bot should use the QnA service you published.

Microsoft Bot Framework Client sdk

I am looking to use Microsoft Bot Framework in my application. However, I have a custom UI chat control (designed according to my requirements) where I need to hook up this bot.(instead of having pre-configured channels like slack or skype).
Is there a client sdk for web (preferably in angular) and/or mobile available for this purpose?
Take a look at DirectLine.
The Direct Line API is a simple REST API for connecting directly to a single bot. This API is intended for developers writing their own client applications, web chat controls, or mobile apps that will talk to their bot.
DirectLine is always a good option to add chat functionality in your custom UI. Otherwise you can just turn on Web Chat channel and embed iframe in your webpage. This will make your job easy with very less errors.
I have seen directline causing many issues while sending requests. Web Chat is always a better option.

Resources