Skip to content

Commit 7831777

Browse files
committed
Fixed chatbar url
1 parent 9ef0132 commit 7831777

13 files changed

Lines changed: 14 additions & 55 deletions

File tree

build/browser/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/browser/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/cjs/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/esm/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

build/esm/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/main.js

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,4 @@ Gleap.setFrameUrl('http://0.0.0.0:3001');
44
Gleap.setApiUrl('http://0.0.0.0:9000');
55
Gleap.setWSApiUrl('ws://0.0.0.0:9000');
66

7-
Gleap.initialize('GnhEkS8fdwxNVjyn3BnYwKzpCkiHgKWL');
8-
9-
// Gleap.showAiChatbar();
10-
// Gleap.hideAiChatbar();
11-
12-
// setTimeout(() => {
13-
// Gleap.startBot("6908b32c145ee7d9aa226782");
14-
// }, 1000);
15-
16-
Gleap.identify('535506', {
17-
email: 'luca@gleap.io',
18-
});
19-
20-
setTimeout(() => {
21-
// Gleap.registerAgentTool('workflow-redirect', async ({ botID }) => {
22-
// console.log('Workflow redirect', botID);
23-
// // TODO: Implement your logic.
24-
25-
// // Return a string or JSON object — the AI waits for this response.
26-
// return 'The action was completed successfully.';
27-
// });
28-
29-
Gleap.registerAgentTool('send-money', async ({ amount }) => {
30-
// TODO: Implement your logic.
31-
console.log('Send money', amount);
32-
33-
// Return a string or JSON — the AI waits for this response.
34-
return 'The action failed!';
35-
});
36-
37-
Gleap.registerAgentTool('enable-dark-mode', async () => {
38-
// TODO: Implement your logic.
39-
console.log('Enable dark mode');
40-
41-
// Return a string or JSON — the AI waits for this response.
42-
return 'The action was completed successfully.';
43-
});
44-
45-
Gleap.startAgent('6a4637d818b4a930b509fbc4', {
46-
context: {
47-
userProjectId: '68ed10f4a2ec0e4c2ff4c812',
48-
},
49-
initialMessage: 'Let me know what workflow you want to create.',
50-
});
51-
}, 2000);
7+
Gleap.initialize('GnhEkS8fdwxNVjyn3BnYwKzpCkiHgKWL');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "16.2.3",
3+
"version": "16.2.4",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/16.2.4/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/16.2.4/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)