Getting Started
This document provides instructions on how to use the Klleon Chat SDK for JavaScript (hereafter referred to as JavaScript SDK), offered by the Klleon platform.
Last updated
This document provides instructions on how to use the Klleon Chat SDK for JavaScript (hereafter referred to as JavaScript SDK), offered by the Klleon platform.
Last updated
To call the Klleon API via the JavaScript SDK, you need to register your site domain.
Domain registration can be completed in the SDK Management section of . If you encounter difficulties during the registration process, please contact : partnership@klleon.io
Include the JavaScript SDK file in your web page. Ensure the correct version is specified in the script tag.
Initialize the SDK using the init()
method by providing the issued sdk_key
and the avtar_id
you wish to use.
sdk_key
string
O
-
Your SDK Key.
avatar_id
string
O
-
The ID of the avatar to be used.
subtitle_code
string
X
ko_kr
Adjusts the language of the avatar's speech text.
ko_kr
: Korean
en_us
: English
ja_jp
: Japanes
id_id
: Indonesian
voice_code
string
X
ko_kr
Adjusts the language of the avatar's spoken voice.
ko_kr
: Korean
en_us
: English
ja_jp
: Japanes
id_id
: Indonesian
voice_tts_speech_speed
number
X
1.0
Adjusts the speed of the avatar's speech. Range: (0.5 ~ 2.0)
enable_microphone
boolean
X
true
Connects without requiring browser microphone permission.
log_level
string
X
debug
user_key
string
X
-
The key value created through the endUser creation API is mapped. This key value includes the endUser key and an expiration timestamp.
Set the logging level for .
debug
: Logs debug level or higher.
info
: Logs info level or higher.
warn
: Logs warning level or higher.
error
: Logs error level only.
silent
: Does not output logs.