Code Examples
Practical code examples demonstrating common Alhena Website SDK integration patterns.
Available Examples
Example
Description
Use Case
Quick Start Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Page</title>
</head>
<body>
<!-- Your page content -->
<!-- Alhena SDK -->
<script>
document.gleenConfig = {
company: 'your-company-key',
apiBaseUrl: 'https://app.alhena.ai'
};
</script>
<script src="https://app.alhena.ai/sdk/gleenWidget.js"></script>
<!-- Your custom integration code -->
<script>
// Event handlers and customizations go here
</script>
</body>
</html>Example Categories
Widget Control
Human Agent Handoff
Localization
E-commerce
Need More Examples?
Last updated