주문 문제를 라우팅하는 채팅 서비스 채널에 대한 큐를 생성합니다.
시작하기 전에
필요한 역할: awa_admin 또는 admin
프로시저
-
Queues(대기열) 목록 뷰에서 New(새로 만들기)를 클릭합니다.
-
나열된 필드에 다음 정보를 입력합니다.
- 이름: 주문 지원
- 서비스 채널: 채팅
- 조건 모드: 고급
-
스크립트 필드에 다음 스크립트를 입력합니다.
(function executeCondition(/* glide record */ current) {
var contextTable = current.getValue('context_table');
var interactionBlobRecord = new GlideRecord(contextTable);
interactionBlobRecord.addQuery('sys_id',current.getValue('context_document'));
interactionBlobRecord.query();
if(interactionBlobRecord.next()){
var jsonBlob = JSON.parse(interactionBlobRecord.getValue('value'));
if(jsonBlob.liveagent_csp_category == 'order')
return true;
}
return false;
})(current);
-
제출을 클릭합니다.