FRONT AI
Listen for conversation events in the Autopilot Resolve SDK
You can now subscribe to conversation lifecycle events in Autopilot Resolve, so your app can react in real time as end users move through a conversation, from starting a new one to escalating to a human teammate.
Available event types:
created: end user starts a new conversationviewed: end user opens or navigates to a conversationescalation_offered: Autopilot Resolve offers to hand off to a humanescalated: the conversation is handed offescalation_declined: end user dismisses the offerstatus_changed: the conversation moves betweenopen,in_progress, andresolved
Three ways to subscribe, depending on your setup:
FrontCompanion.on(handler)for a synchronous listener that returns an unsubscribe functiononConversationEventas an option oninit()to register in the same call- A
companion-conversation-eventCustomEventonwindow, which works even before the boot script has loaded
Common patterns include firing your own analytics when a conversation escalates, updating your UI when a new conversation starts, or syncing status changes to another system.
For full details, event shape reference, and code samples, refer to the Developer Portal.
Happy coding!
