JSPM

  • Created
  • Published
  • Downloads 286
  • Score
    100M100P100Q112527F
  • License ISC

The fastest way to build advanced AI chat bots

Package Exports

  • @chatbotkit/sdk
  • @chatbotkit/sdk/bot
  • @chatbotkit/sdk/bot/index
  • @chatbotkit/sdk/bot/index.js
  • @chatbotkit/sdk/bot/session
  • @chatbotkit/sdk/bot/session/index
  • @chatbotkit/sdk/bot/session/index.js
  • @chatbotkit/sdk/bot/session/v1
  • @chatbotkit/sdk/bot/session/v1.js
  • @chatbotkit/sdk/bot/v1
  • @chatbotkit/sdk/bot/v1.js
  • @chatbotkit/sdk/client
  • @chatbotkit/sdk/client.js
  • @chatbotkit/sdk/conversation
  • @chatbotkit/sdk/conversation/index
  • @chatbotkit/sdk/conversation/index.js
  • @chatbotkit/sdk/conversation/message
  • @chatbotkit/sdk/conversation/message/index
  • @chatbotkit/sdk/conversation/message/index.js
  • @chatbotkit/sdk/conversation/message/v1
  • @chatbotkit/sdk/conversation/message/v1.js
  • @chatbotkit/sdk/conversation/session
  • @chatbotkit/sdk/conversation/session/index
  • @chatbotkit/sdk/conversation/session/index.js
  • @chatbotkit/sdk/conversation/session/v1
  • @chatbotkit/sdk/conversation/session/v1.js
  • @chatbotkit/sdk/conversation/v1
  • @chatbotkit/sdk/conversation/v1.js
  • @chatbotkit/sdk/dataset
  • @chatbotkit/sdk/dataset/file
  • @chatbotkit/sdk/dataset/file/index
  • @chatbotkit/sdk/dataset/file/index.js
  • @chatbotkit/sdk/dataset/file/v1
  • @chatbotkit/sdk/dataset/file/v1.js
  • @chatbotkit/sdk/dataset/index
  • @chatbotkit/sdk/dataset/index.js
  • @chatbotkit/sdk/dataset/record
  • @chatbotkit/sdk/dataset/record/index
  • @chatbotkit/sdk/dataset/record/index.js
  • @chatbotkit/sdk/dataset/record/v1
  • @chatbotkit/sdk/dataset/record/v1.js
  • @chatbotkit/sdk/dataset/v1
  • @chatbotkit/sdk/dataset/v1.js
  • @chatbotkit/sdk/file
  • @chatbotkit/sdk/file/index
  • @chatbotkit/sdk/file/index.js
  • @chatbotkit/sdk/file/v1
  • @chatbotkit/sdk/file/v1.js
  • @chatbotkit/sdk/index
  • @chatbotkit/sdk/index.js
  • @chatbotkit/sdk/integration
  • @chatbotkit/sdk/integration/index
  • @chatbotkit/sdk/integration/index.js
  • @chatbotkit/sdk/integration/sitemap
  • @chatbotkit/sdk/integration/sitemap/index
  • @chatbotkit/sdk/integration/sitemap/index.js
  • @chatbotkit/sdk/integration/sitemap/v1
  • @chatbotkit/sdk/integration/sitemap/v1.js
  • @chatbotkit/sdk/integration/whatsapp
  • @chatbotkit/sdk/integration/whatsapp/index
  • @chatbotkit/sdk/integration/whatsapp/index.js
  • @chatbotkit/sdk/integration/whatsapp/v1
  • @chatbotkit/sdk/integration/whatsapp/v1.js
  • @chatbotkit/sdk/magic
  • @chatbotkit/sdk/magic/index
  • @chatbotkit/sdk/magic/index.js
  • @chatbotkit/sdk/magic/v1
  • @chatbotkit/sdk/magic/v1.js
  • @chatbotkit/sdk/partner
  • @chatbotkit/sdk/partner/index
  • @chatbotkit/sdk/partner/index.js
  • @chatbotkit/sdk/partner/user
  • @chatbotkit/sdk/partner/user/index
  • @chatbotkit/sdk/partner/user/index.js
  • @chatbotkit/sdk/partner/user/token
  • @chatbotkit/sdk/partner/user/token/index
  • @chatbotkit/sdk/partner/user/token/index.js
  • @chatbotkit/sdk/partner/user/token/v1
  • @chatbotkit/sdk/partner/user/token/v1.js
  • @chatbotkit/sdk/partner/user/v1
  • @chatbotkit/sdk/partner/user/v1.js
  • @chatbotkit/sdk/partner/v1
  • @chatbotkit/sdk/partner/v1.js
  • @chatbotkit/sdk/skillset
  • @chatbotkit/sdk/skillset/ability
  • @chatbotkit/sdk/skillset/ability/index
  • @chatbotkit/sdk/skillset/ability/index.js
  • @chatbotkit/sdk/skillset/ability/v1
  • @chatbotkit/sdk/skillset/ability/v1.js
  • @chatbotkit/sdk/skillset/index
  • @chatbotkit/sdk/skillset/index.js
  • @chatbotkit/sdk/skillset/v1
  • @chatbotkit/sdk/skillset/v1.js
  • @chatbotkit/sdk/usage
  • @chatbotkit/sdk/usage/index
  • @chatbotkit/sdk/usage/index.js
  • @chatbotkit/sdk/usage/v1
  • @chatbotkit/sdk/usage/v1.js

