Releases: GleapSDK/JavaScript-SDK
Releases · GleapSDK/JavaScript-SDK
v13.6.2
- Fixed tooltip positioning.
v13.6.1
- Added smart links.
v13.6.0
- Added tooltips for JavaScript.
v13.5.3
- RTL layout fixes.
v13.5.0
Added AI tools to register local AI functions, allowing you to create deep integrations between Kai and your app.
Gleap.setAiTools([{
name: 'send-money',
description: 'Send money to a given contact.',
response: 'The transfer got initiated but not completed yet. The user must confirm the transfer in the banking app.',
parameters: [{
name: 'amount',
description: 'The amount of money to send. Must be positive and provided by the user.',
type: 'number',
required: true
}, {
name: 'contact',
description: 'The contact to send money to.',
type: 'string',
enum: ["Alice", "Bob"],
required: true
}]
}]);
Gleap.on("tool-execution", (tool) => {
if (tool.name === "send-money") {
const amount = tool.params.amount;
const contact = tool.params.contact;
// Initiate the transfer here.
}
});
v13.2.8
v13.2.8
v13.2.7
- Added native support for ESM
- Updated webpack
v13.2.6
Minor bug fixes.
v13.2.5
- Fixed issue with mobile Firefox
v13.2.1
Added:
function startNetworkLogger(): void;
function setNetworkLoggerBlacklist(networkLogBlacklist: string[]): void;
function setNetworkLoggerFilters(filters: string[]): void;
function updateContact(
customerData: any,
): void;