@intheroomglobal/speakeasy-js
v0.5.1
Published
Speakeasy JavaScript SDK from In The Room
Downloads
26
Readme
Speakeasy JavaScript SDK
This SDK allows you to build interactive conversational experiences using the Speakeasy API from In The Room.
Getting started
- Install the package
npm install -S @intheroomglobal/speakeasy-js
- 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!");
})();