Quickstart
Installation
npm install labdotfun-sdkgit clone https://github.com/labdotfun/sdk.gitBasic Usage
const { LabFun } = require('labdotfun-sdk');
const bot = new LabFun({
apiKey: 'your-openai-api-key',
settings: {
language: 'en',
tone: 'friendly',
},
});
bot.on('message', (userMessage) => {
const reply = bot.generateResponse(userMessage);
console.log(`Bot: ${reply}`);
});
bot.start();Advanced Features
Custom Integrations
Analytics Dashboard
Last updated
