botcircuits
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

BotCircuits Node API Library

NPM version

BotCircuits is a No-Code AI platform enables effortless creation of intelligent chatbots with human-like conversational capabilities.

This library provides access to the BotCircuits REST API from TypeScript or JavaScript

To learn how more about BotCircuits, check out our Product Demo

Installation

npm install --save botcircuits
# or
yarn add botcircuits

Usage

The code below shows how to get started using the chat endpoint.

import { BotCircuitsClient } from "botcircuits";

const client = new BotCircuitsClient({
    appId: "my app id",
    apiKey: "my api key"
});

async function main() {
    const sessionId = client.chat.createSessionId(); // unique id
    const subscription = client.chat.subscribe(sessionId, response => {
        console.log(response);
    });

    await client.chat.publish({
        sessionId: sessionId,
        inputText: "hello"
    });
}

main();

Readme

Keywords

none

Package Sidebar

Install

npm i botcircuits

Weekly Downloads

0

Version

0.0.8

License

ISC

Unpacked Size

13.1 kB

Total Files

14

Last publish

Collaborators

  • botcircuits_tharanga