botframework-sdk | Bot Framework provides the most comprehensive experience | Bot library
kandi X-RAY | botframework-sdk Summary
kandi X-RAY | botframework-sdk Summary
Bot Framework provides the most comprehensive experience for building conversation applications. With the Bot Framework SDK, developers can build bots that converse free-form or with guided interactions including using simple text or rich cards that contain text, images, and action buttons. Developers can model and build sophisticated conversation using their favorite programming languages including C#, JS, Python and Java or using Bot Framework Composer, an open-source, visual authoring canvas for developers and multi-disciplinary teams to design and build conversational experiences with Language Understanding, QnA Maker and sophisticated composition of bot replies (Language Generation). Checkout the Bot Framework ecosystem section to learn more about other tooling and services related to the Bot Framework SDK.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main entry point .
- Resolve a static package version to npm
- Synchronizes the resulting NPM files from the sourcerc folder to the source .
- Executes a command
- Install and install a package .
- Get the npm path
- Check if the script is installed .
- Parse the name of the package specifier
- Get the rush version
- Removes the package to the install folder .
botframework-sdk Key Features
botframework-sdk Examples and Code Snippets
Community Discussions
Trending Discussions on botframework-sdk
QUESTION
The requirement is printing the FAQ ( QnA Maker result consider as an attachment in Adaptive Card Body ) contents in MS Team Bot ( HR Bot ). The core technology that we are using is C# with ASP.NET Core, Bot Framework SDK.
FAQ Bot Example:
- User is asking payroll related details in MS Team Bot.
- The response contains payroll document details ( Embedded as URL with bold or italic ).
- All responses return as an attachment ( Adding this response in attachment in adaptivae card body and after that posting using send activity ).
- AdaptiveCard version is 1.2
It's a FAQ bot and there are no code changes happening yet for the last two weeks. All these issues were encountered after the chrome latest updates ( Chrome updates).
We have tried the following scenario for the embedded hyperlink issue.
- The Following answer hyperlink is opening on the MS-Teams app
Markdown Syntax in the QnA Maker
- The Following answer is not opening on the MS-Teams app( embedded hyperlink is changed to Bold/Italic)
Answer Markdown Syntax in the QnA Maker
Note:
- Opening MS teams bot in a Firefox Browser, then all scenarios are working.
- Opening MS teams Bot in a Chrome Browser, then the second point is not working as I mentioned above
- The detailed discussion on the same issue posted on github - expecting a quick fix because of customer need.
Enlarge Image Issue:
We are facing a similar issue mentioned in github.
...ANSWER
Answered 2022-Feb-16 at 14:41Adding answer from comment section for visibility:
We checked the embedded hyperlink issue in both Microsoft Teams Desktop client(Version 1.5.00.3276) and web client. The issue is fixed now.
QUESTION
I have searched a bit but didn't found something which is helping me. I created a bot for teams and like described in all examples I am using the appsettings.json to store the ID and the password for the bot (MicrosoftAppId and MicrosoftAppPassword). These are both handled by the framework somehow. But now I want to use an Azure Key Vault to store the secret instead of having the appsettings file.
So I found some examples explaining how to do this in BotFramework V3 with BotAuthentication Attribute and even something for BotFramework V4 here (working link for the linked example here). But even that example is old and does not exist anymore like that.
How am I supposed to do this for a teams bot and c# dotnet 3.1?
...ANSWER
Answered 2022-Jan-04 at 12:46You can use the following method to store the secret value
QUESTION
I want to have a Call button in response Chat over Botframework teams
The doc refer to https://github.com/Microsoft/botframework-sdk/blob/main/specs/botframework-activity/botframework-activity.md#card-action
...An action of type call represents a telephone number that may be called.
ANSWER
Answered 2021-May-05 at 21:19Much of the Bot Framework schema is channel-specific, especially when it comes to cards. If you'd like to know what card actions Teams specifically supports, you should refer to the Teams docs: https://docs.microsoft.com/microsoftteams/platform/task-modules-and-cards/cards/cards-actions
Since Teams does not support call actions, you need to use open-URL instead. Using a tel
URL won't work, but you can read about that problem and a workaround here: how to make callto: works in adaptive card
QUESTION
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.
...ANSWER
Answered 2021-Apr-27 at 12:15That'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 😀
QUESTION
this is my scenario:
- Bot A (made with BotFramework-sdk for Javascript(Node.js)) who receives audio files, calls to Speech Services REST API and get the text from it.
- Bot B (made with BotFrameworkComposer) who has the qna functionality.
I need to set Bot A as a proxy receiving the audio attatchments and asking to Bot B showing the returning answer inside Bot A.
I've already managed to connect those two bots with directline and my problem comes after the conversation is started: in Bot A i'm using the REST API for send messages and websocket to receive the activities using the streamURL.
After i create the websocket i call for on message event to get the messages comming from the Bot B but i need to show them using await context.sendActivity(MessageFactory.text...
ANSWER
Answered 2021-Mar-19 at 18:39Please look over the 80.skills-simple-bot-to-bot sample for guidance on how to connect two bots. The sample demonstrates a "root bot" (your Bot A) calling the "skill bot" (your Bot B) and executing a dialog before returning control back to the root bot. The conversation Id is maintained across the root and skill bot by use of the SkillConversationIdFactory
.
Reference the Implement a skill docs for additional information on setting up and consuming a skill.
QUESTION
My bot has a menu card which I recently discovered doesn't work with teams. I want to use the imBack method to have the message show up in the chat. On their own, I can accomplish this with the following:
...ANSWER
Answered 2020-Aug-21 at 19:35If your card contains no inputs then I suspect you want a hero card and not an Adaptive Card. An imBack in a hero card will automatically work the way you want in both Web Chat and Teams. While Adaptive Cards are meant to adapt to the styles of their hosts, there is no builtin "imBack" feature of Adaptive Cards. String submit actions are a feature of Web Chat, and Bot Framework actions in Adaptive Cards are a feature of Teams. You're trying to get Adaptive Cards to do something that they can't do by themselves, and so you'll need to take your specific channel into consideration if you want to do that.
From this answer: How to rewrite a Adaptive Card Submit Action for MSTeams also working in Web Chat?
My blog post explains that if you want to use a string submit action you will need to do it differently in Web Chat and Teams: https://blog.botframework.com/2019/07/02/using-adaptive-cards-with-the-microsoft-bot-framework/
If you want to have the same submit action work the same way in both channels, it will need to be an object submit action. If you want a string submit action to work on both channels then your bot will need to check which channel the activity came from and react accordingly.
QUESTION
Based on this Release Notes it looks like Skills have been updated to work with adaptive dialogs, and both adaptive and traditional dialogs will now accept all types of activities.
Is there any example code to see how to use Adaptive dialogs in Bf skills for node? I didn't find in samples
...ANSWER
Answered 2020-Jun-11 at 16:33You should use the BeginSkill
action. There is a document here that shows you how to do this in Composer.
QUESTION
I have added a step in Waterfall to get attachment from the user. When testing with BotFramework Emulator i am able to send audio file to the bot and echo back the same file again to the User.Below are the waterfall steps and the code
...ANSWER
Answered 2020-May-11 at 22:14When you get an error that says "message size too big," it means what it says. When it suggests that you use attachments, it means attachments that link to remote HTTP/HTTPS locations rather than embedding data. You should try uploading the uploading the file or using a service that's geared towards transferring audio like the Direct Line Speech channel.
QUESTION
I'm creating a bot and every time the conversation end, I'll to clear the conversation state. For That I'm sending an activity with type endOfConversation
after the last message.
At the method OnMessageActivityAsync
of my bot I've added this code.
ANSWER
Answered 2020-Apr-29 at 12:09"RichMoe" in the link you've provided states that Teams does not support this operation (2017) and I think the same is still true - I don't think Teams has a concept of the "end" of a conversation, in the way that, for example, a support bot on a website would - like any conversation, Teams will try to keep the entire chat history forever.
Perhaps you can explain why you need to "end" the conversation, if there's something related I can try help with.
QUESTION
I have developed a bot by modifying the template provided from https://github.com/microsoft/botframework-sdk. The bot works perfectly in the Bot Framework Emulator.
I have tried to deploy it by using my trial account. it looks like it is lack of some accesses, which i am not quite sure.
my question is, if i plan to deploy this bot into MS teams installed on my computer, can it be fulfilled by using my trial account in Azure? or i need to purchase a paid account?
Regards,
...ANSWER
Answered 2020-Feb-05 at 12:49It's completely possible to run in on Azure, and everything will work 100% fine a free trial account, or of course with a paid account. Be aware that the "web app bot" template will default to a "standard" pricing model in Azure, which will use $70 of your credit, so you should change it to a cheaper price plan immediately, especially if you're just using this for development. There's even a "Free" option (i.e. free forever, even after the Free Trial expires), but then it's limited to how many hours per day the bot will run.
Another option is to host your bot in an Azure Function ("serverless"), but it's a lot more work as the samples and wizards on the internet mostly use the Azure Web App model, so you'd need to manually convert it over to running that way. Certainly you can get started with the free trial though!
As another completely possible option, if this is just for development, then you can run the bot on your local machine, using Ngrok, which creates an real, live "https" address for you, that Teams can accept to work with your bot, even though it's running from your local machine. This is of course great for development/debugging, but not realistic for a live deployment.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install botframework-sdk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page