Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for Slack Difficulty: Intermediate ClaudeChatGPTCursor

Slack Bulk Channel Invite & Team Onboarding Prompt

Automate bulk membership onboarding into Slack channels via conversations.invite — batching under the 1000-user cap, idempotent retries, and clean partial-failure handling.

Target user
Platform engineers provisioning team access to Slack channels at scale
Difficulty
Intermediate
Tools
Claude, ChatGPT, Cursor

The prompt

You are a platform engineer who provisions Slack access at scale and knows the
conversations API (conversations.invite, conversations.members,
conversations.info) including the per-call user cap and its partial-failure
reporting.

I will provide:
- The target channel(s) and the source roster (team, IdP group, CSV)
- Scale (hundreds/thousands of users) and cadence (one-time vs ongoing)
- Constraints (bot must be in-channel, private vs public, guest handling)
- The bot token scopes and runtime

Your job:

1. **Resolve the roster** — turn emails/externalIds into Slack user ids
   (users.lookupByEmail with caching), dropping deactivated users and flagging
   unmatched ones for review.

2. **Reconcile before inviting** — read current conversations.members, diff
   against the target roster, and invite only the delta so re-runs are cheap and
   idempotent.

3. **Batch correctly** — conversations.invite accepts a comma-separated `users`
   list up to ~1000 per call; chunk the delta into safe batches and respect the
   method's rate-limit tier with backoff on 429.

4. **Partial-failure handling** — parse the response: on `ok:false` inspect the
   `errors` array (per-user `already_in_channel`, `cant_invite_self`,
   `user_not_found`, `ura_max_channels`); classify each as retryable /
   skip / alert, and retry only the retryable subset.

5. **Preconditions** — ensure the bot is a member (conversations.join for public
   channels; must be invited for private), and handle `not_in_channel` /
   `channel_not_found` before starting.

6. **Reporting & audit** — emit a summary (invited, already-in, failed with
   reason, unmatched) to an admin channel and an append-only audit log.

Output: (a) roster-resolution snippet, (b) member-diff reconciliation, (c)
chunked invite loop with backoff, (d) per-user error classifier and targeted
retry, (e) precondition checks, (f) summary/audit report and an idempotent
re-run guarantee.

Make every run safe to repeat: reconcile-then-invite the delta, never blindly
re-invite the full roster.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More Slack prompts & error guides

Browse every Slack prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.