A/B Test Guidelines
Configure different AI responses for A/B testing based on user group assignment.
Last updated
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A/B Test - Control Group</title>
</head>
<body>
<h1>Welcome</h1>
<!-- Alhena SDK -->
<script>
document.gleenConfig = {
company: 'your-company-key',
apiBaseUrl: 'https://app.alhena.ai',
userMetadata: {
"ab_control_group": "1"
}
};
</script>
<script src="https://app.alhena.ai/sdk/gleenWidget.js"></script>
</body>
</html><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A/B Test - Variant Group</title>
</head>
<body>
<h1>Welcome</h1>
<!-- Alhena SDK -->
<script>
document.gleenConfig = {
company: 'your-company-key',
apiBaseUrl: 'https://app.alhena.ai',
userMetadata: {
"ab_variant_group": "1"
}
};
</script>
<script src="https://app.alhena.ai/sdk/gleenWidget.js"></script>
</body>
</html>Reply with a friendly greeting at the beginning of the conversation. Welcome the user warmly before addressing their question.Ask for the user's email address at the beginning of the conversation before providing assistance.// Example with a hypothetical A/B testing library
var userGroup = ABTestingLib.getGroup('ai-greeting-test');
document.gleenConfig = {
company: 'your-company-key',
apiBaseUrl: 'https://app.alhena.ai',
userMetadata: userGroup === 'variant'
? { "ab_variant_group": "1" }
: { "ab_control_group": "1" }
};document.gleenConfig = {
company: 'your-company-key',
apiBaseUrl: 'https://app.alhena.ai',
userMetadata: {
"ab_variant_group": "greeting_test_v2"
}
};