JSPM

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

The fastest way to build advanced AI chat bots

Package Exports

  • @chatbotkit/sdk
  • @chatbotkit/sdk/blueprint
  • @chatbotkit/sdk/blueprint/index
  • @chatbotkit/sdk/blueprint/index.js
  • @chatbotkit/sdk/blueprint/v1
  • @chatbotkit/sdk/blueprint/v1.js
  • @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/buffer
  • @chatbotkit/sdk/buffer.js
  • @chatbotkit/sdk/channel
  • @chatbotkit/sdk/channel/index
  • @chatbotkit/sdk/channel/index.js
  • @chatbotkit/sdk/channel/v1
  • @chatbotkit/sdk/channel/v1.js
  • @chatbotkit/sdk/client
  • @chatbotkit/sdk/client.js
  • @chatbotkit/sdk/contact
  • @chatbotkit/sdk/contact/conversation
  • @chatbotkit/sdk/contact/conversation/index
  • @chatbotkit/sdk/contact/conversation/index.js
  • @chatbotkit/sdk/contact/conversation/v1
  • @chatbotkit/sdk/contact/conversation/v1.js
  • @chatbotkit/sdk/contact/index
  • @chatbotkit/sdk/contact/index.js
  • @chatbotkit/sdk/contact/secret
  • @chatbotkit/sdk/contact/secret/index
  • @chatbotkit/sdk/contact/secret/index.js
  • @chatbotkit/sdk/contact/secret/v1
  • @chatbotkit/sdk/contact/secret/v1.js
  • @chatbotkit/sdk/contact/space
  • @chatbotkit/sdk/contact/space/index
  • @chatbotkit/sdk/contact/space/index.js
  • @chatbotkit/sdk/contact/space/v1
  • @chatbotkit/sdk/contact/space/v1.js
  • @chatbotkit/sdk/contact/task
  • @chatbotkit/sdk/contact/task/index
  • @chatbotkit/sdk/contact/task/index.js
  • @chatbotkit/sdk/contact/task/v1
  • @chatbotkit/sdk/contact/task/v1.js
  • @chatbotkit/sdk/contact/v1
  • @chatbotkit/sdk/contact/v1.js
  • @chatbotkit/sdk/conversation
  • @chatbotkit/sdk/conversation/attachment
  • @chatbotkit/sdk/conversation/attachment/index
  • @chatbotkit/sdk/conversation/attachment/index.js
  • @chatbotkit/sdk/conversation/attachment/v1
  • @chatbotkit/sdk/conversation/attachment/v1.js
  • @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/event
  • @chatbotkit/sdk/event/index
  • @chatbotkit/sdk/event/index.js
  • @chatbotkit/sdk/event/log
  • @chatbotkit/sdk/event/log/index
  • @chatbotkit/sdk/event/log/index.js
  • @chatbotkit/sdk/event/log/v1
  • @chatbotkit/sdk/event/log/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/graphql
  • @chatbotkit/sdk/graphql/index
  • @chatbotkit/sdk/graphql/index.js
  • @chatbotkit/sdk/graphql/v1
  • @chatbotkit/sdk/graphql/v1.js
  • @chatbotkit/sdk/index
  • @chatbotkit/sdk/index.js
  • @chatbotkit/sdk/integration
  • @chatbotkit/sdk/integration/discord
  • @chatbotkit/sdk/integration/discord/index
  • @chatbotkit/sdk/integration/discord/index.js
  • @chatbotkit/sdk/integration/discord/v1
  • @chatbotkit/sdk/integration/discord/v1.js
  • @chatbotkit/sdk/integration/email
  • @chatbotkit/sdk/integration/email/index
  • @chatbotkit/sdk/integration/email/index.js
  • @chatbotkit/sdk/integration/email/v1
  • @chatbotkit/sdk/integration/email/v1.js
  • @chatbotkit/sdk/integration/extract
  • @chatbotkit/sdk/integration/extract/index
  • @chatbotkit/sdk/integration/extract/index.js
  • @chatbotkit/sdk/integration/extract/v1
  • @chatbotkit/sdk/integration/extract/v1.js
  • @chatbotkit/sdk/integration/googlechat
  • @chatbotkit/sdk/integration/googlechat/index
  • @chatbotkit/sdk/integration/googlechat/index.js
  • @chatbotkit/sdk/integration/googlechat/v1
  • @chatbotkit/sdk/integration/googlechat/v1.js
  • @chatbotkit/sdk/integration/index
  • @chatbotkit/sdk/integration/index.js
  • @chatbotkit/sdk/integration/instagram
  • @chatbotkit/sdk/integration/instagram/index
  • @chatbotkit/sdk/integration/instagram/index.js
  • @chatbotkit/sdk/integration/instagram/v1
  • @chatbotkit/sdk/integration/instagram/v1.js
  • @chatbotkit/sdk/integration/mcpserver
  • @chatbotkit/sdk/integration/mcpserver/index
  • @chatbotkit/sdk/integration/mcpserver/index.js
  • @chatbotkit/sdk/integration/mcpserver/v1
  • @chatbotkit/sdk/integration/mcpserver/v1.js
  • @chatbotkit/sdk/integration/messenger
  • @chatbotkit/sdk/integration/messenger/index
  • @chatbotkit/sdk/integration/messenger/index.js
  • @chatbotkit/sdk/integration/messenger/v1
  • @chatbotkit/sdk/integration/messenger/v1.js
  • @chatbotkit/sdk/integration/microsoftteams
  • @chatbotkit/sdk/integration/microsoftteams/index
  • @chatbotkit/sdk/integration/microsoftteams/index.js
  • @chatbotkit/sdk/integration/microsoftteams/v1
  • @chatbotkit/sdk/integration/microsoftteams/v1.js
  • @chatbotkit/sdk/integration/notion
  • @chatbotkit/sdk/integration/notion/index
  • @chatbotkit/sdk/integration/notion/index.js
  • @chatbotkit/sdk/integration/notion/v1
  • @chatbotkit/sdk/integration/notion/v1.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/skillserver
  • @chatbotkit/sdk/integration/skillserver/index
  • @chatbotkit/sdk/integration/skillserver/index.js
  • @chatbotkit/sdk/integration/skillserver/v1
  • @chatbotkit/sdk/integration/skillserver/v1.js
  • @chatbotkit/sdk/integration/slack
  • @chatbotkit/sdk/integration/slack/index
  • @chatbotkit/sdk/integration/slack/index.js
  • @chatbotkit/sdk/integration/slack/v1
  • @chatbotkit/sdk/integration/slack/v1.js
  • @chatbotkit/sdk/integration/support
  • @chatbotkit/sdk/integration/support/index
  • @chatbotkit/sdk/integration/support/index.js
  • @chatbotkit/sdk/integration/support/v1
  • @chatbotkit/sdk/integration/support/v1.js
  • @chatbotkit/sdk/integration/telegram
  • @chatbotkit/sdk/integration/telegram/index
  • @chatbotkit/sdk/integration/telegram/index.js
  • @chatbotkit/sdk/integration/telegram/v1
  • @chatbotkit/sdk/integration/telegram/v1.js
  • @chatbotkit/sdk/integration/trigger
  • @chatbotkit/sdk/integration/trigger/index
  • @chatbotkit/sdk/integration/trigger/index.js
  • @chatbotkit/sdk/integration/trigger/v1
  • @chatbotkit/sdk/integration/trigger/v1.js
  • @chatbotkit/sdk/integration/twilio
  • @chatbotkit/sdk/integration/twilio/index
  • @chatbotkit/sdk/integration/twilio/index.js
  • @chatbotkit/sdk/integration/twilio/v1
  • @chatbotkit/sdk/integration/twilio/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/integration/widget
  • @chatbotkit/sdk/integration/widget/index
  • @chatbotkit/sdk/integration/widget/index.js
  • @chatbotkit/sdk/integration/widget/v1
  • @chatbotkit/sdk/integration/widget/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/memory
  • @chatbotkit/sdk/memory/index
  • @chatbotkit/sdk/memory/index.js
  • @chatbotkit/sdk/memory/v1
  • @chatbotkit/sdk/memory/v1.js
  • @chatbotkit/sdk/model/v1
  • @chatbotkit/sdk/model/v1.js
  • @chatbotkit/sdk/package.json
  • @chatbotkit/sdk/param
  • @chatbotkit/sdk/param.js
  • @chatbotkit/sdk/partner
  • @chatbotkit/sdk/partner/index
  • @chatbotkit/sdk/partner/index.js
  • @chatbotkit/sdk/partner/user
  • @chatbotkit/sdk/partner/user/context
  • @chatbotkit/sdk/partner/user/context/index
  • @chatbotkit/sdk/partner/user/context/index.js
  • @chatbotkit/sdk/partner/user/context/v1
  • @chatbotkit/sdk/partner/user/context/v1.js
  • @chatbotkit/sdk/partner/user/index
  • @chatbotkit/sdk/partner/user/index.js
  • @chatbotkit/sdk/partner/user/session
  • @chatbotkit/sdk/partner/user/session/index
  • @chatbotkit/sdk/partner/user/session/index.js
  • @chatbotkit/sdk/partner/user/session/v1
  • @chatbotkit/sdk/partner/user/session/v1.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/platform
  • @chatbotkit/sdk/platform/ability
  • @chatbotkit/sdk/platform/ability/index
  • @chatbotkit/sdk/platform/ability/index.js
  • @chatbotkit/sdk/platform/ability/v1
  • @chatbotkit/sdk/platform/ability/v1.js
  • @chatbotkit/sdk/platform/action
  • @chatbotkit/sdk/platform/action/index
  • @chatbotkit/sdk/platform/action/index.js
  • @chatbotkit/sdk/platform/action/v1
  • @chatbotkit/sdk/platform/action/v1.js
  • @chatbotkit/sdk/platform/doc
  • @chatbotkit/sdk/platform/doc/index
  • @chatbotkit/sdk/platform/doc/index.js
  • @chatbotkit/sdk/platform/doc/v1
  • @chatbotkit/sdk/platform/doc/v1.js
  • @chatbotkit/sdk/platform/example
  • @chatbotkit/sdk/platform/example/index
  • @chatbotkit/sdk/platform/example/index.js
  • @chatbotkit/sdk/platform/example/v1
  • @chatbotkit/sdk/platform/example/v1.js
  • @chatbotkit/sdk/platform/index
  • @chatbotkit/sdk/platform/index.js
  • @chatbotkit/sdk/platform/manual
  • @chatbotkit/sdk/platform/manual/index
  • @chatbotkit/sdk/platform/manual/index.js
  • @chatbotkit/sdk/platform/manual/v1
  • @chatbotkit/sdk/platform/manual/v1.js
  • @chatbotkit/sdk/platform/model
  • @chatbotkit/sdk/platform/model/index
  • @chatbotkit/sdk/platform/model/index.js
  • @chatbotkit/sdk/platform/model/v1
  • @chatbotkit/sdk/platform/model/v1.js
  • @chatbotkit/sdk/platform/report
  • @chatbotkit/sdk/platform/report/index
  • @chatbotkit/sdk/platform/report/index.js
  • @chatbotkit/sdk/platform/report/v1
  • @chatbotkit/sdk/platform/report/v1.js
  • @chatbotkit/sdk/platform/secret
  • @chatbotkit/sdk/platform/secret/index
  • @chatbotkit/sdk/platform/secret/index.js
  • @chatbotkit/sdk/platform/secret/v1
  • @chatbotkit/sdk/platform/secret/v1.js
  • @chatbotkit/sdk/platform/tutorial
  • @chatbotkit/sdk/platform/tutorial/index
  • @chatbotkit/sdk/platform/tutorial/index.js
  • @chatbotkit/sdk/platform/tutorial/v1
  • @chatbotkit/sdk/platform/tutorial/v1.js
  • @chatbotkit/sdk/platform/v1
  • @chatbotkit/sdk/platform/v1.js
  • @chatbotkit/sdk/policy
  • @chatbotkit/sdk/policy/index
  • @chatbotkit/sdk/policy/index.js
  • @chatbotkit/sdk/policy/v1
  • @chatbotkit/sdk/policy/v1.js
  • @chatbotkit/sdk/portal
  • @chatbotkit/sdk/portal/index
  • @chatbotkit/sdk/portal/index.js
  • @chatbotkit/sdk/portal/v1
  • @chatbotkit/sdk/portal/v1.js
  • @chatbotkit/sdk/secret
  • @chatbotkit/sdk/secret/index
  • @chatbotkit/sdk/secret/index.js
  • @chatbotkit/sdk/secret/v1
  • @chatbotkit/sdk/secret/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/space
  • @chatbotkit/sdk/space/index
  • @chatbotkit/sdk/space/index.js
  • @chatbotkit/sdk/space/site
  • @chatbotkit/sdk/space/site/index
  • @chatbotkit/sdk/space/site/index.js
  • @chatbotkit/sdk/space/site/v1
  • @chatbotkit/sdk/space/site/v1.js
  • @chatbotkit/sdk/space/storage
  • @chatbotkit/sdk/space/storage/index
  • @chatbotkit/sdk/space/storage/index.js
  • @chatbotkit/sdk/space/storage/v1
  • @chatbotkit/sdk/space/storage/v1.js
  • @chatbotkit/sdk/space/v1
  • @chatbotkit/sdk/space/v1.js
  • @chatbotkit/sdk/task
  • @chatbotkit/sdk/task/execution
  • @chatbotkit/sdk/task/execution/index
  • @chatbotkit/sdk/task/execution/index.js
  • @chatbotkit/sdk/task/execution/v1
  • @chatbotkit/sdk/task/execution/v1.js
  • @chatbotkit/sdk/task/index
  • @chatbotkit/sdk/task/index.js
  • @chatbotkit/sdk/task/v1
  • @chatbotkit/sdk/task/v1.js
  • @chatbotkit/sdk/team
  • @chatbotkit/sdk/team/index
  • @chatbotkit/sdk/team/index.js
  • @chatbotkit/sdk/team/v1
  • @chatbotkit/sdk/team/v1.js
  • @chatbotkit/sdk/types/ability
  • @chatbotkit/sdk/types/ability.js
  • @chatbotkit/sdk/types/api/v1
  • @chatbotkit/sdk/types/api/v1.js
  • @chatbotkit/sdk/types/report
  • @chatbotkit/sdk/types/report.js
  • @chatbotkit/sdk/usage
  • @chatbotkit/sdk/usage/index
  • @chatbotkit/sdk/usage/index.js
  • @chatbotkit/sdk/usage/series
  • @chatbotkit/sdk/usage/series/index
  • @chatbotkit/sdk/usage/series/index.js
  • @chatbotkit/sdk/usage/series/v1
  • @chatbotkit/sdk/usage/series/v1.js
  • @chatbotkit/sdk/usage/v1
  • @chatbotkit/sdk/usage/v1.js

