Skip to content

Slack setup guide

This guide walks through setting up the ABCA Slack integration. Once configured, your team can submit tasks by mentioning @Shoof in any channel and receive real-time notifications as tasks progress.

  • ABCA CDK stack deployed (see Developer guide)
  • A Cognito user account configured (see User guide)
  • A Slack workspace where you can install apps (use a personal free workspace if your corporate Slack restricts app installs)
  • AWS CLI configured with credentials for your ABCA account
Terminal window
bgagent slack setup

This single command handles everything: deploying the stack (if needed), generating the Slack App manifest URL, prompting for credentials, and showing the install link. Follow the on-screen instructions.

  • @Shoof mentions: @Shoof fix the bug in org/repo#42 submits a task. Reactions on your message show progress: :eyes: (received) → :hourglass_flowing_sand: (working) → :white_check_mark: (done)
  • DMs: Message Shoof directly for private task submissions
  • Notifications: Threaded messages show task_created → completed (with PR link, duration, cost). The Cancel button lets you stop a running task.
  • Multi-workspace: Each workspace installs via OAuth and gets its own bot token
Terminal window
bgagent slack setup

If the stack isn’t deployed yet, it will offer to deploy for you.

The wizard outputs a URL that opens Slack’s “Create New App” page with everything pre-filled (scopes, events, commands, URLs). Click the link, select your workspace, and create the app.

The wizard prompts for three values from your new app’s Basic Information → App Credentials page:

FieldFormat
Signing Secret32 hex characters
Client Secret32 hex characters
Client IDNumeric (e.g. 12345.67890)

App Credentials location

Format validation catches obvious typos (wrong length, non-hex characters). If the format is wrong, it loops back to re-enter. Note: the actual values cannot be verified until the app is installed — if you paste the wrong secret by mistake, you’ll get an error at install time.

In the Slack App dashboard, go to Event Subscriptions:

Finding Event Subscriptions

  1. The Request URL may show “Your URL didn’t respond” — click Retry
  2. Wait for the green “Verified” checkmark
  3. Click Save Changes

Event Subscriptions before

Click Retry and wait for the green checkmark:

Event Subscriptions after

The first attempt may time out due to Lambda cold start. The retry always succeeds.

The wizard outputs an OAuth install URL. Open it in your browser — do not use the “Install App” button in the Slack dashboard (it won’t connect to your backend).

After clicking Allow, you’ll see a success page. The bot token is now stored and Shoof can respond to messages.

In Slack:

/bgagent link

In your terminal:

Terminal window
bgagent slack link <CODE>

This one-time step connects your Slack identity to your ABCA (Cognito) account. The code expires in 10 minutes.

In any channel where Shoof is added:

@Shoof fix the README typo in org/repo#1

You should see:

  • :eyes: reaction on your message immediately
  • A “Task submitted” message in the thread
  • :hourglass_flowing_sand: reaction when the agent starts
  • :white_check_mark: reaction and “Task completed” with a View PR button when done

Mention Shoof with a repo and description:

@Shoof fix the login bug in org/repo#42
@Shoof update the README in org/repo

For private submissions, DM Shoof directly:

fix the login bug in org/repo#42

Click the Cancel Task button in the thread while the agent is working.

/bgagent help
CommandPurpose
/bgagent linkLink your Slack account (one-time)
/bgagent helpShow usage instructions
  1. Is Shoof added to the channel? Use /invite @Shoof or add via channel settings.
  2. Were credentials entered correctly? Delete the app and re-run bgagent slack setup.
  3. Check CloudWatch logs for the SlackEventsFn Lambda — look for “Invalid Slack event signature” (wrong signing secret).

Run /bgagent link in Slack, then bgagent slack link <code> in your terminal.

The repo must be registered with a Blueprint before submitting tasks. See the User guide.

The credentials stored don’t match your app. Delete the app and re-run bgagent slack setup, making sure to paste the correct values.

Click Retry — the first attempt times out due to Lambda cold start. The retry succeeds.

The integration supports multiple Slack workspaces. Each workspace admin opens the OAuth install URL from bgagent slack setup output. Per-workspace bot tokens are stored separately. Users in each workspace link their accounts independently.

To uninstall from a workspace: Slack → Settings → Manage Apps → Shoof → Remove App. The bot token is automatically scheduled for deletion.

To remove the Slack integration from your ABCA deployment entirely, delete the Slack App and redeploy without it.