direct-line-botframework

Insert a text into a textbox and simulate click on the button in Bot Framework's Web Chat

纵然是瞬间 提交于 2019-12-11 07:29:17
问题 Fiddle here: https://jsfiddle.net/chpaeeL9/1/ Microsoft Bot Framework has a webchat module that allows you to talk to your bot. When the user clicks the Say Hi button, I want to place some text into the webchat's textbox, and click the Send button inside the webchat using JavaScript. Sounds like something too easy, but it wasn't. Here's the code that I currently have, and it doesn't work: the click event somehow is not triggered. $('#sayhibutton').click(function() { $('.wc-console').addClass(

How do we maintain different session for different users in Microsoft Bot Framework?

眉间皱痕 提交于 2019-12-11 05:26:39
问题 I have created a bot using Bot framework and would like to know if there is any way to maintain different sessions for different users while using directline . While using the skype channel, user session is maintained for individual users and I would like to achieve the same feature in my directline client. In my case the previous session data is being overridden by the next session data. I am using Node.js to build bots. 回答1: You need to start a new conversation for each user. Assuming you

Bot framework “bot generates an error, an HTTP 502 response (”Bad Gateway“) ”

会有一股神秘感。 提交于 2019-12-11 04:13:55
问题 I'm trying to integrate UWP app with Bot framework using direct line, but bot framework website show me this error:"HTTP status code InternalServerError", so I try to debug, after researching, I found the error is in the "Send an activity to the bot" section, But I have no idea how to fix it. (if I use bot emulator to test, it can work, does it means the bot doesn't have any problem?) namespace BotClient { public sealed partial class MainPage : Page { BotService myBot; string ConversationId;

Direct Line API - Bot Framework / Hero Cards and Attachments

試著忘記壹切 提交于 2019-12-11 01:46:11
问题 I just started using the Direct Line API (1.1) and I saw that it doesn't let you know if a conversation was showed inside a Hero Card or a Button for example. { "id": "fBPDq9JSeL|000000000000000004", "conversationId": "fBPDq9JSeL", "created": "2016-11-28T20:22:20.6035604Z", "from": "portosegurobot", "text": "Health For Pets\n\nNossa missão é proporcionar a cães e gatos uma vida mais saudável e feliz.\n\nAcesse e saiba mais\n\n(Acesse) https://health4pet.com.br/", "images": [], "attachments":

Welcome message not visibile in Webchat,but work in Emulator

a 夏天 提交于 2019-12-10 18:29:29
问题 IConversationUpdateActivity update = message; using (var scope = Microsoft.Bot.Builder.Dialogs.Internals.DialogModule.BeginLifetimeScope(Conversation.Container, message)) { var client = scope.Resolve<IConnectorClient>(); if (update.MembersAdded.Any()) { foreach (var newMember in update.MembersAdded) { if (newMember.Id != message.Recipient.Id) { var reply = message.CreateReply(); reply.Text = $"Welcome {newMember.Name}!"; client.Conversations.ReplyToActivityAsync(reply); } } } } I'm new to

Microsoft Bot Framework DirectLine Can't Access Conversations

一世执手 提交于 2019-12-10 09:36:06
问题 I am trying to use the Microsoft Bot Framework DirectLine API to read and add messages to existing conversations between other users and my bot. From what I've read I believe this should be possible when using the master-secret but it's just not working for me. I'm using a WebAPI to try and access two of my existing conversations (on Facebook & Skype) as follows: [HttpPost] [Route("remind")] public string Remind() { var secret = System.Configuration.ConfigurationManager.AppSettings["secret"];

MS Bot, Direct line API, cannot send an activity, how to fix it?

你说的曾经没有我的故事 提交于 2019-12-10 09:28:12
问题 I been trying to set up MS Bot within an app. So far, I did following. set a REST endpoint for Bot, that connector listens to it. app.post("/botapi/messages", connector); get APP_ID and APP_PASSWORD, emulator successfully connected to with following, http://localhost:4000/botapi/messages APP_ID APP_PASSWORD this is successful, bot replied as expected. Tried to talk to the Bot using Direct Line API. Successfully started conversations. One of the response is as follows. { "conversationId":

Is new ms botbuilder directline speech good fit for call center scenario?

試著忘記壹切 提交于 2019-12-08 10:04:16
问题 MS recently introduced direct speech channel and some samples for web frontend to use it. But i was wondering is it a good fit for use in call center scenario using some SIP or services like twilio phone? If so i would like to see some docs how to use direct line speech api and wire it up to some telephony? I've already created github issue but it stay wo attention https://github.com/MicrosoftDocs/bot-docs/issues/1162 PS: also i have related problem, i can't find any docs on how to exachange

Version compatibility issue Azure functions' Node and DirectlineJS es6 exports

有些话、适合烂在心里 提交于 2019-12-08 01:48:28
问题 End Goal: To create Azure Function running Botframework-DirectlineJS with binding to Bot (Framework) using DirectLine secret. Issue: The above mentioned Botframework-DirectlineJS uses ES6 export and Azure Functions support Node 6.5.0 max doc. Hence the question how to import successfully the DirectlineJS in the index.js file of Azure function? Error ``` 2017-05-23T07:17:45.939 Exception while executing function: Functions.adapter. mscorlib: D:\home\site\wwwroot\adapter\importexportwrapper.js

BotBuilder, Direct Line API returns “tokenParameters is missing User” with Enhanced authentication options

蓝咒 提交于 2019-12-07 19:47:39
问题 I have a bot published on an Azure account, from which I'm trying to take the magic code out, so following the Direct Line documentation I improved the code to hide the token. But once the Enhanced authentication options are enabled I always get the same response. { "error": { "code": "BadArgument", "message": "tokenParameters is missing User." } } And I am not able to figure out how to complete the HTTP Request with the user data. The bot is based on BotFramework SDK v4, plus some