Step 2: Inject the Web Client
Add the following after the Web SDK script, still in the <head> section:
Step 3: Configure the Web SDK
Call alloy("configure", ...) with your organization’s own values in place of the placeholders below:
| Field | Description |
|---|---|
datastreamId | The datastream ID configured for this page, enabled for Brand Concierge. |
orgId | The IMS Org ID the concierge is configured under. |
debugEnabled | Set to false in production once integration is verified. |
prehidingStyle | CSS applied before personalization content loads, to avoid a flash of unstyled content. |
onBeforeEventSend | Optional hook to modify the XDM payload before it is sent — commonly used to set page name or context. |
Step 4: Initialize the Web Client
After the Web SDK configure call, initialize the Web Client by calling the bootstrap API:
| Parameter | Type | Required | Description |
|---|---|---|---|
instanceName | string | Yes | The Web SDK instance name. |
stylingConfigurations | JSON object | Yes | The Web Client styling configuration (see Visual and content customization). |
selector | string | Yes | CSS selector for the HTML element the Web Client mounts into. |
onEvent | function | No | Callback for client-side events (see Client-side events and callback functions). |
Visual and content customization
The stylingConfigurations object passed into bootstrap() controls appearance, behavior, and text throughout the Web Client. It is organized into several areas.
Metadata
Behavior
Controls the functional behavior of individual chat features.
Disclaimer
Text strings
All user-facing copy is overridable through the text object. Common keys:
| Key | Purpose |
|---|---|
welcome.heading / welcome.subheading | Welcome screen headline and subtext |
input.placeholder | Input field placeholder text |
input.messageInput.aria / input.send.aria / input.mic.aria | Accessibility labels for input controls |
error.network / error.general | Error messages shown to the visitor |
loading.message | Text shown while a response is generating |
feedback.dialog.title.positive / .negative | Feedback dialog titles |
feedback.dialog.question.positive / .negative | Feedback dialog prompt text |
feedback.toast.success | Confirmation toast after feedback is submitted |
feedback.thumbsUp.aria / feedback.thumbsDown.aria | Accessibility labels for feedback buttons |
Arrays
Configurable lists of content:
Assets
Theme
CSS custom properties controlling colors, fonts, and layout:
Client-side events and callback functions
The event callback system lets a page observe Web Client lifecycle events, user interactions, responses, feedback, and errors in real time, useful for sending engagement data to Adobe Analytics, Google Analytics, or other third-party systems.
Key characteristics
- Single callback — one
onEventfunction receives all event types, distinguished byevent.eventType. - Read-only — event data is a cloned snapshot and cannot be used to modify the client’s behavior.
- Error-isolated — exceptions thrown inside the callback are caught and logged; they do not break the Web Client.
- Registered via
bootstrap()— passed the same way asonBeforeEventSend.
Quick start
Filtering by event type
Event types
| Event type | Value | Category | When it fires |
|---|---|---|---|
WEBCLIENT_INITIALIZED | webclient:initialized | Lifecycle | Client finishes initialization (DOM mounted, content loaded) |
QUERY_SUBMITTED | query:submitted | User interaction | User submits a message (typed or from suggestion) |
PROMPT_SUGGESTION_CLICKED | promptSuggestion:clicked | User interaction | User clicks a prompt suggestion pill |
CARD_CLICKED | card:clicked | User interaction | User clicks a card |
HISTORY_CLEARED | history:cleared | User interaction | User clears the chat history |
RESPONSE_STARTED | response:started | Response | First streaming chunk arrives from the API |
RESPONSE_COMPLETED | response:completed | Response | Full response is received and rendered |
CARDS_RENDERED | cards:rendered | Response | Cards (single image or carousel) finish rendering |
FEEDBACK_SUBMITTED | feedback:submitted | Feedback | User submits a feedback form (thumbs up/down with details) |
ERROR_OCCURRED | error:occurred | Error | An error occurs (network, API, or runtime) |
Lifecycle events
webclient:initialized fires after the client has fully initialized: content loaded, CSS injected, chat UI rendered in the DOM.
User interaction events
query:submitted fires when the user submits a message, whether typed, from a prompt suggestion, or from a widget option.
promptSuggestion:clicked fires when the user clicks a prompt suggestion pill. It fires before the subsequent query:submitted event.
card:clicked fires when the user clicks a card.
history:cleared fires when the user clicks the clear-chat-history button.
Response events
response:started fires when the first streaming chunk arrives from the API.
response:completed fires when the full response has been received.
cards:rendered fires after cards render in the DOM. It fires separately from response:completed and indicates the display mode used.
Feedback events
feedback:submitted fires when the user completes and submits a feedback form (after thumbs up/down).
Error events
error:occurred fires when the client encounters a network, API, or runtime error.
Event object structure
Every event shares the same top-level shape:
Data type reference: Element (product card)
Best practices
- Use for analytics and monitoring. Track engagement, query patterns, and product interest; forward
error:occurredto an error-tracking service; track card clicks for conversion analysis. - Keep the callback fast. It runs synchronously on the main thread, so avoid blocking network calls:
- Do not rely on strict event order for state machines. Events fire in a logical sequence, but use
conversationIdandinteractionIdto correlate related events instead of assuming order. - Handle errors inside your own callback. The client isolates and logs callback errors, but unhandled errors inside the callback can still lose analytics data:
Export conversations using AEP Query Service
Brand Concierge writes conversation data — prompts, responses, and feedback — into Adobe Experience Platform (AEP) datasets. You can query these directly with Query Service (SQL) to build custom reports.
Find the dataset and table name
-
Open Adobe Experience Platform.
-
Go to Datasets.
-
Search for
cja_brand_conciergeto list the datasets related to Brand Concierge. -
Open the dataset you need (for example, responses versus other flows, if more than one exists).
-
On the dataset details view, find the Table name used by Query Service, and inspect the sample or preview data to confirm the columns (prompts, responses, feedback, timestamps, and so on).
Example query
Run a query in the Query Service UI
If you need a manual data pull for reporting, the Query Service UI provides a way to run and download results directly:
-
In Adobe Experience Platform, go to Queries.
-
Enter the query in the editor and click Run query.
-
Results appear in the Results tab below the editor once the query completes. From there, you can download the results.
Further reading
- Query Service API documentation — Adobe’s official reference for Query Service behavior, limits, authentication, and API paths, which change over time independent of this guide.
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventAdobe Brand Visibility Roadmap Webinar - Americas & EMEA
Preview the Brand Visibility roadmap across Brand Concierge and AEM Sites. Ask live.
Adobe Brand Visibility Roadmap Webinar - Americas & APAC
Preview the Brand Visibility roadmap across Brand Concierge and AEM Sites. Ask live.