API Docs
General usage

Utility and general usage

On ChipBot Ready

ChipBot loads asynchronously and waits for the entire page to load before we load our dependencies within the browser. Because of this, it can be tricky to use the Web APIs if ChipBot isn’t available yet.

To ensure you only interact with the Web APIs when ChipBot is ready, wrap all your code in the following implementation:

window.asyncChipBotApi = window.asyncChipBotApi || [];
window.asyncChipBotApi.push(['onReady', () => {
 // execute code when ChipBot is loaded
}]);

White Label API Namespace

If you’re on our white label program, you can leverage the non-branded API namespace. It has all the same methods as the branded ones.

Async: customerBotApiAsync

Non-Async: customerBotApi

window.customerBotApiAsync = window.customerBotApiAsync || [];
window.customerBotApiAsync.push(['onReady', () => {
 // execute code when white label bot is loaded
}]);

Hide ChipBot Icon

This will hide the icon of ChipBot.

chipBotApi.hide();

Show ChipBot Icon

This will show the icon of ChipBot.

chipBotApi.show();

Display the ChipBot Icon, inline on a page

chipBotApi.renderBaseIcon(document.querySelector('div'));

Get product data

chipBotApi.getProductInfo();

Get user session data

chipBotApi.getSessionInfo();

Set user session data

chipBotApi.setSessionIdentity({name: '', email: ''});

Listen to user behavior event data

chipBotApi.eventManager.on('reporting.all', e => console.log(e));

ChipBot



ChipBot Inc.
ChipBot iOS AppChipBot Android App
All major cards are accepted.
2500 CityWest Blvd Ste. 150
Houston, TX 77042
support@getchipbot.com
ChipBot, Inc.© 2024 ChipBot, Inc. All Rights Reserved.