slack.onChannelCreated emits channel_created events for public channels visible to the bot.
automations/watch-new-slack-channels.automation.ts
channelId, name, createdAt, creatorId, the typed original event, and the complete envelope.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run an automation when a public Slack channel is created.
slack.onChannelCreated emits channel_created events for public channels visible to the bot.
import { automation } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Watch new Slack channels", () => {
const channel = slack.onChannelCreated()
// Use channel.channelId to apply the new Slack channel's defaults.
})
channelId, name, createdAt, creatorId, the typed original event, and the complete envelope.