Documentation Index
Fetch the complete documentation index at: https://docs.boostgpt.co/llms.txt
Use this file to discover all available pages before exploring further.
Setup
1. Create Slack App
Enable sockets
Enable Socket Mode in settings
Add scopes
Add chat:write, channels:history, groups:history, im:history, mpim:history
Copy tokens
Copy Bot Token and App Token
2. Install
npm install @boostgpt/router
SLACK_TOKEN=xoxb-your-bot-token
SLACK_SIGNING_SECRET=your-signing-secret
SLACK_APP_TOKEN=xapp-your-app-token
Usage
import { Router, SlackAdapter } from '@boostgpt/router';
const router = new Router({
apiKey: process.env.BOOSTGPT_API_KEY,
projectId: process.env.BOOSTGPT_PROJECT_ID,
adapters: [
new SlackAdapter({
slackToken: process.env.SLACK_TOKEN,
slackSigningSecret: process.env.SLACK_SIGNING_SECRET,
slackAppToken: process.env.SLACK_APP_TOKEN
})
]
});
await router.start();