> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Invite users to private channel

> Invite Slack members to a private channel.

`slack.inviteUsersToPrivateChannel` invites up to 1,000 members at once.

## Example

```ts automations/invite-users-to-private-channel.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"

export default automation("Invite users to private channel", () => {
  onDashboardRun({ title: "Invite users to private channel" })

  slack.inviteUsersToPrivateChannel({
    channelId: "G01234567",
    userIds: ["U01234567", "U07654321"],
  })
})
```

## Inputs

Requires `channelId` and a non-empty `userIds` array. Set `force` to continue inviting valid users if another supplied user is invalid.

## Output

Returns the updated conversation. Requires either `groups:write` or `groups:write.invites`.
