direct-line-botframework

Microsoft Bot displays unnecessary duplicated messages in WebChat?

耗尽温柔 提交于 2019-12-22 11:33:38
问题 When a user visits my chat for the first time they are greeted with welcome message and immediately asked to provide their first name. As soon as the user inputs their first name the welcome message is and text prompt for their first name is displayed once again. Only after they input their first name for the second time, the bot moves on to the next question about their last name. Additionally when user finally enters their first and last name in first chat and they come back again to the

How can I use offline-directline for Microsofts Botframework v4?

雨燕双飞 提交于 2019-12-21 05:38:06
问题 I need to run the microsoft botframework v4 on-premise since company internal restrictions forbid me to register the bot on Microsoft Azure or use the connector in the cloud. My idea is to use offline-directline to emulate the connector locally. To my knowledge, the package has been built for Microsoft Botframework V3 and not v4. Has anybody managed to use it for v4? I followed through instructions however got stuck trying to implement the web chat client. Where and how do I implement BotChat

Sending events from an embedded webchat

99封情书 提交于 2019-12-20 02:40:22
问题 I'm trying to send and receive events from an embedded webchat which follows the code for the website from this example https://github.com/ryanvolum/backChannelBot and the bot implements the code from Bot framework get the ServiceUrl of embedded chat control page answered by ezequiel Here's how it all looks in my setup index.html <!DOCTYPE html> <!-- NOTE: This sample requires a bot which can send and receive specific event messages. Follow the instructions on https://github.com/ryanvolum

Sending events from an embedded webchat

房东的猫 提交于 2019-12-20 02:40:06
问题 I'm trying to send and receive events from an embedded webchat which follows the code for the website from this example https://github.com/ryanvolum/backChannelBot and the bot implements the code from Bot framework get the ServiceUrl of embedded chat control page answered by ezequiel Here's how it all looks in my setup index.html <!DOCTYPE html> <!-- NOTE: This sample requires a bot which can send and receive specific event messages. Follow the instructions on https://github.com/ryanvolum

how to connect to Microsoft bot framework from android cilent

≡放荡痞女 提交于 2019-12-17 20:19:32
问题 I created a simple android app which sends a message though JSON format using restfull jersey WS which URL should i enter in my app that connects the bot? and how does that bot receive message and send back the response? As of now I am using bot emulator by Microsoft Thanks in advance. 回答1: You can connect your android client with DirectLine Rest API, before that enble web chat in your bot dashboard. Please refer documentation about direct line approach for Bot framework. What you have to do

How to turn on always the microphone in bot framework direct line

拈花ヽ惹草 提交于 2019-12-13 05:09:28
问题 I'm creating a bot which accept text and voice input and also can answer in both mode. The bot works really good but i have to click always the button of microphone to speak with the bot. Do you know it is possible to make microphone always on and to recognize the voice without clicking the button of microphone ? <!DOCTYPE html> <html> <head> <link href="https://cdn.botframework.com/botframework- webchat/latest/botchat.css" rel="stylesheet" /> </head> <body> <div id="bot" /> <script src=

Unable to capture Adaptive Card events triggered in angular js 1.x directive

ぃ、小莉子 提交于 2019-12-13 03:12:45
问题 I am unable to capture the onExecuteAction emitted by the Adaptive Card. Can you please provide any pointers on the missing piece here.Also I am facing similar issue in binding,trigger and capturing events from the Adaptive Cards like showing/collapsing elements(triggered by Action.Showcard elements). Any pointers/guidence is appreciated.Thanks in advance.Attaching the plnkr code. https://plnkr.co/edit/2YB2zV3FL4JZgJ2yC4FG ` return { restrict: 'AE', replace: true, scope:false, template:

how to restart a connection to the bot using sdk v4 for node js

岁酱吖の 提交于 2019-12-11 23:53:19
问题 I am developing a bot using sdk v4 for node js and i want to end the current conversation and start new convesation when user click on a button. I tried await this.conversationState.clear(turnContext) to clear conversation data but there is no change in conversation Id. please suggest how to trigger conversationUpdate activity to restart the connection to the bot. 回答1: Both the Bot Emulator and the Azure Portal Web Chat's contain a sort of restart button that clears the conversation history

Proper way to use botframework-webchat in React component (using create-react-app)?

≡放荡痞女 提交于 2019-12-11 16:54:18
问题 I've created an app using create-react-app, then used the official github instructions for integrating with React (v16.6.3): import DirectLine from 'botframework-directlinejs'; import React from 'react'; import ReactWebChat from 'botframework-webchat'; export default class extends React.Component { constructor(props) { super(props); this.directLine = new DirectLine({ token: 'YOUR_BOT_SECRET' }); } render() { return ( <ReactWebChat directLine={ this.directLine } /> element ); } } However, I'm

How can I programmatically obtain the DirectLine secret of a Microsoft Bot Framework chatbot application?

走远了吗. 提交于 2019-12-11 12:09:28
问题 I'm trying to automate the process of creation and deploy of chatbot applications using the Microsoft Bot Framework and the Azure Bot Service . I have a custom template that speaks to a service of mine, and I just need to customize the Web.config file for each chatbot to be deployed. I also want to use the default.htm to host a basic web chat that uses the DirectLine secret of the deployed chatbot. I was able to create a WebApp Chatbot application using the Azure CLI 2.0 , as well as