// slack integration

Develop a Slack app against a public URL

Slack's Events API, slash commands, and interactivity all post to a single HTTPS endpoint. Tunneling through lrok lets you iterate in real time — every message your bot reacts to round-trips through your local handler.

1 · Set up the lrok tunnel

  1. 1. Reserve

    $ lrok reserve slack-dev
  2. 2. Run app

    $ npm run dev
  3. 3. Tunnel

    $ lrok http 3000 --hint slack-dev

2 · Configure Slack

  1. 1. api.slack.com → your app → Event Subscriptions

    Request URL: https://slack-dev.lrok.io/slack/events. Slack verifies the URL on save with a one-shot challenge.

  2. 2. Subscribe to bot events

    message.channels, app_mention, etc.

  3. 3. Slash Commands → New Command

    Request URL: https://slack-dev.lrok.io/slack/commands.

// slack-specific gotcha

Slack's URL-verification challenge requires you to echo back a token in the request body within 3 seconds. Your handler can't be cold-starting at that moment — keep a warm process running before saving the dashboard config.

More integrations