agentskit.js
Examples

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

  1. Create a Slack app at api.slack.com/apps.
  2. Enable Event Subscriptions with bot events: app_mention, message.channels, message.im.
  3. Set request URL to https://<your-host>/slack/events.
  4. 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

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page