Skip to main content
The Pyne JavaScript SDK provides functions to interact with guides and listen for events directly from your application’s frontend code. Ensure the main Pyne installation script is included on your page before calling these functions.

Identify User (pyne.identify)

This is the primary method for connecting user data to Pyne, enabling targeting and personalization.
See the Connect User Data page for more details and examples.

Manual Guide Control

These functions allow you to programmatically control guide playback.
Find the Guide ID in the URL when editing a guide in the Pyne dashboard: .../guides/GUIDE_ID_HERE Guide ID in
URL

Event Listeners

Register callbacks to react to various events during the guide lifecycle. Tour Lifecycle Events:
Avatar Interaction Events:
Tour State Events: