4단계: 웹 클라이언트 초기화

웹 SDK 구성 호출 후 부트스트랩 API를 호출하여 웹 클라이언트를 초기화합니다.

window.adobe.concierge.bootstrap({
  instanceName: "alloy",
  stylingConfigurations: window.styleConfigurations,
  selector: "#brand-concierge-mount"
});
매개 변수유형필수 여부설명
instanceNamestring예웹 SDK 인스턴스 이름입니다.
stylingConfigurationsJSON 개체예웹 클라이언트 스타일 구성(시각적 및 콘텐츠 사용자 지정 참조).
selectorstring예웹 클라이언트가 마운트하는 HTML 요소에 대한 CSS 선택기입니다.
onEvent함수아니오클라이언트측 이벤트에 대한 콜백(클라이언트측 이벤트 및 콜백 함수 참조).

시각적 및 콘텐츠 사용자 지정

bootstrap()(으)로 전달된 stylingConfigurations 개체는 웹 클라이언트 전체에서 모양, 동작 및 텍스트를 제어합니다. 여러 영역으로 구성됩니다.

메타데이터

"metadata": {
  "brandName": "Your Brand",
  "version": "1.0.0",
  "language": "en-US",
  "namespace": "brand-concierge"
}

비헤이비어

개별 채팅 기능의 기능 동작을 제어합니다.

"behavior": {
  "input": {
    "enableVoiceInput": true
  },
  "chat": {
    "messageAlignment": "left",
    "messageWidth": "80%"
  },
  "privacyNotice": {
    "title": "Privacy Notice",
    "text": "By using this automated chatbot, you consent that any personal information you provide in the chat may be collected, used, analyzed, disclosed, and retained by Adobe and its service providers, in accordance with the Adobe Privacy Policy. Please do not enter any sensitive personal information (e.g., financial or health data)."
  },
  "disclaimer": {
    "attachWithInput": true
  },
  "chatTranscript": {
    "enabled": true,
    "maxSessions": 1,
    "maxMessagesPerSession": 20,
    "cleanupInterval": 24
  },
  "meetingForm": {
    "fieldsPerRow": 2,
    "title": { "text": "Schedule meeting", "alignment": "left" },
    "subtitle": { "text": "I'd be happy to help you schedule a meeting! Please fill out the form below, and we'll follow up with a calendar to confirm your day and time.", "alignment": "left" },
    "buttons": {
      "submit": { "text": "Schedule meeting", "alignment": "left" },
      "cancel": { "text": "Cancel", "alignment": "left" }
    }
  },
  "calendarWidget": {
    "title": { "text": "Book a meeting", "alignment": "left" },
    "subtitle": { "text": "Thanks! Here's a calendar where you can choose a time that works best for your schedule:", "alignment": "left" },
    "postTitle": { "text": "Once confirmed, you'll receive a calendar invite with all the details.", "alignment": "left" },
    "buttons": {
      "confirm": { "text": "Schedule a meeting", "alignment": "left" },
      "cancel": { "text": "Cancel", "alignment": "left" }
    }
  }
}

면책 조항

"disclaimer": {
  "text": "AI responses may be inaccurate or misleading. Be sure to double check answers and sources."
}

텍스트 문자열

text 개체를 통해 모든 사용자 대상 복사본을 재정의할 수 있습니다. 일반 키:

키용도
welcome.heading / welcome.subheading시작 화면 제목 및 하위 텍스트
input.placeholder입력 필드 자리 표시자 텍스트
input.messageInput.aria / input.send.aria / input.mic.aria입력 컨트롤의 접근성 레이블
error.network / error.general방문자에게 표시되는 오류 메시지
loading.message응답이 생성되는 동안 표시되는 텍스트
feedback.dialog.title.positive / .negative피드백 대화 상자 제목
feedback.dialog.question.positive / .negative피드백 대화 상자 프롬프트 텍스트
feedback.toast.success피드백이 제출된 후 확인 알림
feedback.thumbsUp.aria / feedback.thumbsDown.aria피드백 단추의 접근성 레이블

배열

구성 가능한 콘텐츠 목록:

"arrays": {
  "welcome.examples": [
    {
      "text": "I want to edit and enhance my photos",
      "image": "https://example.com/idea-1.png",
      "backgroundColor": "#66BFE7"
    }
  ],
  "feedback.positive.options": [
    "Helpful and relevant recommendations",
    "Clear and easy to understand",
    "Friendly and conversational tone",
    "Visually appealing presentation",
    "Other"
  ],
  "feedback.negative.options": [
    "Not helpful or relevant",
    "Confusing or unclear",
    "Too formal or robotic",
    "Poor visual presentation",
    "Other"
  ]
}

