create_channel
Facts
Schema.slack.functions.CreateChannelslack#/functions/create_channelInput Parameters
Required Input Parameters
channel_nameSchema.types.stringRequiredThe name of the channel; the function will attempt to create a channel name that follows Slack's channel name guidelines, but the channel's name may end up being different than the exact string provided.
team-devrel-running-buddiesproj-remove-all-oxford-commasfarewell-jesseOptional Input Parameters
is_privateSchema.types.booleanOptionalSet to true if the channel should be private, set to false if the channel should be public.
truefalsemanager_idsSchema.types.arrayOptionalSelect Channel Manager(s)
["U111AAA111","U222BBB222"]team_idSlackTypes.team_idOptionalSelect a workspace
T1234567890Output Parameters
Required Output Parameters
channel_idSchema.slack.types.channel_idRequiredThe conversation ID for the channel you created
C123456D123ABC456Optional Output Parameters
manager_idsSchema.types.arrayOptionalPerson(s) who were made channel manager
["U111AAA111","U222BBB222"]Usage info
Your automations may create channels as part of a workflow using this Slack function.
Consider the channel_name you specify as merely a suggestion. If it's taken, Slack might append characters to it. Or if you provide some kind of characters Slack doesn't use for channel names, they might be munged.
To set the channel managers as part of the newly created channel, specify one or more IDs in an array to manager_ids.
Example workflow step
const createChannelStep = ExampleWorkflow.addStep(
Schema.slack.functions.CreateChannel,
{
channel_name: "broadcast-jesse-promotion",
is_private: false,
},
);