Using events to interact with the API
When your web page loads, the Continually embed code injects an iframe into the page which is how your users see the welcome message or button and sidebar we display.
Our API lets you communicate back and forth with the Continually iframe using events.
Events can be triggered by Continually in response to user behaviour - like startConversation
, emailCapture
, or phoneCapture
.
To respond to events that are triggered by Continually, you need to use an event listener. This section describes how to define those event listeners, the event object that is returned and the events available.