---
sourceDocument: Xanadu 대화형 인터페이스
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/xanadu/conversational-interfaces

 Release :

    - xanadu

ft:locale :

    - ko-KR

ft:publication_title :

    - Xanadu 대화형 인터페이스

ft:clusterId :

    - convint

bundleId :

    - convint

workflow :

    - Platform


---

# 외부 공급업체 웹 사이트에 휴대용 가상 에이전트 웹 클라이언트 추가

# 외부 공급업체 웹 사이트에 휴대용 가상 에이전트 웹 클라이언트 추가 {#ariaid-title1}

* 릴리스 버전: Xanadu
* 
* 업데이트 날짜 2024년 08월 01일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 3분

타사 웹 페이지에서 Portable Web Client 채팅 위젯을 가상 에이전트 사용하려면 웹 페이지에 필요한 코드를 추가하십시오.

## 시작하기 전에

[휴대용 가상 에이전트 웹 클라이언트 구성](https://servicenow-prod.fluidtopics.net/DGRC4XhHfONJ4TN93EHG0A "외부 공급업체 웹 페이지에서 실행 가상 에이전트 되도록 휴대용 웹 클라이언트 채팅 위젯을 구성합니다.") 이 항목의 단계를 완료하기 전에.

자세한 내용은 사이트의 [외부 사이트에 가상 에이전트를 포함하는 방법](https://www.servicenow.com/community/virtual-agent-nlu-articles/how-to-embed-virtual-agent-in-an-external-site-updated-for-tokyo/ta-p/2308092) 문서를 검토하세요 ServiceNow 커뮤니티 .

필요한 역할: virtual_agent_admin 또는 admin

## 프로시저

페이지 헤더에 대한 이 스크립트 참조를 임포트하고 인스턴스화하여 외부 페이지 헤더에 채팅 인스턴스를 작성 ServiceNow 합니다.  
주:  
스크립트 참조 예에서 site1.example.com 는 인스턴스의 URL을 참조합니다 ServiceNow .

    <script type="module" >
          import ServiceNowChat from "https://site1.example.com/uxasset/externals/now-requestor-chat-popover-app/index.jsdbx?sysparm_substitute=false";
          var chat = new ServiceNowChat({ instance: "https://site1.example.com/", });
        </script>

팁:  
조직에서 사용자 지정 도메인 이름을 사용하는 경우 도메인 이름 대신 ServiceNow 사용자 지정 도메인 이름을 인스턴스 속성으로 입력하여 브라우저 결과가 여러 브라우저 간에 일관되도록 합니다.

구성 예
:

        const chat = new ServiceNowChat({
        	instance: 'https://site1.example.com',
        	context: {
        		skip_load_history: 1
        	},
        	branding: {
        		bgColor: '#333',
        		primaryColor: '#000',
        		hoverColor: '#EFEFEF',
        		activeColor: '#AAA',
        		openIcon: 'custom-open.svg',
        		closeIcon: 'custom-close.svg',
        		sizeMultiplier: 1.6
        	},
        	offsetX: 50,
        	offsetY: 50,
        	position: 'left',
        	translations: {
        		'Open dialog': 'Open chat',
        		'Open Chat. {0} unread message(s)': 'Click to open',
        		'Close chat.': 'Click to close',
        	},
        });

JSON 구성 스키마
:

        {
            instance: <string> - url to your instance, must be of the same domain (sub-domain)
            context: <object> - sys_parm variables to pass into the iframe
            branding: <object> - branding settings
                  bgColor: <rgb|hex> - can take an rgb tuple, ie: '56,56,56' or a 3 or 6 hex color code, ie: #333 or #efefef.  background color of button
           	primaryColor: <rgb|hex> - font color
           	hoverColor: <rgb|hex> - hover background color of button
           	activeColor: <rgb|hex> - click / active background color of button
           	openIcon: <string> - name of the uploaded custom icon in settings
           	closeIcon: <string> - name of the uploaded custom icon in settings
           offsetX: <integer> - distance in pixels the button moves along the x-axis
           offsetY: <integer> - distance in pixels the button moves along the y-axis
           position: <enum: left|right> - position left or right side of screen
           translations: <object> - contains label mappings for translations or label changes
           	'Open dialog': <string> - replacement text for accessibility
           	'Open Chat. {0} unread messages(s)': <string> - replacement text for tooltip
           	'Close chat.': <string> - replacement text for tooltip
        }