자산

"assets": {
  "icons": {
    "company": "<svg>...</svg>"
  }
}

테마

색상, 글꼴 및 레이아웃을 제어하는 CSS 사용자 지정 속성:

"theme": {
  "--color-primary": "#1473e6",
  "--color-primary-hover": "#0056b3",
  "--color-button-primary": "#3B63FB",
  "--color-accent": "#9085ED",
  "--color-button-submit": "#4759e6",
  "--color-button-submit-hover": "#3a4bce",
  "--color-message-user": "#1473e6",
  "--font-family": "'Adobe Clean', adobe-clean, 'Trebuchet MS', sans-serif",
  "--main-container-background": "linear-gradient(135deg, #66ccff, #cc99ff, #ffcc99, #ccff99)",
  "--submit-button-fill-color": "white",
  "--card-text-background": "var(--color-background)",
  "--card-text-border-radius": "var(--border-radius-card)",
  "--message-concierge-link-decoration": "underline",
  "--message-max-width": "100%"
}

클라이언트측 이벤트 및 콜백 함수

이벤트 콜백 시스템을 사용하면 페이지에서 웹 클라이언트 라이프사이클 이벤트, 사용자 상호 작용, 응답, 피드백 및 오류를 실시간으로 관찰할 수 있으며, 이는 Adobe Analytics, Google Analytics 또는 기타 서드파티 시스템에 참여 데이터를 전송하는 데 유용합니다.

주요 특성

  • 단일 콜백 — onEvent 함수 하나는 event.eventType으로 구분되는 모든 이벤트 형식을 수신합니다.
  • 읽기 전용 — 이벤트 데이터는 복제된 스냅샷이므로 클라이언트의 동작을 수정하는 데 사용할 수 없습니다.
  • 오류 격리 — 콜백 내에서 throw된 예외가 포착되고 기록되며 웹 클라이언트를 중단하지 않습니다.
  • bootstrap()​을(를) 통해 등록됨 — onBeforeEventSend과(와) 같은 방식으로 전달되었습니다.

빠른 시작

window.adobe.concierge.bootstrap({
  instanceName: "my-instance",
  selector: "#brand-concierge-mount",
  stylingConfigurations: { /* ... */ },
  onEvent: (event) => {
    console.log(event.eventType, event.timestamp, event.data);
  }
});

이벤트 유형별 필터링

onEvent: (event) => {
  switch (event.eventType) {
    case "query:submitted":
      console.log("User query:", event.data.query);
      break;
    case "response:completed":
      console.log("Response received:", event.data.conversationId);
      break;
    case "card:clicked":
      console.log("Card clicked:", event.data.element.entity_info.productName);
      break;
    case "error:occurred":
      console.log("Error:", event.data.errorMessage);
      break;
  }
}

이벤트 유형

이벤트 유형값카테고리실행 시
WEBCLIENT_INITIALIZEDwebclient:initialized라이프사이클클라이언트가 초기화(DOM 마운트, 콘텐츠 로드)를 완료합니다.
QUERY_SUBMITTEDquery:submitted사용자 상호 작용사용자가 메시지(입력 또는 제안) 제출
PROMPT_SUGGESTION_CLICKEDpromptSuggestion:clicked사용자 상호 작용사용자가 즉석 제안 알약을 클릭합니다.
CARD_CLICKEDcard:clicked사용자 상호 작용사용자가 카드를 클릭합니다.
HISTORY_CLEAREDhistory:cleared사용자 상호 작용사용자가 채팅 기록을 지웁니다.
RESPONSE_STARTEDresponse:started응답API에서 첫 번째 스트리밍 청크 도착
RESPONSE_COMPLETEDresponse:completed응답전체 응답이 수신되고 렌더링됩니다.
CARDS_RENDEREDcards:rendered응답카드(단일 이미지 또는 캐러셀) 렌더링 완료
FEEDBACK_SUBMITTEDfeedback:submitted피드백사용자가 피드백 양식(세부 정보가 있는 엄지 손가락 위/아래)을 제출함
ERROR_OCCURREDerror:occurred오류오류가 발생합니다(네트워크, API 또는 런타임).

라이프사이클 이벤트

