npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@abbott-platform/botkit

v1.5.3

Published

Building blocks for Building Bots

Downloads

40

Readme

Botkit - Building Blocks for Building Bots

npm David npm bitHound Overall Score

Botkit is designed to ease the process of designing and running useful, creative bots that live inside messaging platforms. Bots are applications that can send and receive messages, and in many cases, appear alongside their human counterparts as users.

Some bots talk like people, others silently work in the background, while others present interfaces much like modern mobile applications. Botkit gives developers the necessary tools for building bots of any kind! It provides an easy-to-understand interface for sending and receiving messages so that developers can focus on creating novel applications and experiences instead of dealing with API endpoints.

Our goal with Botkit is to make bot building easy, fun, and accessible to anyone with the desire to create a future filled with talking machines! We provide several tools to make this vision a reality:

Botkit features a comprehensive set of tools to deal with popular messaging platforms, including:


Start with Botkit Studio

Botkit Studio is a hosted development environment for building bots with Botkit. Developers using Botkit Studio get the full capabilities of Botkit, with the addition of many powerful bot-building features such as:

  • All the code you need to get your bot online in minutes
  • A visual authoring environment for designing and managing dialog
  • A real-time message console for monitoring activity
  • APIs that enable content and features to be added to bots without additional code
  • Role-based, multi-user teams support
  • Detailed usage statistics
  • Built-in integrations with top plugins and platform tools

Click below to sign up for a free developer account, and please contact us if you have any questions.

Sign up for Botkit Studio

Start with a Starter Kit

Based on the best practices we've established since the release of Botkit, our starter kits include everything you need to bring a Botkit bot online in minutes. Don't start from scratch -- start with a well structured, extensible application boilerplate!

These starter kits are easy to set up and run on your own hosting service, but the fastest (and cheapest) way to get started is to deploy directly to Glitch, a free-to-use code editor and hosting system!

Note: While using Botkit Studio is highly recommended, these starter kits can be used without registering for Studio as well.

Slack Bot Starter Kit

The Slack starter kit contains everything you need to create a multi-team Slack application, suitable for internal use or submission to Slack's app store.

Remix on Glitch

Cisco Spark Bot Starter Kit

Build a bot inside Cisco Spark's collaboration and messaging platform. Bots built with the starter kit are ready to submit to Cisco Spark's Depot app store.

Remix on Glitch

Facebook Bot Starter Kit

The Facebook starter kit contains all the code necessary to stand up a Facebook bot on either Facebook Messenger, or Facebook Work Chat. With just a few pieces of configuration, set up a bot that automatically responds to messages sent to your Facebook page.

Remix on Glitch

Developer & Support Community

Join our thriving community of Botkit developers and bot enthusiasts at large. Over 4500 members strong, our open Slack group is the place for people interested in the art and science of making bots. Come to ask questions, share your progress, and commune with your peers!

You can also find help from members of the Botkit team in our dedicated Cisco Spark room!

We also host a regular meetup and annual conference called TALKABOT. Come meet and learn from other bot developers! Full video of our 2016 event is available on Youtube.

Botkit Core Library

Botkit is designed around the idea of giving developers a language-like interface for building bots. Instead of dealing directly with messaging platform protocols and APIs, Botkit provides semantic functions designed around the normal parts of human conversation: hearing things and saying things.

On top of these basic build blocks, Botkit offers a powerful system for creating and managing dynamic conversational interfaces, and tapping into cutting edge technology like artificial intelligence (AI) and natural language understanding (NLP/NLU) tools.

Practically speaking, this results in code that looks like this:

// respond when a user sends a DM to the bot that says "hello"
controller.hears('hello', 'direct_message', function(bot, message) {
    bot.reply(message, 'Hello human.');
});

All Botkit bots, built for any platform, use these same building blocks. This means developers are not required to learn the intricacies of each platform, and can build bots that port easily between them.

Botkit can be used to build a stand-alone application, or it can be integrated into existing Node.js apps to offer a bot experience, or to send application notifications into messaging apps. It is released under the MIT open source license, which means developers are free to use it any way they choose, in any type of project.

Install Botkit from NPM or Github

Botkit is available via NPM.

npm install --save botkit

You can also check out Botkit directly from Git. If you want to use the example code and included bots, it may be preferable to use Github over NPM.

git clone [email protected]:howdyai/botkit.git

After cloning the Git repository, you have to install the node dependencies. Navigate to the root of your cloned repository and use npm to install all necessary dependencies.

npm install

Use the --production flag to skip the installation of devDependencies from Botkit. Useful if you just wish to run the example bot.

npm install --production

Running Tests

To run tests, use the npm test command. Note: you will need dev dependencies installed using npm install.

npm test

To run tests in watch mode run:

npm run test-watch

Tests are run with Jest. You can pass Jest command line options after a --. For example to have Jest bail on the first error you can run

npm test -- --bail

Documentation

About Botkit

Botkit is a product of Howdy.

For support, check out the Developer Community and find our team in the #Botkit channel.