> ## 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.

# Set public channel purpose

> Set a public Slack channel's description.

`slack.setPublicChannelPurpose` replaces a public channel's plain-text purpose.

## Example

```ts automations/set-public-channel-purpose.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"

export default automation("Set public channel purpose", () => {
  onDashboardRun({ title: "Set public channel purpose" })

  slack.setPublicChannelPurpose({
    channelId: "C01234567",
    purpose: "Deployment announcements and follow-up",
  })
})
```

## Inputs

Requires `channelId` and the new `purpose`. Pass an empty string to clear it.

## Output

Returns the updated conversation. Requires either `channels:manage` or `channels:write.topic`.