클라이언트가 완전히 초기화된 후 webclient:initialized이(가) 실행됩니다. 콘텐츠 로드, CSS 주입, DOM에서 렌더링된 채팅 UI.

{
  "eventType": "webclient:initialized",
  "timestamp": 1741638123789,
  "data": {
    "instanceName": "my-instance"
  }
}

사용자 상호 작용 이벤트

query:submitted은(는) 사용자가 입력한 메시지를 프롬프트 제안 또는 위젯 옵션에서 제출하면 실행됩니다.

{
  "eventType": "query:submitted",
  "timestamp": 1741638124000,
  "data": {
    "query": "What photo editing tools do you offer?"
  }
}

promptSuggestion:clicked은(는) 사용자가 프롬프트 제안 알약을 클릭할 때 실행됩니다. 후속 query:submitted 이벤트에서 이전​에 실행됩니다.

{
  "eventType": "promptSuggestion:clicked",
  "timestamp": 1741638124100,
  "data": {
    "suggestion": "Tell me more about Photoshop"
  }
}

card:clicked은(는) 사용자가 카드를 클릭할 때 실행됩니다.

{
  "eventType": "card:clicked",
  "timestamp": 1741638124200,
  "data": {
    "element": {
      "entity_info": {
        "productName": "Adobe Photoshop",
        "productDescription": "Photo editing software",
        "productPageURL": "https://www.adobe.com/kr/products/photoshop.html",
        "productImageURL": "https://example.com/photoshop.png"
      }
    }
  }
}

history:cleared은(는) 사용자가 [채팅 기록 지우기] 단추를 클릭할 때 실행됩니다.

{
  "eventType": "history:cleared",
  "timestamp": 1741638124400,
  "data": {}
}

응답 이벤트

response:started은(는) API에서 첫 번째 스트리밍 청크가 도착할 때 실행됩니다.

{
  "eventType": "response:started",
  "timestamp": 1741638125000,
  "data": {
    "conversationId": "conv-abc-123",
    "interactionId": "int-xyz-456"
  }
}

response:completed은(는) 전체 응답을 받으면 실행됩니다.

{
  "eventType": "response:completed",
  "timestamp": 1741638126000,
  "data": {
    "conversationId": "conv-abc-123",
    "interactionId": "int-xyz-456"
  }
}

카드가 DOM에서 렌더링된 후 cards:rendered이(가) 실행됩니다. 이 변수는 response:completed과(와) 별도로 실행되며 사용된 표시 모드를 나타냅니다.

{
  "eventType": "cards:rendered",
  "timestamp": 1741638126100,
  "data": {
    "element": [
      { "entity_info": { "productName": "Adobe Photoshop" } },
      { "entity_info": { "productName": "Adobe Illustrator" } }
    ],
    "displayMode": "carousel"
  }
}

피드백 이벤트

feedback:submitted은(는) 사용자가 피드백 양식을 완료하고 제출할 때(엄지 손가락을 위/아래로 올린 후) 실행됩니다.

{
  "eventType": "feedback:submitted",
  "timestamp": 1741638127000,
  "data": {
    "conversationId": "conv-abc-123",
    "interactionId": "int-xyz-456",
    "feedbackType": "negative",
    "selectedOptions": ["Incorrect information", "Not relevant"],
    "notes": "The response did not address my question about pricing."
  }
}

오류 이벤트

error:occurred은(는) 클라이언트에서 네트워크, API 또는 런타임 오류가 발생할 때 실행됩니다.

{
  "eventType": "error:occurred",
  "timestamp": 1741638128000,
  "data": {
    "errorMessage": "Something went wrong. Please try again."
  }
}

이벤트 오브젝트 구조

모든 이벤트는 동일한 최상위 셰이프를 공유합니다.

interface BrandConciergeEvent {
  eventType: string;  // e.g. "query:submitted"
  timestamp: number;  // Unix epoch, milliseconds
  data: object;       // Event-specific payload
}

데이터 유형 참조: 요소(제품 카드)

interface Element {
  id?: string;
  type?: string;
  entity_info: {
    productName: string;
    productDescription: string;
    description: string;
    productPageURL: string;
    details: string;
    backgroundColor: string;
    learningResource: string;
    productImageURL: string;
    logo: string;
    variants?: Record<string, ElementVariant>;
    primary: ElementAction;
    secondary: ElementAction;
  };
}

interface ElementAction {
  label: string;
  url: string;
}

