0.0.3 • Published 12 months ago
@butlerbot/sdk v0.0.3
ButlerBot SDK
ButlerBot SDK is a JavaScript library that provides a simple way to interact with the ButlerBot API.
Quickstart
Grab an API key at ButlerBot and install the package:
npm i @butlerbot/sdkPrerequisites
- ButlerBot API key
Example
import { ButlerBotClient } from "@butlerbot/sdk";
const client = new ButlerBotClient({
apiKey: "your_api_key_here",
});
const convo = client.createConversation();
convo.send("Hey there Alfred!", (res) => {
if (!res.success) return;
const { type, payload } = res.data.response;
console.log(type, payload); // message { message: "Good day", ... }
});0.0.3
12 months ago
0.0.2
12 months ago
0.0.1
12 months ago
0.0.1-alpha5
12 months ago
0.0.1-alpha4
12 months ago
0.0.1-alpha3
12 months ago
0.0.1-alpha2
12 months ago
0.0.1-alpha1
12 months ago