Azure Bot Framework with Cortana Skill using C# - c#

I am new to C# and Bot Framework. I need to set up a small poc where I have to do a sample registration using Cortana, C# and SQL. Can anyone of you help me out in this?

This is literally the first post I found when copying the title of your post into Google: Build a speech-enabled bot with Cortana skills
Creating a Cortana skill using Bot Framework requires very little Cortana-specific knowledge and primarily consists of building a bot. One of the likely key differences from other bots that you may have created in the past is that Cortana has both a visual and an audio component. For the visual component, Cortana provides an area of the canvas for rendering content such as cards. For the audio component, you provide text or SSML in your bot's messages, which Cortana reads to the user, giving your bot a voice.

If you'd like to create bot application in c# and access SQL database, you can try:
1) Bot Builder SDK for .NET is easy to use and leverages C# to provide a familiar way for .NET developers to write bots.
2)to access SQL database, you can use ADO.NET technologies or Entity Framework. And here is an example of EF in a bot, you can refer to it.
Besides, to configure Cortana channel, you can refer to this article: "Connect a bot to Cortana".

Related

How to connect Azure Language Service with knowledge base to Bot Framework SDK V4

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.

BotFramework Web Chat with existing chat box

I am trying to understand how to integrate BotFramework (C#) with an existing application without the use of Azure and using DirectLine, but everything I have seen so far requires an Azure subscription. I have looked at ngrok, but not sure if that is reliable for a production environment. I have also been digging around the source code repositories of BotFramework-Emulator and BotFramework-WebChat, but haven't found good information that relates to my use case.
If we have an existing "chat box", that has already been styled and has some basic commands that a user can enter, how could I reuse that chat box, but just implement the BotFramework routing? The idea being it is our standard chat box, but when the user types a command like /todo it would start a new bot conversation.
Without Azure, how would we generate a DirectLine token to access our C# WebAPI BotFramework Chatbot? I tried just opening a WebSocket in devtools to try and send messages, but wasn't successful
Sure, it is possible to just to plain REST routing, but would ideally like to use WebSocket to send/receive messages.
Generally speaking, the Azure Bot Service is a required component of using the Microsoft Bot Framework as it serves as the connector (via the supported channels - DirectLine, Teams, Slack, Facebook, etc.) between your bot and the specific channel. It is also responsible for generating the tokens that allows your bot to connect and pass messages around.
However, it is possible to run your bot without the use of the Azure Bot Service. Two options that may serve your needs are:
offline-directline: "Unofficial package to emulate the bot framework connector locally."
InDirectLine: "[T]he DirectLine is a bridge that connects your bot and your client. This project (InDirectLine) is a custom implementation of my own..."
You will need to research both to identify which, if either, could/would meet your needs. But, in short, both projects allow you to run your bot locally, or seemingly from a hosted remote environment, and connect to it.
Hope of help!

Microsoft Bot SDK testing with local application

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.

Chat one to one to integrate in website

Anyone knows an API or framework of an one to one chat to integrate in my website?
What i want, is create a chat, that enable a professor, talk privatly with his student. Actually i'm developing in c# and .net, html
Each professor have his students.
Can you help me?
There are ready-to-go Chat platforms for Web/JS that provide API, SDK and docs for integration.
I used ConnectyCube in many of my applications. They support Messaging, Video Calling and Push Notifications functionality for iOS, Android and Web.
Javascript messaging (chat) guide https://developers.connectycube.com/js/messaging
They have ready-to-go code samples under MIT license for Chat in browser, it can be used as a start and save some development time https://developers.connectycube.com/js/code-samples
Chat and Messaging features supported:
1-1 messaging
Group messaging
Cross-platform
Sent/Delivered/Read statuses
‘Is typing’ statuses
File attachments
Automatic push notifications to offline users
Contact list
Black list
The whole list of supported features

How to "talk" with a bot framework from code?

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.

Categories

Resources