Configuration

The simple steps for including the ĀLO Chat SDK into your application.

Get Your API Key

If you do not already have an API key please see Developer Account.

Install

yarn add @aloai/alo-chat-js
// or
npm install @aloai/alo-chat-js --save

Import

import Chat from '@aloai/alo-chat-js';

Initialize Chat Client

import Chat from '@aloai/alo-chat-js';

const chat = new Chat({
    authToken: "USER_AUTH_TOKEN_GOES_HERE", // required
    userId: "b98e7c91-b869-4f57-9e2a-b90cb85f8f0e", // required
    deviceId: "x4f57" // optional
});

Props

Last updated

Logo

© Copyright 2024 ALO.ai, Inc. • All Rights Reserved