Script Tag

Use Script Tag when the browser should discover slots and handle activation, consent, rendering, and beacons. It uses a publishable key with origin-bound activation.

Script Tag

script-tag.html

html

BROWSER PATH
<script  src="https://wavebird.ai/wavebird.js"  data-client-id="wbproj_demo_8jK42"  data-publishable-key="pk_publishable_wavebird_demo_publishable"  data-job-type="chat"  data-native-template="default"></script><div  data-wavebird-slot  data-wavebird-position="between"  data-wavebird-formats="banner,native"></div>

What Script Tag does for you

Activation

Exchanges the publishable key for an origin-bound browser token before protected runtime calls.

Config loading

Loads non-secret project config through client_id so the browser can render the right format and disclosure defaults.

Consent

Can collect consent through the built-in flow before retrying the decision path.

Beacons

Sends rendered and completion beacons automatically.

Need help with your integration?

Share the affected endpoint, request ID, and the behavior you expected. Leave out keys and user content.

Contact the team