botbuilder-consoleadapter

BotBuilder v4 Console Adapter

Usage no npm install needed!

<script type="module">
  import botbuilderConsoleadapter from 'https://cdn.skypack.dev/botbuilder-consoleadapter';
</script>

README

Introduction

Bot Builder is a library for building conversational AI chat bots using Microsoft Bot Builder. It allows you to create a really type developer loop where you chat with your bot in a console window as it's being developed and before you add a REST API that allows you to interface with the emulator and a Bot Service.

Getting Started

To install this package, you simply use the typical...

npm install botbuilder-consoleadapter

Then, to write an echo bot with minimal code, you can use...

import { ConsoleAdapter } from "botbuilder-consoleadapter";

const adapter = new ConsoleAdapter();
adapter.listen(async (context) => {
    await context.sendActivity(context.activity.text);
})

Easy!