azure-bot-service

Sending Proactive Messages from Azure functions to botservice - node

泄露秘密 提交于 2020-05-12 09:11:20
问题 I am using botframework v4, but coming over from v3, I have not found any documentation that is similar to the code I use below but for v4, regarding sending proactive messages from Azure Function App Below is the code I previously used but am having trouble adapting: var builder = require('botbuilder'); // setup bot credentials var connector = new builder.ChatConnector({ appId: process.env.MICROSOFT_APP_ID, appPassword: process.env.MICROSOFT_APP_PASSWORD }); module.exports = function

Bot Framework REST API send proactive message to multiple users with one conversation ID

不羁岁月 提交于 2020-04-17 22:06:50
问题 I'm wondering if there is a way to send 1:1 message to users using only one conversation id? So instead of looping through each user and generating a conversation id, I'm trying to create a request to generate a conversation ID with multiple members. See payload below: POST /v3/conversations { "activity": { "type": "message", "channelId": "msteams", "text": "Testing" }, "bot": { "id": "215000000-00000-0000-00000", "name": "Test", "aadObjectId": null, "role": null }, "isGroup": false, "members

Bot Framework API Create Conversation With Multiple Members

霸气de小男生 提交于 2020-04-17 20:37:30
问题 I'm trying to create a conversation with multiple members and generating a conversation id. My goal is to have the bot message each member listed in the "members" key one-by-one. It works exactly as it should when I only put one item in the "members" key and I am able to generate a conversation id. However, I'm getting an error when I put 2 or more items in the "members" key even though it's supposed to be an array of members. POST /v3/conversations { "activity": { "type": "message",

ChatBot retrieve data from SharePoint On Premise Issue

谁说我不能喝 提交于 2020-03-03 06:56:31
问题 I've developed a chatbot that communicates with SharePoint on Premise, When I run the chatbot in Emulator its work. But When I run at Web that hosted outside of SharePoint, it does not work. Herewith my screenshot of Error On Azure, From the result of Error is starting from XMLReader and SyndicationFeed Success in Local Emulator Herewith my Souce Code. private async Task ProcessRSSAsync(ITurnContext<IMessageActivity> turnContext, LuisResult luisResult, string intent, CancellationToken

ChatBot retrieve data from SharePoint On Premise Issue

为君一笑 提交于 2020-03-03 06:55:52
问题 I've developed a chatbot that communicates with SharePoint on Premise, When I run the chatbot in Emulator its work. But When I run at Web that hosted outside of SharePoint, it does not work. Herewith my screenshot of Error On Azure, From the result of Error is starting from XMLReader and SyndicationFeed Success in Local Emulator Herewith my Souce Code. private async Task ProcessRSSAsync(ITurnContext<IMessageActivity> turnContext, LuisResult luisResult, string intent, CancellationToken

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

No response from Directline for Azure Bot Services and blocked by CORS policy

天涯浪子 提交于 2020-02-08 09:57:15
问题 I had use the Bot Services sample from Microsoft Sample for Bot Services. After I debug, the web page does not shown any thing. Here with my source code: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Web Chat: Minimal bundle with Markdown</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <script src="https://cdn.botframework.com/botframework-webchat/latest/webchat-minimal.js"></script> <style> html, body { height: 100%; } body { margin

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(

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

How do I add multiple ComponentDialogs?

你。 提交于 2020-01-16 19:04:27
问题 I made a new ComponentDialog by creating a class for it that extends ComponentDialog like so: public class GetPersonInfoDialog : ComponentDialog { protected readonly ILogger Logger; public GetPersonInfoDialog(IConfiguration configuration, ILogger<GetPersonInfoDialog> logger) : base("get-person-info", configuration["ConnectionName"]) { } // code ommitted } } Then I added it in Startup.cs: public void ConfigureServices(IServiceCollection services) { // ... services.AddSingleton<GreetingDialog>(