botframework

Test a bot functionality in Teams using ngrok

白昼怎懂夜的黑 提交于 2021-02-10 07:22:33
问题 I'm developing a bot using the Bot Framework and Azure for Microsoft Teams and I'll to develop and test my code directly in MS Teams using ngrok. In the settings of the bot I've set the message endpoint to the URL I get from ngrok and added /api/messages . But every time I want to send a message from Teams, I get a 401 unauthorized response. How could I authorize ngrok to send messages? Update: Form an answer of @Hilton Giesenow I've checked the appSettings.json file and everything is correct

BotFramework-Webchat Middleware for renderMarkdown

扶醉桌前 提交于 2021-02-10 06:15:37
问题 I'd like to add renderMarkdown using the React component in the Bot framework. I am able to add through HTML like below and it's working as expected but my requirement is to add the same feature using the react. <!DOCTYPE html> <html> <head> <script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script> <script src="https://www.acai-hub.com/js/markdown-it.min-8.4.2.js"></script> <style> html, body { height: 100%; } body { margin: 0; } #webchat { height: 100%;

How to send a message to user if the bot is idle for 5 mins in botframework v4

浪子不回头ぞ 提交于 2021-02-10 05:16:49
问题 I want to send a prompt (I am waiting) if I don't receive any message from the user after say 5 mins in directline webchat channel. It is Demo bot, so I am using local memory storage. Any help would be appreciated. 回答1: There are a couple of ways you can handle this. If you are calling this via script (using something like the botframework-webchat option using Directline channel), you can check out this answer on SO which shows you how to set it up in your HTML file. If you want to implement

How to send a message to user if the bot is idle for 5 mins in botframework v4

我们两清 提交于 2021-02-10 05:15:27
问题 I want to send a prompt (I am waiting) if I don't receive any message from the user after say 5 mins in directline webchat channel. It is Demo bot, so I am using local memory storage. Any help would be appreciated. 回答1: There are a couple of ways you can handle this. If you are calling this via script (using something like the botframework-webchat option using Directline channel), you can check out this answer on SO which shows you how to set it up in your HTML file. If you want to implement

Carousel in adaptive card

元气小坏坏 提交于 2021-02-08 15:16:35
问题 Please guide me to create carousel adaptive card in MS bot framework. I am using .Net sdk.I tried using adaptive card designer to design but couldn't do it. 回答1: Well, Adaptive card designer helps you to create template for one single card. In you case, based on your list create attachment from the created template in a loop and add each of the generated attachments to Activity.Attachments. if(listOfReservationCardsData.Any()) { foreach (var checkInStatusCardData in listOfReservationCardsData

Carousel in adaptive card

牧云@^-^@ 提交于 2021-02-08 15:13:16
问题 Please guide me to create carousel adaptive card in MS bot framework. I am using .Net sdk.I tried using adaptive card designer to design but couldn't do it. 回答1: Well, Adaptive card designer helps you to create template for one single card. In you case, based on your list create attachment from the created template in a loop and add each of the generated attachments to Activity.Attachments. if(listOfReservationCardsData.Any()) { foreach (var checkInStatusCardData in listOfReservationCardsData

Create python proactive messaging with microsoft bot framework

你说的曾经没有我的故事 提交于 2021-02-08 12:13:03
问题 What are the steps to create a push notification/proactive messaging bot using Python with microsoft bot framework? Since there's no official documentation yet, I don't really know where to start. I have imported the following: from botbuilder.schema import Activity, ActivityTypes, ConversationReference How can it be used and what's a very simple example? 回答1: I worked a sample demo which based on state management sample for you . Pls follow the setps to make it work : 1.Adding code below

How to send SMS (using Twilio channel) from Microsoft Bot Framework?

我的未来我决定 提交于 2021-02-08 09:43:11
问题 Currently my bot is on Facebook messenger, used by employees. I'd like my bot to send one SMS to a person to welcome him / her to our team and with its credentials. I know Microsoft Bot Framework integrates Twilio, so I integrated Twilio channel following this: https://docs.microsoft.com/en-us/bot-framework/channel-connect-twilio, so I have a phone, and everything is well configured because I can send manually SMS (from the Twilio's dashboard), it works. Problem is that I don't know how to

Microsoft bot builder deep linking

 ̄綄美尐妖づ 提交于 2021-02-08 07:50:13
问题 Can we do deep linking for Skype or Slack with the Microsoft Bot Framework? Specifically, I need a link that would allow me to pass custom parameters to my bot at the time of invocation, as we can do for Telegram such as https://telegram.me/UniversalAgent1Bot?start=30|1 回答1: See https://www.skype.com/en/developer/create-addbot-button/ for details on how to create a button to add a bot to contacts on web. If you want to create a deep link for iOS or Android, you can use this URI: skype:28:bot

Microsoft bot builder deep linking

六月ゝ 毕业季﹏ 提交于 2021-02-08 07:49:50
问题 Can we do deep linking for Skype or Slack with the Microsoft Bot Framework? Specifically, I need a link that would allow me to pass custom parameters to my bot at the time of invocation, as we can do for Telegram such as https://telegram.me/UniversalAgent1Bot?start=30|1 回答1: See https://www.skype.com/en/developer/create-addbot-button/ for details on how to create a button to add a bot to contacts on web. If you want to create a deep link for iOS or Android, you can use this URI: skype:28:bot