모범 사례

  • 분석 및 모니터링에 사용합니다. 참여, 쿼리 패턴 및 제품 관심 사항을 추적하고, error:occurred을(를) 오류 추적 서비스로 전달하고, 전환 분석을 위해 카드 클릭을 추적합니다.
  • 콜백을 빠르게 유지하세요. 기본 스레드에서 동기적으로 실행되므로 네트워크 호출을 차단하지 마십시오.
// Good — fire and forget
onEvent: (event) => {
  navigator.sendBeacon("/analytics", JSON.stringify(event));
}

// Avoid — blocking network call
onEvent: async (event) => {
  await fetch("/analytics", { body: JSON.stringify(event) });
}
  • 상태 컴퓨터에 대해 엄격한 이벤트 순서를 사용하지 마십시오. 이벤트가 논리 시퀀스에서 실행되지만 순서를 가정하는 대신 conversationId 및 interactionId을(를) 사용하여 관련 이벤트를 상호 연결합니다.
  • 콜백 내의 오류를 처리합니다. 클라이언트가 콜백 오류를 격리하고 기록하지만 콜백 내의 처리되지 않은 오류는 여전히 분석 데이터를 잃을 수 있습니다.
onEvent: (event) => {
  try {
    myAnalytics.track(event);
  } catch (e) {
    console.warn("Analytics tracking failed", e);
  }
}

AEP 쿼리 서비스를 사용하여 대화 내보내기

Brand Concierge은 대화 데이터(프롬프트, 응답 및 피드백)를 Adobe Experience Platform(AEP) 데이터 세트에 기록합니다. SQL(쿼리 서비스)로 직접 쿼리하여 사용자 지정 보고서를 작성할 수 있습니다.

데이터 세트 및 테이블 이름 찾기

  1. Adobe Experience Platform을 엽니다.

  2. 데이터 세트(으)로 이동합니다.

  3. Brand Concierge 관련 데이터 세트를 나열하려면 cja_brand_concierge을(를) 검색합니다.

  4. 필요한 데이터 세트를 엽니다(예: 응답이 다른 흐름과 비교하여 둘 이상 있는 경우).

  5. 데이터 집합 세부 사항 보기에서 쿼리 서비스에 사용되는 테이블 이름​을(를) 찾고 샘플 또는 미리 보기 데이터를 검사하여 열(프롬프트, 응답, 피드백, 타임스탬프 등)을 확인합니다.

참고
테이블 이름은 각 데이터 세트에 연결되며 환경 및 샌드박스별로 다릅니다. 샌드박스 또는 배포가 여러 개인 경우 올바른 샌드박스에서 이 단계를 반복하여 데이터가 작성된 테이블 이름을 일치시킵니다.

예제 쿼리

SELECT *
FROM cja_brand_concierge_responses_dataset_5f5105bd_1c38_4ebc_8505_bd
WHERE timestamp >= TIMESTAMP '2026-03-16 00:00:00'
  AND timestamp <= NOW()
ORDER BY timestamp ASC;
중요
위의 표 이름은 단지 그림일 뿐입니다. 하드 코딩하지 마십시오. 먼저 AEP에서 데이터 세트의 실제 테이블 이름을 확인하고(데이터 세트 및 테이블 이름 찾기 참조), 보고 요구 사항에 맞게 시간 필터, 정렬 순서 또는 기타 절을 조정하십시오. 데이터 세트와 동일한 샌드박스를 사용하여 조직의 쿼리 서비스 워크플로우(UI, API 또는 연결된 클라이언트)에서 쿼리를 실행합니다.

쿼리 서비스 UI에서 쿼리 실행

보고를 위해 수동 데이터 가져오기가 필요한 경우 쿼리 서비스 UI를 통해 결과를 직접 실행하고 다운로드할 수 있습니다.

  1. Adobe Experience Platform에서 쿼리(으)로 이동합니다.

  2. 편집기에 쿼리를 입력하고 쿼리 실행​을 클릭합니다.

  3. 쿼리가 완료되면 편집기 아래의 결과 탭에 결과가 표시됩니다. 여기에서 결과를 다운로드할 수 있습니다.

추가 읽기

  • 쿼리 서비스 API 설명서 — 이 안내서와 별도로 시간이 지남에 따라 변경되는 쿼리 서비스 동작, 제한, 인증 및 API 경로에 대한 Adobe의 공식 참조입니다.
자동으로 번역됨
언어 선택기를 사용하여 이 페이지의 영어 버전을 확인합니다.
번역이 유용했나요?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.