Integrations
Integrations
Slack Integration
const { LabFun } = require('labdotfun-sdk');
const { SlackAdapter } = require('labdotfun-slack');
const bot = new LabFun({
apiKey: 'your-openai-api-key',
});
const slackAdapter = new SlackAdapter({
token: 'your-slack-bot-token',
});
bot.use(slackAdapter);
bot.on('message', (userMessage) => {
const reply = bot.generateResponse(userMessage);
slackAdapter.sendMessage(reply, userMessage.channel);
});
bot.start();Discord Integration
Webhook Integration
Last updated
