botframework

How to “merge” or “transform” JSON documents in Azure Cosmos DB

爷,独闯天下 提交于 2020-06-17 12:40:29
问题 I'm setting up a Chatbot with the Microsoft Bot Framework and Azure. I want to save my "UserState" in a database in order to easily analyze the user data. I managed to save my userState in form of JSON documents in Azure Cosmos DB. The problem is that each interaction with the bot creates a new "document" in a "collection" in Cosmos DB. How can I easily merge the data (data structure is consistent) and in the best case have the data in some kind of table? The tool I want to use for analyzing

Adaptive card in teams not workig - REST API

久未见 提交于 2020-06-17 09:42:39
问题 I created a bot ( nodejs server) for teams - through bot framework. I'm trying to send adaptive card that I created through: adaptive cards designer and I get error : {"code":"BadArgument","message":"ContentType of an attachment is not set"} The request body : { "type": "message", "from": { "id": "xxxxxx" }, "conversation": { "id": "xxxxxx" }, "recipient": { "id": "xxxxx" }, "replyToId": "xxxxx", "text": "some text", "attachments": [ { "type": "AdaptiveCard", "$schema": "http://adaptivecards

Sending proactive messages to ms teams from azure deployed bot

与世无争的帅哥 提交于 2020-06-16 12:48:49
问题 I've already deployed the bot to azure, when connecting to the ms team channel in azure, i'm able to ping the bot and receive messages which is good. I've also added a proactive messaging in the bot where a message will be triggered every one minute in the channel. Its working in the emulator, however its not working in webchat and MS teams: The notifier controller is not being triggered. Could you please help me on that? I've uploaded the code in GITHUB: https://github.com/nivinsunathree

How to differentiate Bot to user AND user to Bot messages using middleware in bot builder sdk v4?

百般思念 提交于 2020-06-15 06:22:07
问题 I have implemented a middleware in sdk V4 Bot to intercept each message between bot & user and log that custom mongo Db. I am trying to implement similar concept for Bot built using SDK v4. Looks like I can use following piece of code to add a middleware but, not sure how to differentiate message between bot to user & user to bot. V3 bot code bot.use({ botbuilder: function (session, next) { logUserConversation(session) next() }, send: function (event, next) { logBotsConversation(event) next()

In bot framework v4, how to implemente rating card with comment box and submit button

廉价感情. 提交于 2020-06-12 12:22:35
问题 I have made a bot framework V4 using C#. I have made star rating in adaptive card but I need to add comment box and submit button in it,but my submit button is not working.In debugging mode its not hitting the any method of bot.Kindly help me. I am also attaching the code of my rating card having comment box and submit button in it. { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "color": "Accent", "text": "Rate your experience!" }, { "type":

In bot framework v4, how to implemente rating card with comment box and submit button

…衆ロ難τιáo~ 提交于 2020-06-12 12:18:02
问题 I have made a bot framework V4 using C#. I have made star rating in adaptive card but I need to add comment box and submit button in it,but my submit button is not working.In debugging mode its not hitting the any method of bot.Kindly help me. I am also attaching the code of my rating card having comment box and submit button in it. { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "color": "Accent", "text": "Rate your experience!" }, { "type":

In bot framework v4, how to implemente rating card with comment box and submit button

南笙酒味 提交于 2020-06-12 12:14:08
问题 I have made a bot framework V4 using C#. I have made star rating in adaptive card but I need to add comment box and submit button in it,but my submit button is not working.In debugging mode its not hitting the any method of bot.Kindly help me. I am also attaching the code of my rating card having comment box and submit button in it. { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "color": "Accent", "text": "Rate your experience!" }, { "type":

Add bot (ms-botbuilder) to the MS Teams Team/Channel programmatically

让人想犯罪 __ 提交于 2020-06-08 06:40:10
问题 I'm looking to find a way to add a bot to a team that this bot just created. Was able to create a group via MS Graph by the bot JS-SDK graphClient.api("/groups").post({ displayName: "Some Name", mailNickname: "Name without Spaces", description: "Some Description", visibility: "Private", groupTypes: ["Unified"], mailEnabled: true, securityEnabled: false, "members@odata.bind": members, // array of url strings of members "owners@odata.bind": owners, }); members and owners arrays of strings

How to add AutoComplete/AutoSuggestion in Microsoft botframework webchat using React.js

末鹿安然 提交于 2020-06-08 06:15:06
问题 I'm trying to add autosuggestion/autocomplete function in my bot-framework web chat(v-4) using react js. In which i want to fetch input data from azure table. Heard that its not recommended to use j-query inside React js. Looking for a solution to add this. I'm looking for a solution like in the below image, PFA. And the code which i used for React is attached below, React.js file import React from 'react'; import { DirectLine, ConnectionStatus } from 'botframework-directlinejs'; import

How to add AutoComplete/AutoSuggestion in Microsoft botframework webchat using React.js

只谈情不闲聊 提交于 2020-06-08 06:13:06
问题 I'm trying to add autosuggestion/autocomplete function in my bot-framework web chat(v-4) using react js. In which i want to fetch input data from azure table. Heard that its not recommended to use j-query inside React js. Looking for a solution to add this. I'm looking for a solution like in the below image, PFA. And the code which i used for React is attached below, React.js file import React from 'react'; import { DirectLine, ConnectionStatus } from 'botframework-directlinejs'; import