botframework

Microsoft Bot Framework bot not working in Microsoft Teams when using ngrok

和自甴很熟 提交于 2019-12-24 12:22:15
问题 My Bot is working in the Emulator and through other channels but it's not working on Microsoft Teams. I able to see other channels requests and responses statuss in ngrok. But when using Microsoft Teams, request are not even hitting my server URL (ngrok). App ID : dfc6ac0d-e805-4a40-9fd3-7c4678b7ae88 (It's not duplicate of Unable to use bot from Teams) 回答1: Hello: I was able to access the Bot and get a response (character count of my message.) Perhaps you didn't enable sideloading of bots in

List Template for FB using Bot framework node.js V4

不打扰是莪最后的温柔 提交于 2019-12-24 11:53:27
问题 Can anyone please help me to include list view in Facebook Channel using Bot framework? I saw examples as shown here List template. I don't know whether this is the exact way in which we need to give the attachments. Also I didn't know the equivalent for sourceEvent method in Bot framework v4. Another useful link is as follows FB Messenger Message Template. See the image given below. I need to put the link for the image and once we click the link it should open another page also the image

Bot framework Direct Line 502 error

◇◆丶佛笑我妖孽 提交于 2019-12-24 11:16:23
问题 I have been trying to connect to my bot via DirectLine using this code on an html. <!DOCTYPE html> <html> <head> <link href="https://cdn.botframework.com/botframework-webchat/latest/botchat.css" rel="stylesheet" /> </head> <body> <div id="bot"/> <script src="https://cdn.botframework.com/botframework-webchat/latest/botchat.js"></script> <script> BotChat.App({ directLine: { secret: 'xxxxx' }, user: { id: 'userid' }, bot: { id: 'botid' }, resize: 'detect' }, document.getElementById("bot")); <

I am using Microsoft Bot Builder .NET SDK for receiving an attachment through Emulator for now

删除回忆录丶 提交于 2019-12-24 11:12:22
问题 I am using Bot builder SDK for .NET by Microsoft for my project and i want to receive an attachment from Emulator and proceed with the flow. I am getting issue when i attach any file from emulator i am not getting content of the file uploaded and Content URL is also some localhost URL which i am not able to proceed. Code: public virtual async Task MessageReceivedAsync(IDialogContext context, IAwaitable<IMessageActivity> result) { var message = await result; var reply = context.MakeMessage();

Microsoft Bot Framework IDialogContext.Call() not working when using Slack

对着背影说爱祢 提交于 2019-12-24 10:59:21
问题 I have a simple child dialog call in my bot using IDialogContext.Call(). When user types "new project" the following code is called: ... context.Call(new NewProjectDialog(), NewProjectConfirmed); ... NewProjectDialog() just asks for a project name and then saves it before returning to NewProjectConfirmed() [Serializable] public class NewProjectDialog : IDialog<Project> { public async Task StartAsync(IDialogContext context) { await context.PostAsync("What is the name of the project?"); context

Microsoft Bot Connector - get activity id from response after sending message

懵懂的女人 提交于 2019-12-24 10:55:23
问题 I'm working on a bot for MS Teams using Microsoft's bot framework (using the .NET API). What I am trying to do right now is to retrieve the Activity.Id of a message the bot has just sent. When the bot receives a message, an Activity.Id is included and I was hoping there was a way to retrieve that when sending a message. I am currently sending using: var response = connector.Conversations.SendToConversation((Activity)activity); connector being an instance of Microsoft.Bot.Connector

How to stop formflow dialog from re-prompting user when validation fails?

眉间皱痕 提交于 2019-12-24 10:48:21
问题 I have a formflow dialog in which one of it's properties is this... [Describe("Car Mileage")] [Prompt("Cool! What's the mileage of the car?")] [Template(TemplateUsage.NotUnderstood, "Sorry, I didn't understand that mileage value. Can you enter it again please?")] public string Mileage { get; set; } Ignore the [Template(TemplateUsage.NotUnderstood,... for now, I'll come back to that. The dialog is built using the following... var form = builder .Field(new FieldReflector<CarValuationDialog>

Azure Function for Bot Framework C#

别说谁变了你拦得住时间么 提交于 2019-12-24 10:16:44
问题 I've made a bot using BotFramework, and I want to have an azure function triggered every 5 minutes (for example). And when it's triggered my bot must be notified. But I have no idea how to do this, I read this https://docs.botframework.com/en-us/azure-bot-service/templates/proactive/ but the thing is he didn't use a Timmer Trigger Azure Function but a Queue Trigger. I tryed to do something like that : using System; using System.Net; using System.Net.Http; using Microsoft.Azure.WebJobs.Host;

How to forward conversation from formflow to QnaDialog

南笙酒味 提交于 2019-12-24 09:40:02
问题 Hi Guys im new to bot development, and im trying to figure out how can i forward the conversation to a QnaDialog after formflow. My formflow simply asks the user his/her name after he/she was identified, it would simply say hi (username) afterwards what I want is that any message afterwards would be forwarded to a QnaDialog already since the user was already identified. I tried adding a checker once to flag that a greeting was done already, however since you are only allowed one Conversation

Send an image attachment in Microsoft Azure Chatbot

家住魔仙堡 提交于 2019-12-24 09:23:55
问题 I have a created a Chat bot using Microsoft Azure bot service and LUIS. With my bot which was trained on LUIS, I'm able to receive text messages. I have connected the bot to Skype channel. I don't know how to return a image attachment as an answer to a message. I heard some of the Microsoft bot framework can send image as an attachment and I'm not sure about Azure bot service. Sample code: var recognizer = new builder.LuisRecognizer(LuisModelUrl); var intents = new builder.IntentDialog({