Skip to main content

Initial Setup

The widget contains both mandatory and optional features and can be adapted to different use cases.

To be able to meet and support your customers when they need sales guidance, you can allow calls to be initiated from various sources.

Initiate The Call Widget

Before embedding the Call Widget on your site, you should first decide how you want to approach your customers. There are different integration options for the call initiation.

Embed Source URL

Embed source URL is different depending on location of servers that your dashboard is set up on.

Use Global servers URL https://one-to-one.bambuser.com/embed.js if the login to your Bambuser dashboard is on following link: https://lcx.bambuser.com/.


The Overlay Widget (OLW) is an easy way to guide more visitors into the Call Widget. By appearing automatically after configurable amount of seconds it guides visitors towards sales help at the right time.

Make sure to add the Call Widget script on all pages where the OLW should appear.

If you want to further configure Overlay Widget, you can read more about it here.

<script>
window.onBambuserOneToOneReady = function(BambuserOneToOneEmbed) {
// This method will be invoked when embed.js has loaded and Bambuser
// One-to-One API is available.
// Creating an instance directly will allow to detect connect links
// that will automatically open the Live Meeting overlay on page load.
let oneToOneEmbed = new BambuserOneToOneEmbed({
orgId: 'YOUR_ORG_ID_HERE',
triggers: [
'smart', // activate the overlay widget
'connect-link' // activate the connect link - Unrelated to OLW, yet mandatory
],
smartVariantOverride: 'Video', // force variant 'Video'. Other options are 'Avatar' and 'Side dock'
popupTimeoutSeconds: '5' // after how many seconds OLW appears on the first time page load (default = 60)
});
}
</script>
<script id="bambuser-one-to-one" async src="https://one-to-one.bambuser.com/embed.js"></script>
Organization ID

Your organization ID can be found in Bambuser dashboard URL

  • https://lcx.bambuser.com/[YOUR_ORG_ID]/...

Call Widget positioning

The Call Widget is rendered on top of your site to allow customers to interact with the page behind the widget and browse around on your site while waiting in queue.

Default positioning of the Call Widget is in the bottom left corner. If you want to change the positioning, reach out to your contact person at Bambuser.

Minimized Call Widget

For better browsing experience on different devices the customer can further minimize The Call Widget while waiting in queue. If you want to change the positioning for the minimized version and set another Z-index, you can define placement dynamically through integration code. Find more information here.

Compatibility & Requirements

Navigating around your website when Call Widget is present might not be fully compatible with all websites. Read more about the compatibility & requirements here.

Embedding options

When adding the embed you can pass options to BambuserOneToOneEmbed(). Embedding options are used to configure the the Call Widget for your specific use case.

There are some options needed for initiation of the the Call Widget (presented in code examples above) as well as other options, which you can read about below.

You need to specify your options inside BambuserOneToOneEmbed():

let oneToOneEmbed = new BambuserOneToOneEmbed({
/* your options here */
});

Queue system for drop-in

Bambuser One-to-One product comes with a built-in queing system. Dashboard admins can configure different queues in Bambuser dashboard. Each queue will get its own unique ID when created.

Queue ID

Each queue will have a Queue ID, which One-to-One Admin can find in Queue Settings within Bambuser Dashboard.

In the integration code, you can specify what queue the customer should end up in when initiating the call. You do this by passing the queue property inside BambuserOneToOneEmbed. This will change the behaviour of placing customers into the default queue.

Example usage:

let oneToOneEmbed = new BambuserOneToOneEmbed({
queue: 'QUEUE_ID_HERE' //if not specified, default queue configured from the dashboard will get applied
});
Read more

To get information regarding queue status, there are several functions you can use in order to customize the behaviour for Call Widget initiation. You can read more here.

Provide customer data

Customer information can be provided and presented to the Agent during a call. The information that will be provided is controlled by you.

You do this by passing the data object inside BambuserOneToOneEmbed.

Example usage:

let oneToOneEmbed = new BambuserOneToOneEmbed({

// Optional
data: {
firstName: "Joe",
lastName: "Doe"
}
});

The data shared with the agent is sent over secure data channels and will be stored in memory on agent side for the duration of the session. It will only be stored on server database if using Call Summary feature.

Read more

You can read more information about providing customer data here.

Additional options

Beside already specified options above, you can also pass some extra optons to BambuserOneToOneEmbed.

  • options.locale (optional, default='en-US')

Send in a locale to choose a language translation for the customer visiting your website. Example value: "en-US" or "fr"

Example usage:
let oneToOneEmbed = new BambuserOneToOneEmbed({
locale: 'en-US'
});

  • options.allowFirstPartyCookies (optional, default=true)

Configures if embed script is allowed to write first party cookies for tracking purposes.

Example usage:
let oneToOneEmbed = new BambuserOneToOneEmbed({
allowFirstPartyCookies: false,
});

  • options.enableScanning (optional, default=false)

If this option is enabled the agent apps will scan for barcodes and QR codes when the backfacing camera is active. If such a code is found a request will be made to provide-product-data with the type set to "scanned-code".

Example usage:
let oneToOneEmbed = new BambuserOneToOneEmbed({
enableScanning: true,
});

  • options.merchantBaseUrl (optional, default=window.origin)

In Cobrowsing mode, when Agent starts browsing, he/she will be sent to merchantBaseUrl. This is useful to dynamically configure in case you have multiple markets on same domain.

Example usage:
let oneToOneEmbed = new BambuserOneToOneEmbed({
merchantBaseUrl: 'https://demo.bambuser.shop/eu'
});

  • options.dataLayerTracking (optional, default=true)

The Call Widget pushes the tracking events to the Google Tag Manager data layer by default. However, it is possible to deactivate by setting this option to false


  • options.ecommerceTracking (optional, default=true)

The Call Widget pushes GA 4 Ecommerce events to the data layer by default. However, it is possible to deactivate by setting this option to false It is also possible to exclude single events in your Google Tag Manager, more information here


  • options.bookingServiceIds (optional, default=all published services)

This is applicable only when using Bambuser Native Booking. With this option, you can control which published services are visible to your customers. Read more about it here.

Example usage:
let oneToOneEmbed = new BambuserOneToOneEmbed({
bookingServiceIds: ['<BAMBUSER_SERVICE_ID_1>', '<BAMBUSER_SERVICE_ID_2>']
});

  • options.themeId (optional, default=default theme set in Bambuser dashboard)

If you have multiple theming feature enabled, then you will have the possibility to create more than one theme. With this option, you can control which theme will apply to your Call Widget.

Theme ID

Your theme ID can be found in Bambuser dashboard -> Theming -> Click on a theme -> Extract Theme ID from the URL:

  • https://lcx.bambuser.com/[ORG_ID]/one-to-one/theming/[THEME_ID]/call
Example usage:
let oneToOneEmbed = new BambuserOneToOneEmbed({
themeId: "THEME_ID"
});

Initial setup FAQ

You can inject a JavaScript code including the embed code via any tag management solutions such as Google Tag Manager (GTM), Adobe Launch, Tealium, etc.