Skip to content

Releases: GleapSDK/JavaScript-SDK

v13.7.4

18 Jun 07:05

Choose a tag to compare

Update main.js

v13.6.7

16 May 09:21

Choose a tag to compare

Added option for our AI tools.

executionType: 'button' | 'auto',

button: Kai shows a button to the user, to execute the tool. The tool will not be executed automatically
auto: The tool will be executed automatically.

v13.6.6

16 May 06:36

Choose a tag to compare

v13.6.6

v13.6.5

07 May 08:14

Choose a tag to compare

  • Improved tooltip position calculation.

v13.6.4

24 Apr 17:07

Choose a tag to compare

  • Fixed issue with tooltips.

v13.6.2

24 Apr 09:17

Choose a tag to compare

  • Fixed tooltip positioning.

v13.6.1

23 Apr 10:16

Choose a tag to compare

  • Added smart links.

v13.6.0

22 Apr 14:54
e407f25

Choose a tag to compare

  • Added tooltips for JavaScript.

v13.5.3

15 Mar 13:40

Choose a tag to compare

  • RTL layout fixes.

v13.5.0

06 Mar 15:52

Choose a tag to compare

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.
    }
});