Skip to main content

Installation

i
This feature is available on the Scale plan.

Install the EventCatalog Slack Bot locally or deploy it to your infrastructure. The bot runs as a long-lived process that maintains a connection to Slack.

Install locally​

Clone repository​

git clone https://github.com/event-catalog/eventcatalog-slack-bot.git
cd eventcatalog-slack-bot

Install dependencies​

npm install

Configure environment​

Create a .env file with your credentials:

# EventCatalog Scale License (Required)
EVENTCATALOG_SCALE_LICENSE_KEY=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX

# Slack Credentials (Required)
SLACK_BOT_TOKEN=xoxb-...
SLACK_APP_TOKEN=xapp-...
SLACK_SIGNING_SECRET=...

# AI Provider (at least one required)
ANTHROPIC_API_KEY=sk-ant-...
# OPENAI_API_KEY=sk-...
# GOOGLE_GENERATIVE_AI_API_KEY=...

Create configuration​

Create eventcatalog-bot.config.ts:

export default {
eventCatalog: {
url: 'http://localhost:3000',
// Optional: Add authentication headers
// headers: {
// 'Authorization': 'Bearer your-token',
// },
},
ai: {
provider: 'anthropic', // 'anthropic' | 'openai' | 'google'
// model: 'claude-sonnet-4-20250514', // Optional: override default model
maxSteps: 5,
temperature: 0.4,
},
slack: {
// Optional: Channel IDs for auto-reply (bot responds to all messages)
autoReplyChannels: [],
// Optional: Custom icon URL for bot messages
icon: 'https://www.eventcatalog.dev/img/logo.png',
// Optional: Custom username for bot messages
username: 'EventCatalog',
},
};

Start the bot​

npm run dev

Or with a custom config path:

npm run dev -- --config ./my-config.ts

Configuration reference​

eventCatalog​

OptionTypeRequiredDescription
urlstringYesURL of your EventCatalog instance
headersobjectNoAuthentication headers if needed

ai​

OptionTypeDefaultDescription
providerstringRequiredAI provider: anthropic, openai, or google
modelstringProvider defaultModel to use (see supported models)
maxStepsnumber5Maximum tool-calling steps (1-20)
temperaturenumber0.4AI temperature (0-2)

slack​

OptionTypeDefaultDescription
autoReplyChannelsstring[][]Channel IDs where bot auto-replies to all messages
iconstringEventCatalog logoCustom icon URL for bot messages
usernamestring'EventCatalog'Custom display name for bot messages

Supported AI providers​

ProviderEnvironment VariableDefault Model
AnthropicANTHROPIC_API_KEYclaude-sonnet-4-20250514
OpenAIOPENAI_API_KEYgpt-4o
GoogleGOOGLE_GENERATIVE_AI_API_KEYgemini-2.0-flash

You can override the default model in your configuration. For a full list of available models, see the Vercel AI SDK Providers documentation.

ai: {
provider: 'anthropic',
model: 'claude-opus-4-20250514', // Use a different model
}

License key​

Get your EventCatalog Scale license key from eventcatalog.cloud. A 14-day free trial is available.

The license key must be set as the EVENTCATALOG_SCALE_LICENSE_KEY environment variable.