Node SDK
ChatBotKit offers a Node.js software development kit (SDK) that enables developers to create advanced conversational AI applications quickly and easily. With the ChatBotKit Node SDK, developers can build chatbots, assistants, and other types of conversational AI applications with just a few lines of code.
The ChatBotKit Node SDK provides a flexible platform for developers to build their own custom chatbot applications. It includes support for advanced AI technologies to help developers create intelligent and engaging chatbots that can handle a variety of tasks.
The ChatBotKit Node SDK is designed to be easy to use, with a simple API that can be integrated into any application. It includes comprehensive documentation and sample code to help developers get started quickly and easily. With the ChatBotKit Node SDK, developers can build powerful conversational AI applications in no time.
Key Features
- Easy to use API: Get started building conversational AI applications quickly and easily.
- Machine learning: Train your chatbot to learn from user interactions and improve over time.
- Comprehensive documentation: Get up and running with ChatBotKit Node SDK quickly with our comprehensive documentation.
- Sample code: Explore sample code to learn how to build intelligent and engaging chatbots.
- Cross-platform: The ChatBotKit Node SDK can be used on a variety of platforms such as Vercel, Cloudflare, AWS Lambda any many more.
- Framework-ready: The Node SDK is suitable for many different types of framework including Next.js.
Getting Start
To install the SDK simply use the following NPM command:
npm install @chatbotkit/sdk
Then we can use it to interact with our bot just like this:
import { ChatBotKit } from '@chatbotkit/sdk' const client = new ChatBotKit({ secret: 'our token key' }) const { id: conversationId } = await client.conversation.create({ botId: 'some bot id' }) await client.conversation.send({ text: 'Hi there' }) for await (const { type, token } of client.conversation.receive({}).stream()) { if (type === 'token') { console.log(token) } }
This is just one of the many ways to interact with your bots.