Readme

ChatBotKit CBK.AI NPM Email Discord Follow on Twitter

ChatBotKit Node SDK

Welcome to the ChatBotKit Node SDK. This is a Node.js-based solution designed to simplify the process of building conversational AI chatbots. Utilize ChatBotKit to rapidly develop and deploy AI bots capable of natural language interactions.

Why ChatBotKit?

Build lighter, future-proof AI agents. When you build with ChatBotKit, the heavy lifting happens on our servers-not in your application. This architectural advantage delivers:

  • đŸĒļ Lightweight Agents: Your agents stay lean because complex AI processing, model orchestration, and tool execution happen server-side. Less code in your app means faster load times and simpler maintenance.

  • đŸ›Ąī¸ Robust & Streamlined: Server-side processing provides a more reliable experience with built-in error handling, automatic retries, and consistent behavior across all platforms.

  • 🔄 Backward & Forward Compatible: As AI technology evolves-new models, new capabilities, new paradigms-your agents automatically benefit. No code changes required on your end.

  • 🔮 Future-Proof: Agents you build today will remain capable tomorrow. When we add support for new AI models or capabilities, your existing agents gain those powers without any updates to your codebase.

This means you can focus on building great user experiences while ChatBotKit handles the complexity of the ever-changing AI landscape.

Getting Started

Embark on creating your chatbot with ChatBotKit in a few easy steps:

  1. Installation: To integrate the SDK into your project, use npm:
    npm install @chatbotkit/sdk
  2. Implementation: Start using the SDK to build and manage your chatbot.

Example: Streaming in Edge and Serverless Environments

Below is a straightforward example demonstrating how to implement streaming with the SDK in both Edge and Serverless environments:

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

// Initialize the ConversationClient
const client = new ConversationClient({
  /* configuration options */
})

// Stream messages using the ConversationClient
for await (const { type, data } of client
  .complete(null, { model: 'gpt-5-mini', messages })
  .stream()) {
  if (type === 'token') {
    process.stdout.write(data.token)
  }
}

// Additional processing can be added here

Explore a detailed example with more advanced features here.

Documentation

For an in-depth exploration of the ChatBotKit Node SDK, including insights into its capabilities and configurations for different environments, visit our type documentation page.

Contributing

Encountered a bug or interested in contributing? Your participation is highly appreciated! Feel free to open an issue or submit a pull request on our official GitHub repository.

Built With ChatBotKit

  • FormShare - Bring your forms to life with generative UI.
  • PeopleAI - Experience history like never before with our AI chatbots.