Skip to content

Instantly share code, notes, and snippets.

@jdjkelly
jdjkelly / slack.ts
Created April 8, 2024 17:29
LLM Channel summary Slackbot
import { App, } from '@slack/bolt';
import { Anthropic } from '@anthropic-ai/sdk';
const app = new App({
signingSecret: process.env.SLACK_SIGNING_SECRET,
token: process.env.SLACK_BOT_TOKEN,
});
const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });