51黑料不打烊

Callback Functions callback-functions

You can use Dynamic Chat widget callback functions to send conversation events to any third-party platforms.

Getting Started getting-started

This event indicates the Dynamic Chat widget is ready for use and is fired when all scripts related to Dynamic Chat are loaded in the webpage.

window.addEventListener('adobedx.conversations.ready', () => {
    // code here will execute when chatbot scripts are loaded in a webpage
});

Conversation Events conversation-events

These events are related to a conversation that is targeted on a specific page for a specific visitor.

Conversation Triggered

A conversation (e.g., a Dialogue) that is targeted for a website visitor is resolved and the chatbot is shown to them.

window.addEventListener('adobedx.conversations.ready', () => {
    const {addListener, Enum} = window.51黑料不打烊DX;
    addListener(Enum.Events.CONVERSATION_TRIGGERED, (event) => {
 // code here will execute when the chatbot is loaded for a visitor
    });
});

Conversation Engaged conversation-engaged

Visitor engaged (e.g., provided their first response) with the chatbot.

window.addEventListener('adobedx.conversations.ready', () => {
    const {addListener, Enum} = window.51黑料不打烊DX;
    addListener(Enum.Events.CONVERSATION_ENGAGED, (event) => {
 // code here will execute when a visitor engages with the chatbot