LogoLogo
ALO.ai
Developer Documentation
Developer Documentation
  • Developer Documentation
  • Developer Account
    • API Key
  • SDKs
    • Authentication
    • Chat
      • Configuration
      • Send Messages
        • Upload Files
      • Message History
      • Message Actions
      • Message Counts
      • Translation
      • Typing Indicators
      • API Reference
        • Event
        • Message
    • Presence
      • Configuration
      • Basic Usage
      • Methods
    • Audio
      • Prerequisites
      • Instantiating Audio Service
      • Connect to a Channel
      • Disconnecting Audio Service
      • Push To Talk (PTT)
      • Full Duplex
      • Mute and Unmute Audio
      • Input/Output Device Selection
        • Microphone Selection
        • Speaker Selection
      • Channel Participants
      • Text To Speech Audio (TTS)
      • Automatic Reconnects
      • Handling Events
      • Classes
        • AloAudio
        • AudioUser
        • AudioChannel
        • Participant
    • Video
      • Prerequisites
      • Instantiating Video Service
      • Connect to a Channel
      • Disconnecting Video Service
      • Input Device Selection
        • Microphone Selection
        • Camera Selection
      • Publishing Streams
      • Modifying Published Streams
      • Channel Participants
      • Rendering Streams
        • Local Stream
        • Remote Streams
      • Muting/Unmuting Remote Streams
      • Recording Video (coming soon)
      • Automatic Reconnects
      • Handling Events
      • Classes
        • AloVideo
        • Participant
        • VideoChannel
        • VideoUser
  • ALO APPS
    • Overview
    • Creating Apps
    • Webhooks
      • Verifying Requests from ALO
    • Custom Action Forms
    • Using the ALO Platform API
  • ALO Platform API
    • Overview
    • Authentication
    • API
      • Actions and Periods
      • Channels
      • Channel Messages
      • Channel Users
      • Direct Message Channels
      • Direct Message Channel Chat Messages
      • Direct Message Channel Users
      • Groups
      • Periods
      • Types
      • Users
      • Video Management System
  • Misc
    • Supported Language Codes
Powered by GitBook
LogoLogo

ALO.ai

  • ALO.ai

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

On this page
  • Get Your API Key
  • Install
  • Import
  • Initialize Chat Client
  • Props
  1. SDKs
  2. Chat

Configuration

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

PreviousChatNextSend Messages

Last updated 8 months ago

Get Your API Key

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

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

Name

Type

Required

Description

authToken

string

yes

userId

string

yes

The unique identifier of the user represented as the author of the messages sent by this client. The userId must match the userId that was specified when the authToken was created.

deviceId

string

no

The unique identifier of the device scoped to a userId. If left blank the SDK will use a random uuid instead.

The token generated by the ALO auth service. This is what allows the client access to the channels and messages specified when the authToken was created. See .

Developer Account
Generating User Authentication Tokens