🔌Web SDK

Open Birdie recorder from a specific button, link or element in your web app!

Get creative! Below is an example of how DropContact use Birdie SDK

Birdie Web SDK

1. Install Birdie Web SDK

Go to settings -> screen recording arrow-up-rightand copy the Web SDK snippet, and paste it before the </body> tag.

You webSDK snippet will look like the example below, all parameters are optional, but the more you can add the more context you will get 👌

2. Create a custom launcher

Simply add the classname zstw_open to one or multiple elements you want to use as a launcher, see 2 examples below:

chevron-rightHandling the widget with Javascripthashtag

In some situations, you may prefer to use Javascript to control the widget opening. We provide a few methods for you to use:

• To check the widget status: window.zest.widget.opened() will return a boolean.

• To open the widget: window.zest.widget.open() will open the widget if it is not already open.

• To close the widget: window.zest.widget.close() will close the widget if it is not already closed.

• To toggle open/close automatically: window.zest.widget.toggle().

For example:

chevron-rightListening for eventshashtag

You can hook into 5 different events:

onRecorderOpened onRecorderClosed onRecordingStarted onRecordingStopped onRecordingPosted You must register them from the birdieSettings object, as shown into the example below:

chevron-rightReact code examplehashtag

Example: Add Birdie to a custom ticket form using the Web SDK

A common use case involves using the Web SDK to integrate Birdie into a custom ticket form. While you're free to get creative, here are three different ways Birdie could be added to the Active Campaign ticket form:

Option 1: Use an existing field

Option 1 - A Birdie button has been added in the existing Description field
Option 1 - The video link is automatically added to the Description text box

Option 2: Create a new field

Option 2 - A Birdie button has been added to a new field that display a visible text box for the video URL
Option 2 - The video link is automatically added to the field in a visible text box

Option 3: Create a new hidden field

Option 3 - A Birdie button has been added to a new field. There is no visible text box for the video URL
The video URL is not visible. The UI of the Birdie button has changed.

It exists many more options... Your turn now.

Last updated