연결하기
Last updated
Last updated
static 파일의 <body/>
태그 아래에 아래 코드를 작성합니다.
버전이 포함된 자세한 정보는 에서 확인 할 수 있습니다.
init 메서드를 사용하여 SDK를 초기화합니다. 초기화 작업은 챗봇의 기본 데이터를 생성하는데에 필요한 작업입니다.
serviceName
string
챗봇의 서비스 명으로 사용할 값
serviceKey
string
어드민에서 제공받은 프로젝트 키
create 메서드를 사용하여 SDK를 시작합니다. 해당 작업은 함수와 같이 작동하여 이벤트 형식으로 사용할 수 있습니다.
title
string
챗봇의 타이틀 이름을 설정합니다
renderFloatingBadge
boolean
Badge 버튼의 렌더링 유무를 선택합니다
titleColor
string(hex)
타이틀 컬러를 변경합니다
headerBackgroundColor
string(hex)
헤더의 배경 색상을 변경합니다
closeButtonColor
string(hex)
챗봇의 닫기 버튼 컬러를 변경합니다
chatWidth
number
챗봇의 가로 크기를 변경합니다
chatHeight
number
챗봇의 세로 크기를 결정합니다
backgroundColor
string(hex)
대화 영역의 배경 색상을 변경합니다
bubbleBackgroundColor
string(hex)
사용자 채팅 배경 색상을 변경합니다
bubbleTextColor
string(hex)
사용자 채팅 텍스트 색상을 변경합니다
timeStampColor
string(hex)
사용자 채팅 타임스탬프 색상을 변경합니다
agentBubbleBackgroundColor
string(hex)
에이전트 채팅 배경 영역 색상을 변경합니다
agentTextColor
string(hex)
에이전트 채팅 텍스트 색상을 변경합니다
agentTimeStampColor
string(hex)
에이전트 채팅 타임스탬프 색상을 변경합니다
inputBackgroundColor
string(hex)
채팅 입력란 배경 영역 색상을 변경합니다
inputPlaceholderColor
string(hex)
채팅 입력란 플레이스홀더 색상을 변경합니다
inputPlaceholder
string
채팅 입력란 플레이스홀더 값을 변경합니다
welcomeMessage
string[]
웰컴 메시지를 변경합니다
customBadgeButton
string[]
사용자가 작성한 임의의 뱃지 버튼을 사용합니다