Chat Platform Testing

Test chat widget detection and event tracking across all supported platforms via SDK methods

Chat Events Reference

Code Long Name Description
chs chat_start Conversation started
cho chat_open Widget opened
cms chat_message_send User sent message
cmr chat_message_receive Agent/bot sent message
cec chat_email_capture Email captured (also emits pp)
che chat_end Conversation ended

SDK Method Test Grid

Each button calls the actual _ll.chat.* SDK method. Open browser console to see queued events.

Widget Opened

Fires when the chat widget is opened by the user.

_ll.chat.widgetOpened({
  platform: 'dft'
});

Chat Started

Fires when a new conversation begins.

_ll.chat.started({
  platform: 'dft',
  conversationId: 'conv-' + Date.now(),
  agentName: 'Sales Bot',
  isBot: true
});

User Message Sent

Fires when the visitor sends a message.

_ll.chat.messageSent({
  platform: 'dft',
  conversationId: 'conv-123',
  messageText: 'I need help with pricing',
  messageIndex: 1
});

Agent Message Received

Fires when an agent or bot sends a message to the visitor.

_ll.chat.messageReceived({
  platform: 'dft',
  conversationId: 'conv-123',
  agentName: 'Sarah',
  isBot: false,
  messageText: 'Happy to help! What plan are you looking at?',
  messageIndex: 2
});

Email Captured

Fires when an email is captured during chat. Also triggers a pp (possible_person) event.

_ll.chat.emailCaptured({
  platform: 'dft',
  email: 'chat-lead@acmecorp.io',
  firstName: 'Chat',
  lastName: 'Lead',
  phone: '+1-555-867-5309',
  conversationId: 'conv-123'
});

Chat Ended

Fires when the conversation is closed or completed.

_ll.chat.ended({
  platform: 'dft',
  conversationId: 'conv-123',
  durationMs: 180000,
  messageCount: 8
});

Widget Closed

Fires when the chat widget is closed by the user.

_ll.chat.widgetClosed({
  platform: 'dft'
});

Simulated Full Conversations

Run a complete conversation sequence with realistic delays between events. Watch the log below to see each event fire in order.

Waiting for simulation...

Drift Conversation Sequence:

0ms    widgetOpened    { platform: 'dft' }
500ms  started         { platform: 'dft', conversationId, agentName: 'Sales Bot', isBot: true }
1000ms messageReceived { bot greeting: "Hi there! How can I help?" }
2000ms messageSent     { user: "I'd like to learn about your enterprise plan" }
3000ms messageReceived { agent: "Great question! Let me connect you with our team." }
4000ms emailCaptured   { email: 'drift-lead@techstartup.io', firstName: 'Demo', lastName: 'User' }
5000ms ended           { durationMs: 300000, messageCount: 8 }

Intercom Conversation Sequence:

0ms    widgetOpened    { platform: 'ic' }
500ms  started         { platform: 'ic', conversationId, agentName: 'Fin AI', isBot: true }
1000ms messageReceived { bot: "Welcome! What brings you here today?" }
2000ms messageSent     { user: "Having trouble with my billing" }
3000ms messageReceived { agent (human): "Let me look into that for you" }
4000ms emailCaptured   { email: 'intercom-user@bigcorp.com', firstName: 'Intercom', lastName: 'User' }
5000ms ended           { durationMs: 240000, messageCount: 6 }

Platform Mock Pages

These are visual mock pages that simulate the appearance of real chat widgets. They do not make SDK calls -- use the buttons above for SDK testing.

dft

Drift

Conversational marketing platform. Visual mock of the Drift chat widget.

View Drift Mock
ic

Intercom

Customer messaging platform. Visual mock of the Intercom messenger.

View Intercom Mock
lc

LiveChat

Customer service chat platform. Visual mock of the LiveChat widget.

View LiveChat Mock
qual

Qualified

B2B conversational sales platform. Visual mock of the Qualified widget.

View Qualified Mock