From 1424119670b20aacfec2b7f99e3d34710c379758 Mon Sep 17 00:00:00 2001 From: Lukas Boehler Date: Sat, 31 Aug 2024 15:27:08 +0200 Subject: [PATCH] Update main.js --- demo/main.js | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/demo/main.js b/demo/main.js index e15b04f..cf8fa2e 100755 --- a/demo/main.js +++ b/demo/main.js @@ -1,44 +1,7 @@ const Gleap = window.Gleap; -Gleap.setLanguage("en"); Gleap.setFrameUrl("http://0.0.0.0:3001"); Gleap.setApiUrl("http://0.0.0.0:9000"); Gleap.setWSApiUrl("ws://0.0.0.0:9000"); -Gleap.setAiTools([ - { - name: "send-money", - description: "Send money to a given contact.", - executionType: "button", - 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) => { - console.log("Tool execution", JSON.stringify(tool, null, 2)); -}); - -Gleap.setTicketAttribute("notes", "This is a test value."); - -Gleap.identify("user1234", { - email: "lukas@test.com", - name: "Lukas", - sla: 30, -}); - -Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV"); +Gleap.initialize("EylYN1UChqJkT5wJHu3bA8hswd9xOWJ6");