BotFramework | Programming the Microsoft Bot Framework | Bot library

 by   stefanotempesta C# Version: Current License: No License

kandi X-RAY | BotFramework Summary

kandi X-RAY | BotFramework Summary

BotFramework is a C# library typically used in Automation, Bot, Framework applications. BotFramework has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Programming the Microsoft Bot Framework.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              BotFramework has a low active ecosystem.
              It has 4 star(s) with 1 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              BotFramework has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of BotFramework is current.

            kandi-Quality Quality

              BotFramework has 0 bugs and 0 code smells.

            kandi-Security Security

              BotFramework has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              BotFramework code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              BotFramework does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              BotFramework releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of BotFramework
            Get all kandi verified functions for this library.

            BotFramework Key Features

            No Key Features are available at this moment for BotFramework.

            BotFramework Examples and Code Snippets

            No Code Snippets are available at this moment for BotFramework.

            Community Discussions

            QUESTION

            Integrating Microsoft Web Chat without using Azure Bot Service
            Asked 2022-Mar-17 at 22:25

            I am currently looking at using Microsoft Web Chat to interact with my existing Node Js application built on MS Bot Framework Core but uses DialogFlow as NLU.

            Current implementation: Web Page -> Custom UI Widget -> Connects to Node.js app built on MS Botframework Core -> Queries DialogFlow NLU to identify Intent -> Node.js app constructs the Dialog -> Gives response to user.

            Looking at the Web Chat component, I cannot find references using any other NLU except Azure Bot Service. Is it mandatory to use Azure Bot Service/LUIS NLU to integrate with Web Chat?

            I have also looked at offline-directline npm module but the last dev on the module is more than 3 years ago.

            ...

            ANSWER

            Answered 2022-Mar-17 at 22:25

            Firstly, responding with a quick message about using offline-directline, you should feel reasonably comfortable with it. It is a few years old, but seems to stand the test of time with continued use and little in the way of issues that I have heard.

            Another option would be to use a 'browser bot'. In this scenario, the bot is contained within the hosting page's html/scripts. So, there is no reliance on using Direct Line. I don't know your whole setup, so this may or may not align with your overall needs and architecture.

            As for using Web Chat with something other than the Azure Bot Service, this would be an uphill battle. In theory, this is probably achievable to some degree. The issue is that Web Chat is heavily integrated with the BotFramework-DirectLineJS library. You might be able to cherry pick specific components from Web Chat, replace the Direct Line library with a make of your own, and modify the remaining code to work with your 'service'. But, I'm not certain the effort is worth it. That is something you would have to decide for yourself.

            If you do go this direction, you will likely need to configure your 'service' to send messages that conform to the BotFramework schemas when communicating with Web Chat. Even without the dependency on Direct Line for connecting to the service, much of Web Chat is still oriented towards what an incoming message looks like (i.e. a BotFramework Activity) and handling it according to the properties it contains.

            To start, here are a few areas you should review in order to correctly configure you service to handle inbound and outbound messages going to and coming from Web Chat:

            • BotFramework Activity schema
            • BotFramework Card schema
            • BotFramework Transcript schema
            • Web Chat's Activity, Card, Attachments, etc. Types - at present, these are loosely defined. I would expect that to change at some point in the future which may prove to be a changing break in your specific scenario.

            This is not exhaustive and would require greater research as there are likely other considerations than the few I've listed above. But, again, this may not be necessary if you decide to utilize offline-directline.

            Source https://stackoverflow.com/questions/71511660

            QUESTION

            Azure Bot When debugging locally using ngrok for channel teams throws the following exception "Failed to acquire token for client credentials."
            Asked 2022-Feb-23 at 16:39

            System.AggregateException: 'Failed to acquire token for client credentials. (Parameters: Connection String: RunAs=App;AppId=bc107559-ff62-4f67-8dd4-0dce6a0fe426, Resource: https://api.botframework.com, Authority: . Exception Message: Tried to get token using Managed Service Identity. Unable to connect to the Instance Metadata Service (IMDS). Skipping request to the Managed Service Identity (MSI) token endpoint.)'

            Inner Exception : AzureServiceTokenProviderException: Parameters: Connection String: RunAs=App;AppId=bc107559-ff62-4f67-8dd4-0dce6a0fe426, Resource: https://api.botframework.com, Authority: . Exception Message: Tried to get token using Managed Service Identity. Unable to connect to the Instance Metadata Service (IMDS). Skipping request to the Managed Service Identity (MSI) token endpoint.

            The above Exception is throw when trying to send message to user or getting user details for ex:

            ...

            ANSWER

            Answered 2022-Feb-18 at 07:12

            You can try the following workarounds to resolve this issue:

            • Check Visual studio is running as administrator.
            • Checkbotframework.com whether bot is listed.
            • Users have the write to create apps in AD.

            Also try the below steps:

            1. go to your bot in the Azure portal.
            2. select the 'Authentication' menu on the left panel.
            3. select 'Accounts in any organizational directory (Any Azure AD directory - Multitenant)' in the 'Supported account types' as below :

            Source https://stackoverflow.com/questions/71156524

            QUESTION

            How to customize BotFramework webchat react UI
            Asked 2022-Feb-17 at 02:35

            I'm just started exploring botframework webchat with React. I have tried to come until below UI.

            current ui image

            In docs, its mentioned like we can control each parts of the UI using React. But I couldn't see samples that could modify webchat message styles like (user/bot message height, customize message input field). In the ReactWebChat component, there is a className prop.

            ...

            ANSWER

            Answered 2022-Feb-15 at 11:03

            This document should get you started. Most basic styling is available via configuration-settings.

            The border of a textmessage for instance could be implemented via styleoptions:

            Source https://stackoverflow.com/questions/71005239

            QUESTION

            Requesting an access token for an MSTeams bot
            Asked 2021-Dec-20 at 18:35

            I'm attempting to get an accessToken to use inside of my own custom built bot. I've based the request I am trying to build on the following:

            https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-authentication?view=azure-bot-service-4.0

            Specifically this request:

            ...

            ANSWER

            Answered 2021-Dec-16 at 20:50

            The MicrosoftAppId is the clientId that corresponds to the Azure Bot resource. You can find that under the Configuration blade under Settings in the Azure Bot. The MicrosoftAppPassword is your secret key, and is typically stored in the key vault that was created in the same resource group when you created the Azure Bot resource. Depending on your account type and access permissions, you can attempt to retrieve the key from the key vault.

            If you are unable to get the key that way, you can alternatively follow the instructions to deploy a new multi-tenant bot using the Azure CLI. While following these instructions, you will provide your own password, and Azure will give you the AppId in one of its responses. You can then use these values in your REST calls.

            Source https://stackoverflow.com/questions/70381733

            QUESTION

            Bot framework SDK NodeJS and Custom Question Answering: Failed to generate answers: [object Object]
            Asked 2021-Dec-09 at 18:32

            After an upgrade of one of my knowledgebases from QnaMaker to a language resource with custom question answering enable (FKA QnAMaker Managed), my chatbot does not function anymore and returns an error: DialogContextError: Failed to generate answers: [object Object]

            My .env has:

            ...

            ANSWER

            Answered 2021-Dec-09 at 18:32

            The BotFramework SDK does not support the new Custom Questions feature yet. This was causing the error. A feature request is already filed.

            Source https://stackoverflow.com/questions/70261208

            QUESTION

            Refresh token response with missing elements of conversation object
            Asked 2021-Dec-03 at 11:19

            I have been working with Direct Line for a long time, but I'm confused when refreshing tokens. I send a request like:

            ...

            ANSWER

            Answered 2021-Dec-03 at 11:19

            Yes, it was the expected behavior, said the technical team at Microsoft.

            Source https://stackoverflow.com/questions/69751093

            QUESTION

            CallingBotSample does not throw welcome Text with Adaptive Card
            Asked 2021-Dec-02 at 14:01

            I am trying to run this sample, and not having much luck :

            https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-calling-meeting/csharp/

            I created an App on Azure and then used https://dev.botframework.com/bots/new to create a BOT and link it to this App and enabled Calling and configured an ngrok URL so that I can run the project locally under Visual Studio.

            I have configured the App and the sample as explained in the readme and sideloaded it into teams, installing it to the General channel of a nominated Team.

            Although I can make a call to the BOT, and it answers with the wav file in the Visual Studio project (which runs locally via ngrok), I am not seeing the adaptive card in Teams with which to do call control, as shown in the instructions/readme at

            https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-calling-meeting/csharp/README.md

            Edit: I note that CallingBot.OnMembersAddedAsync() which looks like it might be responsible for showing the card, does fire when I add a new member to the team, but then throws the error: System.Exception.Message.get returned "Failed to acquire token for client credentials. (AADSTS700016: Application with identifier '<>' was not found in the directory 'Bot Framework'.

            Any suggestions please - what am I missing

            EDIT 26 Nov 21: configuration as follows

            ...

            ANSWER

            Answered 2021-Dec-02 at 14:01

            The problem here was that although we had set the BOT to be multitenant, we had not, additionally set the App to be multitenant. i.e., by doing :

            • Click Authentication
            • Make sure Supported Account Types is set to “Accounts in any organizational directory (Any Azure AD directory - Multitenant)”.
            • Click Save

            Source https://stackoverflow.com/questions/69879481

            QUESTION

            How can I get response from the server without creating directline object everytime in Microsoft Bot Framework Direct Line JS Client (REACTJS)
            Asked 2021-Nov-19 at 00:29

            I am passing getResponse() function in the useEffect with userInput as dependency array. Everytime a user sends input this function is triggered and I get new directline object created everytime. Problem I am facing is that I am creating bot everytime I send a request to bot. How can I create an object only once on initial render and then use the object to connect with bot.

            Please help!

            Here's the botframework documentation I am following

            Here's the code I wrote to communicate with bot in ReactJS.

            ...

            ANSWER

            Answered 2021-Nov-19 at 00:29

            You should move the creation of the DirectLine client object, as well as subscribing to activity and connectionStatus, out of the function or configure the useEffect() hook to run only once. The client object should be created once and then referenced, as needed. Check out this SO post that discusses how to implement these options.

            Additionally, because you already subscribe to activity and connectionStatus, these should be allowed to run independently so they can function as expected. When the connectionStatus changes, the switch statement will detect this. As the different cases are met, you could assign the status thru useState() and detect the changes to state thru the useEffect() hook.

            Source https://stackoverflow.com/questions/69463908

            QUESTION

            Why does Adaptive Card Input.Date subtract 1 day from the selected date?
            Asked 2021-Nov-05 at 14:52

            Using botframework with msteams channel.

            The adaptive card. Nothing special, just a few textblocks and date inputs. The input values are saved to memory.

            ...

            ANSWER

            Answered 2021-Nov-05 at 14:52

            For more visibility, adding answer here from comment section: The fix should be rolling through the rings, so the change should manifest in public clients in a couple of weeks.

            Source https://stackoverflow.com/questions/69754509

            QUESTION

            Get Botbuilder Signin button cancel response
            Asked 2021-Oct-28 at 18:44

            Crowd,

            I'm struggling on an issue reacting to denied consent in Teams SSO.

            My solution looks like this:

            1. I have a webserver doing some conversational logic written in typescript reachable via ngrok
            2. I have an Azure bot
            3. I have an Azure AD bot registration

            When requesting permissions I'm creating an oauthcard that is sent as an attachment like this:

            ...

            ANSWER

            Answered 2021-Oct-28 at 18:44

            This is expected to be handled by Teams client, If we pass this control to the Bot, the requests would get into a loop and we want to avoid that. For example, user interacts with Bot -> client shows consent pop up -> User cancels -> Bot again initializes Auth request -> client again shows pop up -> ...

            So, this is by design. Teams client will show the consent pop up when user tries to interact with the Bot again.

            Source https://stackoverflow.com/questions/69644955

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install BotFramework

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/stefanotempesta/BotFramework.git

          • CLI

            gh repo clone stefanotempesta/BotFramework

          • sshUrl

            git@github.com:stefanotempesta/BotFramework.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link