Slack Bot
Reference Slack bot wrapping createChatTrigger from @agentskit/runtime. Uses Events API + chat.postMessage REST. No Bolt dependency.
Driver-light Slack bot using Slack's Events API webhook + chat.postMessage REST endpoint via fetch. No Bolt dependency.
For production, swap the reply body to wrap Bolt's app.client.chat.postMessage so retries, rate-limit handling, and pagination come for free.
#Setup
- Create a Slack app at api.slack.com/apps.
- Enable Event Subscriptions with bot events:
app_mention,message.channels,message.im. - Set request URL to
https://<your-host>/slack/events. - Install the app; copy Bot User OAuth Token (
xoxb-β¦) and Signing Secret.
export SLACK_BOT_TOKEN=xoxb-...
export SLACK_SIGNING_SECRET=...
pnpm --filter @agentskit/example-slack-bot dev#Related
Explore nearby
- PeerExamples
Interactive demos. For copy-paste code, see Recipes.
- PeerBasic Chat
The simplest use case β streaming AI conversation with auto-scroll, stop button, and keyboard handling. All in 10 lines with AgentsKit.
- PeerTool Use
AI assistants that call functions β weather, search, DB queries. Tool calls render as expandable cards.
Discord Bot
Reference Discord bot wrapping createChatTrigger from @agentskit/runtime. Verifies inbound interactions with Ed25519 public key. No discord.js dependency.
Teams Bot
Reference Microsoft Teams bot wrapping createChatTrigger from @agentskit/runtime. Consumes Bot Framework activities at /api/messages with injectable JWT verifier.