Skip to main content

Interactly Client SDK

This package lets you make calls directly to Interactly in your webapp.

Installation

Install the package:

Importing

Import the package:
Then, create a new instance of the Interactly class, passing your Public Key and Api base url as parameters to the constructor:
You can find your public key and Api base url in the Dashboard.

Usage

.start()

You can start a call by calling the start method and passing an assistantId as a parameter:

.stop()

You can stop the call by calling the stop method:
This will stop the events listening and close the connection.

Events

You can listen to the following events:
  • call-start
  • call-end
  • message
  • error
These events allow you to react to changes in the state of the call or speech.

Resources

NPM

View Package on NPM.

GitHub

View Package on GitHub.