Readme

Follow on Twitter ChatBotKit

ChatBotKit Node SDK

Welcome to the ChatBotKit SDK. This SDK is a node-based solution for building conversational AI chatbots with ease. With ChatBotKit, you can quickly develop and deploy AI bots that can interact with users in natural language.

SDK Features

  • Easy setup - The ChatBotKit SDK is easy to install and set up. You can have your first chatbot up and running in minutes.
  • Serverless - ChatBotKit SDK is compatible with the latest and greatest runtime environments such as Serverless and Edge with automatic support for Vercel, Netlify, Cloudflare Workerss, Deno, AWS Lambda and more.
  • Modern - A modern SDK with built-in support for CommonJS, ECMAScript Modules, async/await, streams and much more.
  • Customizable - You can easily customize the chatbot's behavior and responses to fit your specific use case.

ChatBotKit Features

  • ๐Ÿ—จ Chat History: Easily review and reference previous conversations with your bots, ensuring that it has all the information it needs.
  • ๐Ÿ’พ Custom Datasets: Manage and organize the data that your chat bots use to respond to user input with bespoke datasets.
  • ๐Ÿ’พ Custom Skillset: Create special skills for your chatbot, such as the ability to generate images or fetch web pages.
  • ๐ŸŽฌ Document File Importing: Import PDF, CSV, JSON, MD and many other document files directly into your your chatbot datasets
  • ๐ŸŽฌ Media File Importing: Import MP3, MP4, MPEG, WAV and many other media files directly into your your chatbot datasets
  • ๐ŸŒ Widget Integration: Embed ChatBotKit chatbots directly on any website using advanced customization options and theming.
  • ๐Ÿ’ฌ Slack Bot Integration: Create and deploy wide-range of Slack bot integrations with just a few click.
  • ๐ŸŽฎ Discord Bot Integration: Create and deploy wide-range of Discord chat bot with just a few click.
  • ๐Ÿ“ฑ WhatsApp Bot Integration: Connect with your audience instantly on the worldโ€™s most popular AI bot platform.
  • ๐Ÿ—บ Sitemap Integration: Automatically ingest website content into a searchable knowledge base for your chatbot to reference.
  • ๐Ÿ—บ Suppoert Integration: Automatically send conversation summaries to your prefered support system and follow up with users off-session.
  • ๐Ÿค– GPT-3.5 Support: State-of-the-art language models to power your conversations.
  • ๐Ÿš€ GPT-4 Support: The latest and best language model now can power all chatbots.
  • ๐ŸŽฅ Streaming: You can turn on and off streaming capabilities for your chatbots.
  • ๐ŸŽจ Widget Themes: Customize the appearance of your chatbot widget with different themes to match your website branding or personal preferences.
  • ๐Ÿ”’ Data Security: Ensuring the security of user data, with robust measures in place to protect against unauthorized access.
  • ๐Ÿ•ต Focus on Privacy: Get strong privacy controls out of the box. Privide confindence that your customers' data is being handled responsibly.
  • ๐Ÿšซ Content Moderation: All messages are automatically scanned for abusive content and automatically flagged by the system.
  • ๐Ÿ’ต Simple Pricing: Our pricing is straightforward and easy to understand, with no hidden fees or surprises.

Getting Started

To get started with ChatBotKit, follow these simple steps:

  1. Install the SDK using npm: npm install @chatbotkit/sdk.
  2. Use the SDK to setup or interact with your chatbot.

Here is a simple streaming example that works in Edge and Serverless environments:

import { ConversationClient } from '@chatbotkit/sdk/conversation/index.js'

for await (const { type, data } of client
  .complete(null, { model: 'gpt-4', messages })
  .stream()) {
  if (type === 'token') {
    process.stdout.write(data.token)
  }
}

Examples

You can find a wide-range of examples at here.

Documentation

For detailed documentation on available types, please refer to the type documentation.

Checkout the ChatBotKit Documentation for more information about the platform.

Contributing

If you find a bug or would like to contribute to the ChatBotKit SDK, please open an issue or submit a pull request on the official GitHub repository.