This project is actively under development. New features and improvements are being added regularly.
The standout feature of this package is its ability to connect to any LLM backend service. This flexibility means you can:
For More reference : https://tools.slack.dev/bolt-js/getting-started
npm install slack-ai-app-retoolify
.env
file in your project root:# Required: Slack Configuration SLACK_BOT_TOKEN=xoxb-your-bot-token # Found in OAuth & Permissions SLACK_SIGNING_SECRET=your-signing-secret # Found in Basic Information SLACK_APP_TOKEN=xapp-your-app-token # Generated when enabling Socket Mode # Optional: LLM Configuration LLM_API_URL=your-llm-endpoint # Your LLM service endpoint
require('dotenv').config(); const SlackAIApp = require('slack-ai-app-retoolify'); const app = new SlackAIApp({ SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN, SLACK_SIGNING_SECRET: process.env.SLACK_SIGNING_SECRET, SLACK_APP_TOKEN: process.env.SLACK_APP_TOKEN, LLM_API_URL: process.env.LLM_API_URL, // Optional enableUserIdentification: false // Optional: Enable user auth }); app.start();
If you want to enable user authentication:
npm install @prisma/client npx prisma init
prisma/schema.prisma
:model Users { id Int @id @default(autoincrement()) name String email String @unique createdAt DateTime @default(now()) updatedAt DateTime @updatedAt isDeleted Boolean @default(false) isActive Boolean @default(true) slackUser String? @unique }
npx prisma migrate dev
DATABASE_URL="your-database-url" ENABLE_USER_IDENTIFICATION=true
Here's a glimpse of the Slack AI Assistant in action:
There are no datasets linked
There are no datasets linked
There are no models linked
There are no models linked