botframework

Adaptive Cards as Formflow prompts

三世轮回 提交于 2020-02-05 05:29:07
问题 I made a bot in C# using BotFramework, Adaptive Cards, LUIS and FormFlow. It/he is responsible for managing meetings in a team. return new FormBuilder<MeetingRequestInput>() ... .Field( nameof(MeetingRequestInput.RequestedDate), "What date would you like to meet?" ) ... .Build(); During tests we noticed problems when a user was supposed to type the desired meeting date/time (people would type dd/mm/yy , mm/dd/yy , dd-mm-yy , only dd , etcetra) so we would like to use some kind of "Form" with

Using Bot State Accessors Inside Dialogs

自古美人都是妖i 提交于 2020-02-03 10:24:46
问题 I'm a few days in on the Bot Framework so very new. I've been trying to arrive at an understanding of managing the state and to be honest I'm just not getting it. It seems the framework and advice on this has changed a lot recently and there doesn't appear to be any clear advice or samples. This page Says: Save the information to bot state. This would require you to design your dialog to have access to the bot's state property accessors. But there are no examples of how to achieve this. The

Detect end of conversation and ask for a feedback in azure Bot

半世苍凉 提交于 2020-02-01 09:12:34
问题 I am creating a chat bot using azure bot framework in Nodejs. QnA maker to store question answers and one LUIS app. Now I want to detect end of conversation(either by checking no reply from long time or refreshing a webpage) and add feedback card at the end of conversation. 回答1: You can achieve this by use of the onEndDialog method and the use of a separate class to manage the feedback process. First, I have a component dialog that imports the feedback.js file and calls the associated onTurn(

Is it possible to get user email from MS Teams with a Bot using SDK4?

痴心易碎 提交于 2020-01-30 12:22:05
问题 I'm using C# and Bot Framework SDK4 and need to get the user email from a 1:1 chat with my bot. Is it possible? All I can seem to get is ID and full name. I have tried the things listed here https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/bots/bots-context but the teamsContext is just returning null. ITeamsContext teamsContext = turnContext.TurnState.Get<ITeamsContext>(); string incomingTeamId = teamsContext.Team.Id; string incomingChannelid = teamsContext.Channel.Id; string

Adaptive Card clears input on submit

大城市里の小女人 提交于 2020-01-30 11:43:10
问题 From a Microsoft Teams bot I send an Adaptive Card with input fields and a Submit action. When the user clicks Submit I receive the data entered but the form fields are cleared. Why is this? What am I doing wrong? This behavior is extremely annoying as I can't verify the input and ask the user to correct it. This happens in the desktop Teams app, Teams in a browser, Teams webchat in a web page and the Bot Emulator. In the Emulator it suffices for the field to loose focus. In case it matters I

Sending messages in Teams with a bot on behalf of a user

筅森魡賤 提交于 2020-01-25 09:28:06
问题 I have an app containing a bot on Microsoft Teams, built using the bot-framework. I need my application to be able to let users send message to a specific channel and thread. I can do this with my bot using the "proactive messaging" ability, but the message is then send by the bot, not the user. Is there any way to achieve this as if the user sent the message? 回答1: You don't need to use the bot. Just try this Microsoft Graph API endpoint (beta version): POST https://graph.microsoft.com/beta

Is it possible to set an adaptive card with date input in a waterfall dialog?(Using Bot Framework on Web and Teams)

白昼怎懂夜的黑 提交于 2020-01-25 08:57:10
问题 Is it possible to set an adaptive card with date input in a waterfall dialog?(Using Bot Framework on Web and Teams). What I need is user to select a date using adaptive cards Input.Date feature(Which is working everywhere except in Waterfall Dialogues) ie I need this adaptive card(which is already created as json in a local path) and return as context.PromptAsync() to next waterfall step. Thanks, Gokul. 回答1: it's possible. you can design date-input card schema on https://adaptivecards.io

typing indicator in chatbot

扶醉桌前 提交于 2020-01-25 08:32:28
问题 Typing indicator for bot framework in nodejs Hi, i am working with microsoft bot framework v4, node js, i need to implement typing in chat bot. the bot should respond like(...) as response before sending the original response. i have seen the code here Send a typing indicator in bot-framework v4 using DirectLine and webchat (Node.js) code is working fine in local but when i deploy it to azure, typing(...) is not coming, i can see a delay for 3 secs in response in azure . my code await step

issue of Generate a Direct Line token

别来无恙 提交于 2020-01-25 08:07:37
问题 When I try to get the direct line Token according to the Microsoft Document. The Error shown in Postman. { "error": { "code": "BadArgument", "message": "Missing token or secret" } } Here with my query https://directline.botframework.com/v3/directline/tokens/generate?Authorization=Bearer EWXpigVssN0.4b2ePfz9L_E3mMM37be6yBGXdgI2GUul7Pm8aRNcUeg&content-Type=application/json 回答1: You are sending a GET request but what you need to do is send a POST request with the Authorization set to a Bearer

Bot is not responding to @Mention when sending message using Graph API

旧巷老猫 提交于 2020-01-25 08:06:45
问题 I have created and deployed a bot in Microsoft Teams. Bot Works properly and responds when user talks to the bot using @Mention (e.g. @mybot) in a channel. I just tried to send message to the bot using graph API call: https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages Method : POST Content-type : application/json Body : "body": { "contentType": "html", "content": "Hello World <at id=\"0\">standupbot</at>" }, "mentions": [ { "id": 0, "mentionText":