Documentation

JavaScript API

Control the widget programmatically using our JavaScript API.

Opening the Widget

// Open the chat widget
window.AckReply.open();

// Close the widget
window.AckReply.close();

// Toggle the widget
window.AckReply.toggle();

Identifying Users

// Identify a logged-in user
window.AckReply.identify({
  email: 'user@example.com',
  name: 'John Doe',
  userId: '12345'
});

User identification helps maintain conversation history across sessions and devices.