botframework

web chat bot not responding

[亡魂溺海] 提交于 2019-12-13 20:18:06
问题 My .net BOT hosted in web chat is neither responding nor showing any error at application insight.This error had been earlier some months ago but at that time it gave "Gateway timeout" error and next day it started working automatically.But this time it showed same "Gateway timeout" error but doesn't get started even after 1 day and now it is neither responding nor showing error.Meantime my azure subscription plan changed from S1 to F1 but now I changed it to S1 again. 来源: https:/

JwtToken cannot be sent - Microsoft Azure Bot - LUIS

*爱你&永不变心* 提交于 2019-12-13 20:14:42
问题 I want to start programming Bots for Skype, Slack etc. I have setup a Bot in the Microsoft Azure Portal and enabled continuous deployment with Visual Studio Team Services (VSTS) and Visual Studio (VS). Which I just used to get the code from Azure to my computer but want to use in the future to deploy as well. When I run the stock Bot from Azure locally in VS, with only the LUISAppId and APIKey filled in, it fails when I send a message to it. This is the error code: iisexpress.exe Warning: 0 :

Skip displaying form fields based on user confirmation

妖精的绣舞 提交于 2019-12-13 20:07:58
问题 I have some 10 properties in a class and based on those properties I have a form that asks for user input. I want to know if there's any mechanism that after initial 4-5 questions I ask user if he/she wants to ans more and if reply is yes then next set of fields/questions are asked. I tried doing it with SetDefine but issue with SetDefine is that its called with each field so it asks the user to confirm with each fiels but I want it to only confirm with 1st optional field and based on the

How to handle state and configure cosmos db storage in a nested dialog? (bot framewrok v4)

二次信任 提交于 2019-12-13 19:30:27
问题 I am trying to build a chatbot with nested dialogs which is supposed to gather information from the user and store it in Azure CosmosDB. The dialog worked fine until I implemented the Cosmos DB storage. Now, with the CosmosDB storage the dialog loops on the first task in the first dialog, instead of continuing. How can I solve this problem? Beginning with the dialogs, and how it was before implementing CosmosDB storage. I basically followed the code in this sample 43.complex-dialog. Then,

Attach .txt, .pdf or zip file with skype bot using botframework rest-api

怎甘沉沦 提交于 2019-12-13 19:16:39
问题 I was trying to attach .txt and .pdf file to skype bot using rest-api but got this error: { "error": { "code": "BadArgument", "message": "Unknown attachment type" } } Meanwhile I found Rest API attachment error, can anyone confirm if pdf or text file attachment are restricted or not as there is no clear declaration in their api? I tried with this format: { "type": "message", "recipient": { "id": "xxxxxxxJ0niMZOII93xxxxL1E" }, "text": "Here's a picture of the duck I was telling you about.",

Get raw voice from speech- BotBuilder v4

妖精的绣舞 提交于 2019-12-13 17:23:55
问题 Working on the Bot Builder, I'm looking for a solution where I could get the realtime speech/audio of the speaker who spoke to the bot as attachment. Is it possible? Following is my code. public async Task OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken = default(CancellationToken)) { if (turnContext.Activity.Type == ActivityTypes.Message) { // Get the conversation state from the turn context. var state = await _accessors.CounterState.GetAsync(turnContext, () => new

How do I send a value from a Microsoft Bot to Javascript?

蓝咒 提交于 2019-12-13 17:22:01
问题 I need to send a string from the MessagesController in a Microsoft Framework Bot to a script written in JS. The string contains the value of a secret for a bot we are hosting which is inactive (not in use). Is there a way to send a string from an Azure hosted bot? Edit: I have tried to create a method which returns a string but cannot retrieve it through a url (sitename.azurewebsites.net/api/messages/methodname), I cannot use Jsonresult or Actionresult as the bot isn't MVC. More info: We have

Is it possible to load another bot with different branding to a Teams app?

别说谁变了你拦得住时间么 提交于 2019-12-13 16:41:56
问题 I have a bot, let's say, NameOne in the bot framework. The app is already published an I wish to keep it that way. However, additionally, a customer wants the exact same bot but with different icon + Name. Is there a way to repackage this bot? Note: Just adding it to manifest editor only changes the bot name + icon in the notifications and some other places, but not in the main chat area. 回答1: There isn't an easy way to do this, no. Teams uses the App Id to distinguish the bot, so you'd have

FormFlow: add multiple entities using recurring questions

[亡魂溺海] 提交于 2019-12-13 15:38:29
问题 I've been playing around with the bot framework and creating a chat bot for fun that lets you detail the members of your family/pets. Is there a way to recur over the same set of questions until the user is satisfied? Example code below: [Prompt("What is your family name?")] public string familyName{ get; set; } [Prompt("What is your postcode?")] public string postcode { get; set; } [Prompt("Would you like to add a family member? {||}")] public bool AddPerson { get; set; } [Prompt("What is

Rest API attachment error

妖精的绣舞 提交于 2019-12-13 15:37:10
问题 I've problems sending attachments through a Skype channel using the bot framework REST API. I'm able to correctly send images using a json message like this: { "type":"message", "timestamp":"2017-05-22T11:31:36.2281894Z", "from":{ "name":"MyBot" }, "recipient":{ "id":"29:1-Dl1xMx6G2qGya5O5BgTZJhc0fUKOiQLctt74CmwJ3PVJNgkocpf3LY626py9UIO" }, "text":"It works!", "attachments": [ { "contentType": "image/jpg", "contentUrl": "https://g87a2173.ngrok.io/content/attachments/65f2be10-e61e-424e-9ea1