direct-line-botframework

Changing the service url for a direct line activity that is sent to our bot

纵饮孤独 提交于 2020-08-09 11:02:30
问题 We are trying to send a message into our bot using the direct line api and then send a message out from our bot without using the direct line api. In order to do this, we need a different service url than the default direct line api service url. We have tried putting a different service url in the activity we send the direct line api but then when the activity is sent to the bot the direct line api service url is populated instead. We have also tried changing the service url in the activity

Changing the service url for a direct line activity that is sent to our bot

冷暖自知 提交于 2020-08-09 11:02:05
问题 We are trying to send a message into our bot using the direct line api and then send a message out from our bot without using the direct line api. In order to do this, we need a different service url than the default direct line api service url. We have tried putting a different service url in the activity we send the direct line api but then when the activity is sent to the bot the direct line api service url is populated instead. We have also tried changing the service url in the activity

Multiple Conversations For Direct Line Client

做~自己de王妃 提交于 2020-06-29 06:30:52
问题 I'm trying to use the Microsoft.Bot.Connector.DirectLine .NET client to connect to my Direct Line Channel. My client application will have many conversations open at once (like 1000+). What I'm trying to do is efficiently create a single Direct Line client object which can receive messages for all my conversations and NOT have a single client per conversation. This below code is from: https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-directline-extension-net-client?view

MS Bot Framework pass the values from server code (C# ) to front end code (JavaScript)

元气小坏坏 提交于 2020-03-25 16:02:13
问题 I've been using MS bot framework - Chat bot in my project and I'm using QnAMaker in the back end for my chat bot, which is running in direct line bot channel. On page load using JavaScript front end code, i'm sending some values say ABC to the bot (c# code - server hosted) via createStore method, after asking the question the bot will start querying it in the qnamaker using ABC as strict filters. After sometime, In one some scenario, i will give input to BOT and change the values as XYZ . up

How to Hide / Show the Sendbox whenever the bot replies with the suggested action

て烟熏妆下的殇ゞ 提交于 2020-03-04 05:05:58
问题 I'm using Azure Chat bot (v4 MS bot framework) and applied in Direct line channel, and also I'm sending suggestedActions on certain places, on such time i want to disable/hide the sendbox - the input text box Following is my full code at the front end. (async function bot() { const activityMiddleware = () => next => card => { const { activity: { suggestedActions } } = card; const toggleSendBoxEvent = new Event('ToggleSendBoxEvent') if (suggestedActions) { toggleSendBoxEvent.data = "none";

How should a botframework webchat conversation be maintained for over an hour?

白昼怎懂夜的黑 提交于 2020-02-26 03:59:28
问题 I have looked through the documentation for botframework-webchat and have not been able to find any documentation on how conversations over 1 hour should be handled properly. This situation is most likely to occur if a web page is left idle in the background for an extended period of time. The directline connection is maintained as long as the webchat remains active on a web page. The problem occurs after a page refresh. The initial short term solution is to store the relevant conversation

Send a typing indicator in bot-framework v4 using DirectLine and webchat (Node.js)

…衆ロ難τιáo~ 提交于 2020-02-14 01:06:53
问题 The official docs for Microsoft bot-framework SDK v4 do not demonstrate how to send a typing indicator (whereas v3 has these instructions). I'm using DirectLine and botframework-webchat. How do I do this? Thanks! 回答1: You can send a typing indicator by sending an activity with the typing type. Read more about how to send a typing indicator. await context.sendActivities([ { type: ActivityTypes.Typing }, { type: 'delay', value: 3000 }, { type: ActivityTypes.Message, text: 'Finished typing' } ])

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

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

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(