Slack integration
Connecting Slack takes three steps: install the Slack app with OAuth, pick a channel, and choose which notifications it receives. Every call is scoped to a brain.
Install with OAuth
Installation is a browser redirect. Start OAuth to get a signed authorization URL, send the
user to it, then confirm with the code and state Slack returns to your redirect URL.
The state value is signed and expires at expiresAt. Pass it back unchanged; an expired or
altered state is rejected.
Check status
status returns every Slack workspace installed for the brain, plus its channel bindings.
Bind a channel
List the channels the bot can see in an installation, then bind one to the brain. isMember
tells you whether the bot has already been added to the channel.
Choose notifications
A binding can post daily briefs, new connections, and page changes. Fields you leave out are unchanged.
Disconnect
unbind removes one channel binding. disconnectInstallation removes the whole Slack
workspace from the brain, along with all of its bindings.