Klleon Chat SDK
English
English
  • ✨New Javascript SDK [1.2.0]
    • Getting Started
    • Events
    • UI
    • Methods
      • Life Cycle
      • Text Chat
      • Voice Chat
      • Echo Chat
      • Audio Echo Chat
      • Other
    • TypeScript Support
    • Examples
      • VanillaJS
      • React
      • Nextjs
    • Log System
    • Updates
  • JavaScript SDK [v0.x.x] (Planned for Deprecation)
    • Quick Start
    • Initialize
    • Avatar Streaming
      • Start Streaming
      • Stop Streaming
      • Control Streaming Screen
    • Set Chat Screen
    • Text Message
    • Voice Message
    • Echo - Repeat My Message
    • Event Subscription
    • Updates
  • Service Architecture
Powered by GitBook
LogoLogo

Products

  • Pricing

Websites

  • Homepage
  • Youtube
  • Linkedin

Copyright © Klleon. All rights reserved

On this page
  • Initialize the JavaScript SDK
  • Parameters
  • Example
  1. JavaScript SDK [v0.x.x] (Planned for Deprecation)

Initialize

Initialize setting by calling the JavaScript SDK initialize method.

PreviousQuick StartNextAvatar Streaming

Last updated 7 months ago

Initialize the JavaScript SDK

Refer to to embed and initialize the JavaScript SDK in your web page.


Parameters

Name
Type
Default
Description
Required

sdk_key

String

  • Issued JavaScript SDK Key

O

locale

String

Javascript SDK language ko_kr: Korean en_us: English

ja_jp: Japanese

X

log_level

String

debug

none: No log exposure

debug: Detailed information

Info: Event messages

error: Error information

X

Example

<script>
    async function init() {
        const option = {
            sdk_key: '${sdk_key}',
            locale: 'en_us',
            log_level: 'debug'
        };
        await KlleonChat.init(option);
    }
}
</script>
Quick Start