Add the below code below the main Bakstage.AI inject script you got from the dashboard. This code will replicate what happens when a user clicks the widget to expand it.
<script>
setTimeout(function attemptOpenWidget(retries = 2) {
try {
if (window.bakstage && typeof window.bakstage.openWidget === 'function') {
window.bakstage.openWidget();
setTimeout(() => {
const isVisible = document.querySelector('[id^="bakstage-lightweight-app"]')?.offsetHeight > 0;
if (!isVisible && retries > 0) {
setTimeout(() => attemptOpenWidget(retries - 1), 1000);
}
}, 1000);
} else if (retries > 0) {
setTimeout(() => attemptOpenWidget(retries - 1), 1000);
}
} catch (err) {
if (retries > 0) setTimeout(() => attemptOpenWidget(retries - 1), 1000);
}
}, 1000);
</script>
bwo=1 [Bakstage Widget Open] Use this parameter if you want the Bakstage Widget to automatically open up once your page has loaded. User will still have to click on the “Connect” button to initiate the video and they will have an opportunity to correct information or modify the reason for the call.
Examples URL with parameters:
Once you have passed the value via the URL mechanism - your customers can see screens similar to below with pre-filled information (if any)

Bakstage Widget in open state when customer information is pass via URL or via local cookies and it has all the information it needs.

Bakstage Widget in editable state when customer information is pass via URL or via local cookies. This is opened when some information is missing or user chooses to click ‘Edit Info’
