I started working with Microsoft Bot Framework recently.
As a first step I created Echo example and tested with Emulator.
This was easy.
Now I want to test same Echo example with my website.
Have a chat window on website and send messages to get replies.
Can someone point me to the correct direction?
Most of the things I found are for Azure, WeChat etc.
All I want to do is run my Bot locally and test echo functionality.
Thanks
You want to use the BotFramework-WebChat library. It is a full featured solution that allows integrating you BotFramework bot into a web app, including passing data (bi-directional) between the app and the bot.
Setting up is SDK agnostic if youโre looking for simple integration. So it wonโt matter whether you are using C#, Node, etc.
Hope of help!
You can enable your own client application to communicate with your bot by using the Direct Line channel.
Related
I have followed the steps from the AI-900 lab: https://microsoftlearning.github.io/AI-900-AIFundamentals/instructions/04d-create-a-bot.html
I have a simple bot working and it is deployed.
I want to use this chat-bot and extent its functionality.
=> If a user is not satisficed with the bot support, show a button "Would you like to create a bug?" -Yes -No
=>If Yes = I want the chatbot to call an Azure DevOps API to create a bug based on the information collected form the chat.
=> If No = Reset chatbot
What I have done:
I went to Azure Bot Service and I have downloaded the Bot source code.
Run it using Visual Studio 2022 and it runs but, cannot connect to Knowledge Base and Language Service.
I am testing it using Bot Emulator v4.14 on Windows.
Problems and Questions:
I know that QnA will be retired and it is replaced by Custom Question Answering. How to connect Azure Language Service so I can have access to the Knowledge Base and questions I have created in the Language Studio?
Is Azure Bot Framework SDK v4 the correct tool to use? I am writing C# and I want something like this:
If Yes then call Azure Dev Ops API to create a bug with the description and info used in the chat.
I have published my QnA Maker and from there I have created a bot. I already tested the bot using the "Test in web Chat" function. But I need to download the code for further changes. I am not able to download it. It stays like this (shown in the image below). Can someone please help me with this?
Check the following steps.
Did you changed the pre-populated QnA Auth Key & App service plan and location while creating a bot in azure?
You can check your internet connectivity and Also verify in different browsers and confirm any other blocker creating on your network side?
Reference:
Qna Maker To Bot
once I read about Microsoft bot framework, I realized that it is a platform to code once and run everywhere... I mean, you code once and then you have bots for Telegram, Facebook, slack, skype and so on.
Is my understanding about Microsoft bot framework correct? Or I'm expecting too much of it?
Then I downloaded Bot Composer for my windows laptop and created a bot.
It works on emulator.
My problem/Question is how to publish and deploy my bot without azure?
I have a VPS on Hetzner, and I want to host my Bots in that vps.
The bot composer has only options working with azure, I don't have Microsoft app ID and Microsoft app password. What should I do ?
In this chart, It can be seen that some social platforms work with azure, and some others work with sdk, for example Telegram -->> SDK , What does it mean ?!?!?
Does it mean that you have to pay for Azure to publish your bot for Telegram ?
In this link, I have to register a bot, there is a button there which says : Create Microsoft App ID and password.
I clicked on it and created one, there is Microsoft App ID in it, but there is no password.
I know I wrote too much :)) but I got very confused because I think the documentation is very unclear and the boundary between paid services and unpaid services is not clear...
Can anyone tell an instruction of how to deploy an simple echo bot on a VPS for multiple platforms without azure ?
Thank you.
That's a bunch of questions ๐
, will try to synthetize.
Yes it's a code once, use from several channels... but not all channels have the same capabilities.
A bot application is "just" a state machine with a REST API endpoint to receive messages and send the replies back (seen from 30,000 ft ๐)
You can host your app anywhere, it just has to have a valid public https address that you can configure in the Bot Channel Registration in Azure.
Azure Bot Service is a channel aggregator, that handles all the connection details for the channels listed as "Azure" in the chart you mentioned. Those channels are handled "automagically" by the bot framework.
You might want to read a blog post I wrote some time ago, it's a bit dated but still conceptually valid:
How does a Bot Builder v4 bot work?
For those channels not in Azure, you have to handle each channel with a provider-supplied SDK in your web app. Of course, you could also implement authorization and all the details by yourself, after all it's just an API endpoint.
You don't really have to pay Azure for using the bot service channels, if you use the standard channels, and premium channels are low cost.
As for deploying outside Azure, supposing you'll still use the free or close-to-free Bot Service:
Follow section 1-3 in Deploy your bot
Deploy the web app wherever you want (even locally using ngrok similar to what I show in another blog post.
With all of the above in place, you should be able to test the bot from the channel webchat or even from Telegram, once you enable it, while your app is running in VS ๐
I have a bot framework published on Azure that is working fine, according to my emulator. I developed this bot to use it on the app (Xamarin) that I am developing (C#). However, I don't know how to communicate with my bot. I need someway to send "strings" and get the "strings" answered by the bot. How can I establish a connection and a conversation with my bot?
Any code tutorial available?
My bot is published on https://XXXXXX.azurewebsites.net/api/messages .
Thank you in advance!
I think that you will have to use the Direct Line API.
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, mobile apps, or service-to-service applications that will talk to their bot
Here you will find a sample showing how to create a DirectLine client.
I'm tasked with writing a web app that will connect an internal employee and an external client while logging Case details. Our company recently switched over to Lync, so I'm a bit lost on the API for doing this.
Ideally, this would be a web app (C# & ASP.NET) so that the customer support department doesn't have to install something to every workstation. It would also mimic the behavior found in this article for sending an email to allow external users to connect.
Is UCMA required for this? We have a generic Lync account that could be used by a service to facilitate these requests if that would be more appropriate. I can also force the issue for using a desktop app if need be.
I'm just having a hell of a time finding the right API calls to make this happen on MSDN so any links to docs or tutorials would be a huge help.
Some research that doesn't quite point out what needs to be done:
UCMA: Chat with users not in AD
How do I Invite a user by email to a Lync 2010 chat session using the API?
you should take a look at this sample located at :%Program Files%Microsoft UCMA 3.0\SDK\Core\Sample Applications\Reference\ContactCenter
You'll find more details here : http://msdn.microsoft.com/en-us/library/hh285604.aspx
Hope that helped.
You should also take a look at UCWA - Microsoft's Unified Communications Web API.
Unified Communications Web API
It's a great platform for adding Lync functionality into your Web application, has an Online Demo with full source code as well.