Description
An open-source AI Slackbot.
npx boilerapp ai-sdk-slackbotDocumentation
AI SDK Slackbot
An AI-powered chatbot for Slack powered by the AI SDK by Vercel.
Features
- Integrates with Slack's API for easy Slack communication
- Use any LLM with the AI SDK (easily switch between providers)
- Works both with app mentions and as an assistant in direct messages
- Maintains conversation context within both threads and direct messages
- Built-in tools for enhanced capabilities:
- Real-time weather lookup
- Web search (powered by Exa)
- Easily extensible architecture to add custom tools (e.g., knowledge search)
Prerequisites
- Node.js 18+ installed
- Slack workspace with admin privileges
- OpenAI API key
- Exa API key (for web search functionality)
- A server or hosting platform (e.g., Vercel) to deploy the bot
Setup
1. Install Dependencies
npm install
# or
pnpm install
2. Create a Slack App
- Go to https://api.slack.com/apps and click "Create New App"
- Choose "From scratch" and give your app a name
- Select your workspace
3. Configure Slack App Settings
- Go to "Basic Information"
- Under "App Credentials\
Prix
Gratuit