botframework

Set time of Activity.Typing animation

给你一囗甜甜゛ 提交于 2020-02-25 13:53:58
问题 I'm trying to create some animation during the time when I fetch the data from a server. "Typing" activity seems to be reasonable but it works only for ~4 seconds : Activity reply = activity.CreateReply(); reply.Type = ActivityTypes.Typing; reply.Text = null; ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl)); await connector.Conversations.ReplyToActivityAsync(reply); I was trying to do async listening: while (!_fetchEnded) { await connector.Conversations

Set time of Activity.Typing animation

末鹿安然 提交于 2020-02-25 13:53:09
问题 I'm trying to create some animation during the time when I fetch the data from a server. "Typing" activity seems to be reasonable but it works only for ~4 seconds : Activity reply = activity.CreateReply(); reply.Type = ActivityTypes.Typing; reply.Text = null; ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl)); await connector.Conversations.ReplyToActivityAsync(reply); I was trying to do async listening: while (!_fetchEnded) { await connector.Conversations

Set time of Activity.Typing animation

梦想与她 提交于 2020-02-25 13:52:15
问题 I'm trying to create some animation during the time when I fetch the data from a server. "Typing" activity seems to be reasonable but it works only for ~4 seconds : Activity reply = activity.CreateReply(); reply.Type = ActivityTypes.Typing; reply.Text = null; ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl)); await connector.Conversations.ReplyToActivityAsync(reply); I was trying to do async listening: while (!_fetchEnded) { await connector.Conversations

MSBot not responding on on opening the bot. No Welcome messaged received

て烟熏妆下的殇ゞ 提交于 2020-02-14 02:24:12
问题 I have created and deployed bot using a sample bot Welcome-Bot example given in Azure portal docs. This bot shows a welcome message whenever the bot is joined or started. It shows welcome message when I test it on emulator. But when I deploy it to Azure and test in Test Web App chat or Teams it doesn't show me Welcome message. It show me the welcome message when I query something, i.e. it gives two responses : one is the welcome message and other one is the reply of the query asked . 回答1: For

Send a typing indicator in bot-framework v4 using DirectLine and webchat (Node.js)

…衆ロ難τιáo~ 提交于 2020-02-14 01:06:53
问题 The official docs for Microsoft bot-framework SDK v4 do not demonstrate how to send a typing indicator (whereas v3 has these instructions). I'm using DirectLine and botframework-webchat. How do I do this? Thanks! 回答1: You can send a typing indicator by sending an activity with the typing type. Read more about how to send a typing indicator. await context.sendActivities([ { type: ActivityTypes.Typing }, { type: 'delay', value: 3000 }, { type: ActivityTypes.Message, text: 'Finished typing' } ])

how to send a message to direct line chat bot from the UI using JavaScript

梦想的初衷 提交于 2020-02-07 01:58:52
问题 I'm developing a chat bot (v4 using MS Azure bot framework & QnAmaker), I've added a feature in that, i.e. while the users starts typing the questions, the bot will get prompt and show the relevant questions form the QnAmaker , and the user can select one of them , then that particular question will sent to the bot. Following is the full code which I'm using, <html> <body> <div id="webchat" role="main"></div> <script> (async function () { const styleOptions = { hideUploadButton: true,

Bot works on one Microsoft Teams Account but not on the other

我的未来我决定 提交于 2020-02-06 19:04:26
问题 I have 2 different Microsoft Teams Accounts that are not linked in any way. On one account I was able to sideload my bot and if I chat with my Bot in an Teams Channel my bot does Answer. Also it answeres me if I private message it. On the other account I also sideloaded my bot but my Bot does not react if I message him in an Teams Channel. But it answeres me if I private message it. I created both bots via App Studio in Teams. Now I've noticed a difference in App Studio and I think this is

Bot works on one Microsoft Teams Account but not on the other

◇◆丶佛笑我妖孽 提交于 2020-02-06 19:04:11
问题 I have 2 different Microsoft Teams Accounts that are not linked in any way. On one account I was able to sideload my bot and if I chat with my Bot in an Teams Channel my bot does Answer. Also it answeres me if I private message it. On the other account I also sideloaded my bot but my Bot does not react if I message him in an Teams Channel. But it answeres me if I private message it. I created both bots via App Studio in Teams. Now I've noticed a difference in App Studio and I think this is

microsoft bots to teams using nodejs fails with missing activityid when updating the same activity

戏子无情 提交于 2020-02-06 08:01:50
问题 My code has a simple card carousel which has action button like below: actions = [ { "type": "Action.Submit", "title": "Qualify", "data": { "action" : "qualify_lead" } }, { "type": "Action.OpenUrl", "title": "Retire", "url": "{viewUrl}" }, { "type": "Action.ShowCard", "title": "Add Note", "card": this.noteCard(item.LeadId, "leads") } ] I am having a method to handle qualify_lead action like below async qualifyLead(context:any){ console.log("in qualifyLead:" + JSON.stringify(context.activity))

Detect bot application open event

痞子三分冷 提交于 2020-02-06 07:53:25
问题 I'm working on a message extension using bot framework v3 (c#). When i install the application in teams and open the bot in 1-1 chat with bot, and send message i'm getting a welcome text. But i want the welcome text as soon as i open/ access the bot without sending any message to the bot, so i there any way to achieve this. For welcome text on message event i'm using activity.GetActivityType() == ActivityTypes.Message So similarly is there any activity type to get bot access event. 回答1: If