Get Started with LoyaltyDog AI
Ready to transform your customer engagement with AI? Follow these simple steps to get up and running in minutes.
Quick Start Example
quick-start.js
// Install the SDK
npm install loyaltydog-ai
// Initialize the client
import { LoyaltyDogAI } from 'loyaltydog-ai';
const client = new LoyaltyDogAI({
apiKey: process.env.LOYALTYDOG_API_KEY
});
// Your first AI-powered customer segmentation
async function segmentCustomers() {
try {
const segments = await client.ai.segment({
criteria: 'behavioral_patterns',
model: 'clustering_v3',
timeframe: '30d'
});
console.log('Customer segments:', segments.data);
return segments;
} catch (error) {
console.error('Segmentation failed:', error);
}
}
segmentCustomers();
Ready to dive deeper?
Explore our comprehensive documentation, try our interactive playground, or contact our team for personalized onboarding.