botbuilder-js | Bot Framework SDK for JavaScript repository | Bot library
kandi X-RAY | botbuilder-js Summary
kandi X-RAY | botbuilder-js Summary
This repository contains code for the JavaScript version of the Microsoft Bot Framework SDK, which is part of the Microsoft Bot Framework - a comprehensive framework for building enterprise-grade conversational AI experiences. This SDK enables developers to model conversation and build sophisticated bot applications using JavaScript. SDKs for .NET, Python and Java (preview) are also available. To get started building bots using the SDK, see the Azure Bot Service Documentation. If you are an existing user, then you can also find out what's new with Bot Framework.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of botbuilder-js
botbuilder-js Key Features
botbuilder-js Examples and Code Snippets
Community Discussions
Trending Discussions on botbuilder-js
QUESTION
When building a Teams extension with the Microsofts Bot Framework SDK, does anyone know how to detect a user's theme setting to produce visually appealing adaptive card layouts?
I am finding that some images will look good when in light mode / default, but look bad in dark mode.
To resolve this, I'd like to set images in the adaptive cards conditionally. However, to do that I'd need the current theme info.
I've searched context and activity and cannot find a way.
I'm hoping to do something like this in the adaptive card (note the if statement)
...ANSWER
Answered 2021-Feb-26 at 06:38I don't think there's anything in the payload that shows the theme, but actually I'd recommend -against- doing this anyway. In a tab, this work's because you get an initial theme (on the context object) as well as the ability to subscribe to a theme change event. That means you're always able to respond to the relevant current theme. With bots, it's different because once you've sent a message, it basically stays permanently in the chat history. If the user changes their theme later on, that same message will be there, and might not fit that theme any more. (technically it's possible to update or delete a previous message, but that's not really practical for -all- messages ever sent, and you wouldn't not if the theme changes anyway as there's no event sent to the bot for this). As a result, you'd need to send messages that work in both themes.
Perhaps using light transparency could work, depending on the image.
QUESTION
I created a JavaScript Bot using BotFramework and Botbuilder-js.
For this bot I use an adaptive dialog. At some point in the dialog I need to send an HTTP-request.
For now, my HTTP-request Step looks like this:
...ANSWER
Answered 2020-Oct-06 at 14:13Since the HttpRequest-Step didn't work, I changed to a CodeAction.
Inside this CodeAction I then do my Http-Requests and work on the results (transforming them or saving them in a dialog variable).
A Code Snippet could look like the following:
QUESTION
I'm using the JavaScript version of the botframework. I've followed the documentation to enable telemetry logging in Application Insights. When I access the logs I can see that custom events are being logged.
The issue is that the bot specific identifiers, such as user_Id, session_Id and conversation_Id are not being logged. This can be seen in the screen capture below
In the applicationInsightsTelemetryClient.js
file there is a function called addBotIdentifiers
. As far as I can tell, it is this function that is responsible for adding the bot specific identifiers.
The first lines of the function look like this:
...ANSWER
Answered 2020-Aug-25 at 09:19Looks like the documentation has a missing line in step 7. We will correct the document ASAP. Meanwhile, please add the below in your index.js following https://github.com/microsoft/BotBuilder-Samples/blob/main/samples/javascript_nodejs/21.corebot-app-insights/index.js#L113
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install botbuilder-js
Then use the following command to build the 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