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.html

html

BROWSER PATH
1<script2  src="https://wavebird.ai/wavebird.js"3  data-client-id="wbproj_demo_8jK42"4  data-publishable-key="pk_publishable_wavebird_demo_publishable"5  data-job-type="chat"6  data-native-template="default">7</script>89<div10  data-wavebird-slot11  data-wavebird-position="between"12  data-wavebird-formats="banner,native">13</div>

Runtime

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