botframework

Processing answer to reminder dialog

狂风中的少年 提交于 2020-01-25 08:03:31
问题 I would like to start a 'reminder dialog' when sending a proactive message to a user. The dialog is posted. but when processing the answer it goes back to the main dialog. Currently i create my bot as followed: const conversationState = new ConversationState(mongoStorage); const userState = new UserState(memoryStorage); const bot = new DialogAndWelcomeBot(conversationState, userState, logger); // Listen for incoming activities and route them to your bot main dialog. server.post("/api/messages

How to send private message in Microsoft Teams using bot on behalf of user in Teams?

旧时模样 提交于 2020-01-25 06:45:09
问题 We can send private messages from a Microsoft Bot to a Teams user. It appears as a chat between bot and a user. But I need a functionality where a bot can send message on behalf of user in Teams and it would exactly appears as a 1:1 chat of two users in Teams, not as a chat between bot and a user. Thanks 来源: https://stackoverflow.com/questions/58691032/how-to-send-private-message-in-microsoft-teams-using-bot-on-behalf-of-user-in-te

Why does connection get closed when using DirectLine v3 Client (Microsoft Bot Connector)

浪子不回头ぞ 提交于 2020-01-25 00:28:07
问题 I have setup a custom service to connect my Alexa Skill with my Chatbot via DirectLine. Last thursday everything worked fine and I was able to send messages to my Bot by using Alexa (Developer Test tool) and also received responses from my Chatbot. Now I wanted to continue my development but everytime i want to start my conversation I get this exception: An existing connection was forcibly closed by the remote host In short my code looks like this: var client = new DirectLineClient(

What is the correct way to render options list as buttons in choice prompt?

限于喜欢 提交于 2020-01-24 21:33:06
问题 I am trying to present options to the user to chose from in the form of buttons, like this: builder.Prompts.choice( session, "Do you want to raise a ticket for this problem?", "Yes|No", { maxRetries: 3, retryPrompt: 'Sorry, that is not a valid input' }, { listStyle: builder.ListStyle.button } ); However, the web chat channel shows this like so: Obviously there is something wrong in the way it is done, but I'm not sure what. How do I correctly use choice prompts with buttons ? 回答1: You need to

How to use State Accessors to get properties in Bot Framework

徘徊边缘 提交于 2020-01-24 21:08:28
问题 One of the functionalities of my bot is handling a Shopping Cart. The user can add items anywhere in the conversation and then finish shopping to close the product cart. To avoid passing the cart from dialog to dialog I would like to create a UserProfile property in the UserState (The UserProfile property has a ShoppingCart attribute) but I don't quite know how to use this properly. My Main Dialog contains a set of Child Dialogs and some of them need to be able to access the ShoppingCart

Skype bot card images not showing up

倾然丶 夕夏残阳落幕 提交于 2020-01-24 19:40:12
问题 I am sending this post request and all cards like thumbnail, carousel, hero showing up, but the card image is not showing. I tried many different things but nothing worked yet. I am creating a bot in python, everything is working fine accept this issue. These are some links I looked for finding issue. But it seems I am doing everthing correctly. Any help? https://docs.botframework.com/en-us/skype/chat/#navtitle { 'text': 'testinglookssuccessful', 'type': 'message/card.carousel', 'attachments'

How to Implement OAuth Prompt Authentication for Virtual Assistant Bot with Skills

血红的双手。 提交于 2020-01-24 13:08:05
问题 I followed step-by-step docs to add authentication to a sample skill as part of a virtual assistant bot created via the Virtual Assistant Template. I have created an Azure Active Directory V2 app registration for the skill and added an OAuth connection linked to that app in the skill bot in Azure portal. I have also updated OAuthConnections in appsettings.json of the skill. appsettings.json "oauthConnections": [ { "name": "calendarconnection", "provider": "Azure Active Directory v2" } . . .

Bot Framework v4 - Bot Initiate Conversation

孤者浪人 提交于 2020-01-24 00:47:07
问题 I am developing a bot for Microsoft Teams using the Bot Framework SDK v4 for NodeJS. Is there a way that the bot can automatically initiate a conversation in a channel, rather than user initiating the conversation? My bot works fine when the user initiates the conversation. Any suggestions on how I can proceed with this? 回答1: MS Teams calls that a "Proactive Message" (note: Bot Framework generally defines a "proactive message" as sending a user a message not related to current conversation,

Microsoft Bot Framework - The Bot State API is deprecated. Please refer to https://aka.ms/I6swrh for details on how to replace

冷暖自知 提交于 2020-01-24 00:20:45
问题 I installed the teams bot from this link https://github.com/OfficeDev/BotBuilder-MicrosoftTeams/tree/master/Node/samples inside of Teams and when I start testing the bot by messaging with " hello " in Teams I get the error below; The Bot State API is deprecated. Please refer to https://aka.ms/I6swrh for details on how to replace with your own storage. Error: GET to 'https://state.botframework.com/v3/botstate/msteams/conversations/19%3A2771d14b8fa2450ca52f97b941c3652f%40thread.skype

Microsoft Bot Framework - The Bot State API is deprecated. Please refer to https://aka.ms/I6swrh for details on how to replace

给你一囗甜甜゛ 提交于 2020-01-24 00:20:31
问题 I installed the teams bot from this link https://github.com/OfficeDev/BotBuilder-MicrosoftTeams/tree/master/Node/samples inside of Teams and when I start testing the bot by messaging with " hello " in Teams I get the error below; The Bot State API is deprecated. Please refer to https://aka.ms/I6swrh for details on how to replace with your own storage. Error: GET to 'https://state.botframework.com/v3/botstate/msteams/conversations/19%3A2771d14b8fa2450ca52f97b941c3652f%40thread.skype