Skip to content

butlerbots/alfred5_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/sdk

NOTE: API key is currently not available on the ButlerBot UI

Prerequisites

  • 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", ... }
});

About

The official JavaScript ButlerBot SDK

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published