-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bd7007
commit 5c692a2
Showing
8 changed files
with
83 additions
and
57 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,28 +5,40 @@ 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', | ||
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 | ||
}] | ||
}]); | ||
required: true, | ||
}, | ||
], | ||
}, | ||
]); | ||
|
||
Gleap.on("tool-execution", (tool) => { | ||
console.log("Tool execution", JSON.stringify(tool, null, 2)); | ||
console.log("Tool execution", JSON.stringify(tool, null, 2)); | ||
}); | ||
|
||
Gleap.setTicketAttribute("notes", "This is a test value."); | ||
|
||
Gleap.initialize("itSm7G1k4MMOfIgZuCfOaJGQ08C5U6fK"); | ||
Gleap.identify("user1234", { | ||
email: "[email protected]", | ||
name: "Lukas", | ||
sla: 30, | ||
}); | ||
|
||
Gleap.initialize("xwjGqF5QHMTuQauPoZyMzarGqg7WyTvN"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters