@intheroomglobal/speakeasy-js
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Speakeasy JavaScript SDK

This SDK allows you to build interactive conversational experiences using the Speakeasy API from In The Room.

Getting started

  1. Install the package npm install -S @intheroomglobal/speakeasy-js
  2. Load the SDK, passing your API key and the ID of the experience:
import Speakeasy from '@intheroomglobal/speakeasy-js';

(async () => {
  const speakeasy = await Speakeasy.load({
    apiKey: '<YOUR_API_KEY>',
    experienceId: '<YOUR_EXPERIENCE_ID>'
  });

  // Access experience data
  console.log(speakeasy.experience);

  // Communicate
  const response = await speakeasy.text("Hello, Speakeasy!");
})();

/@intheroomglobal/speakeasy-js/

    Package Sidebar

    Install

    npm i @intheroomglobal/speakeasy-js

    Weekly Downloads

    0

    Version

    0.5.1

    License

    ISC

    Unpacked Size

    43 kB

    Total Files

    37

    Last publish

    Collaborators

    • leesus
    • scruffymongrel