Welcome to the Bot Framework Tools repository, which is the home for a set of tools for developers building bots with the Microsoft Bot Framework
Перейти к файлу
Bruce Haley cce2504900 Add build\PublishToCoveralls.ps1 2019-05-20 14:43:02 -07:00
.github Update issue templates 2018-09-19 11:34:26 -07:00
.vscode revert unneeded debug configuration 2019-03-04 19:10:30 +02:00
AzureCli Fix for #615 2018-10-20 16:52:13 -07:00
BuildUtilities Updated github user for build utilities 2018-09-11 14:18:32 -07:00
build Add build\PublishToCoveralls.ps1 2019-05-20 14:43:02 -07:00
docs/media Update content for //build (#1128) 2019-05-05 13:03:54 -07:00
packages added optional param to "add" command (#1153) 2019-05-20 09:35:49 -07:00
.editorconfig Fix Ludown eslint issues 2018-08-09 12:11:49 -03:00
.eslintignore Fix .eslintignore paths moved to packages/* 2018-08-21 11:30:35 -03:00
.gitattributes Fixed unit tests. Removed validation for the appId and versionId sicne not all operations require these 2018-03-22 09:11:21 -07:00
.gitignore [DO NOT MERGE] MSLG tool package (#1079) 2019-04-24 19:52:24 -07:00
.travis.yml Enable Travis CI and Daily Builds (publish to MyGet) 2018-07-27 19:47:00 +02:00
CONTRIBUTING.md Create CONTRIBUTING.md 2018-05-04 23:12:18 -07:00
LICENSE Initial commit 2018-02-15 14:06:49 -08:00
README.md Set build badge to reflect Botbuilder-tools-js-daily 2019-05-14 17:14:28 -07:00
build.ci.sh add build.ci.sh changes 2018-10-01 21:56:56 -07:00
lerna.json Fix lerna version to 3.2.1 2018-08-29 12:55:06 -03:00
package-lock.json Update generated model to include roles. 2019-05-03 15:03:05 -07:00
package.json Split "coveralls" into "coveralls" and "upload-coveralls" 2019-05-17 15:33:04 -07:00
tools-overview.md pointed all Publish steps to docs. Removed duplicated Publish steps 2019-01-30 12:50:52 -08:00
tslint.json Add US Government suport to luis and msbot CLI 2018-10-29 18:05:16 -07:00

README.md

Bot Framework Tools

Click here to find out what's new for //build2019!

Bot Framework Tools

Build Status Coverage Status lerna

The Bot Framework tools are a collection of cross-platform command line tools designed to cover end-to-end bot development workflow. This repo is part the Microsoft Bot Framework - a comprehensive framework for building enterprise-grade conversational AI experiences.

This repo is part the Microsoft Bot Framework - a comprehensive framework for building enterprise-grade conversational AI experiences.

Stable release Tool Description
npm version Chatdown Prototype mock conversations in markdown and convert the markdown to transcripts you can load and view in the new V4 Bot Framework Emulator
npm version MSBot Create and manage connected services in your bot configuration file
npm version LUDown Build LUIS language understanding models using markdown files
npm version LUIS Create and manage your LUIS.ai applications
npm version QnAMaker Create and manage QnAMaker.ai Knowledge Bases.
npm version Dispatch Build language models allowing you to dispatch between disparate components (such as QnA, LUIS and custom code)
npm version LUISGen Auto generate backing C#/Typescript classes for your LUIS intents and entities.
npm version DialogTracker Library for tracking .schema, .dialog and .lg files.
npm version DialogSchema Merge together and check .schema and .lg files into a composite .schema file.
npm version DialogLint Check .dialog files for errors and compile .lg files.

Install CLI tools:

Pre-requisite:

npm install -g chatdown msbot ludown luis-apis qnamaker botdispatch luisgen dialogtracker dialogschema dialoglint

Overview

  • Please see here for an overview of the end-to-end bot development workflow.
  • Please see here for an overview of using Bot Builder tools throughout various phases of bot development.

Bot Builder tools are designed to work with

Before writing code, review the bot designguidelinesfor best practices and identify the needs for your bot: will a basic bot be enough or whether it should have more sophisticated capabilities, such as speech,language understanding,QnA, or the ability to extract knowledge from different sources and provide intelligent answers. This is also the phase where you might want to create mockup of conversations between the user and the bot for the specific scenarios your bot will support. Chatdown is the tool built for this purpose. You can author .chat files that mockup the conversations and then use chatdown CLI to convert them into rich transcripts.

As you build your bot, you may also need to integrate AI services like LUIS.ai for language understanding, QnAMaker.ai for your bot to respond to simple questions in a Q&A format, and more. You can bootstrap language understanding for your bot using LUDown.

The tools are designed to work together. You can then use LUIS CLI and/or the QnAMaker CLI tools to create your LUIS.ai models and QnAMaker knowledge base.

As your bot grows in sophistication, Dispatch CLI can help create and evaluate LUIS models used to dispatch intent across multiple bot modules such as LUIS models, QnA knowledge bases and others (added to dispatch as a file type).

Throughout the Build phase, you can use MSBot CLI to create and keep your bot configuration file updated with all relevant service references.

To test and refine your bot, you can use the new V4 Bot Framework Emulator. The Bot Framework Emulator is a cross-platform Electron application that enables you to test and debug your bots on local machine or in the cloud. The new emulator includes features like faster load times, an improved dynamic layout model, support for multiple bot configurations, simple bot components management, and the ability to inspect responses from connected services such as LUIS and QnA. The Bot Framework Emulator also deepens links to different parts used by the bot. The Bot Framework Emulator new functionality enables you to debug bots based on transcript logs and to view previous chat in presentation mode. The Bot Framework Emulator is available as open source on Github.

With the Azure CLI Bot extension, you can create, download, publish, configure channels with the Azure Bot Service. Azure CLI Bot extension requires Azure CLI (version 2.0.45 or higher]

Building the tools

In order to build the SDK, ensure that you have Git and Node.js installed.

Run the following commands to build all tools.

npm install
npm run build

Run the following command to verify your installation.

npm run test

This repository uses lerna to manage the packages included. This allows you to execute scripts for all packages or only for some packages. For instance, lerna run test will run all tests in each package, but lerna run test --scope chatdown will run the tests of chatdown.

To use lerna, install it as a global package with npm install lerna --global.

Nightly builds

Nightly builds are generated using the latest code. Therefore, they may not be stable, and most likely lack up to date documentation. These builds are better suited for more experienced users, although everyone is welcome to use them and provide feedback.

You can get the latest nightly build of MSBot from the BotBuilder MyGet feed. To install the nightly -

npm config set registry https://botbuilder.myget.org/F/botbuilder-tools-daily/npm/

Install using npm:

npm i -g chatdown msbot ludown luis-apis qnamaker botdispatch luisgen

To reset registry:

npm config set registry https://registry.npmjs.org/

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Reporting Security Issues

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) at secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Copyright (c) Microsoft Corporation. All rights reserved.