The CREATE_CHANNEL action creates a new Slack channel.
Use this action when a process needs to automatically create a dedicated collaboration space for a project, request, case, customer, or other business activity. The action sends a request to Slack to create a new channel within the configured workspace. Channels can be created as either public or private depending on the requirements of the workflow. After creation, Slack returns information about the new channel that can be mapped to process variables and used by subsequent tasks.
Once a channel is created, it can be used by subsequent Slack connector actions to send messages, notifications, and status updates.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| channelName | String | Required | The name of the channel to create. Channel names should follow Slack naming conventions and be unique within the workspace. |
| channelType | String | Required | Determines whether the channel is private. If not enabled, the channel is created as a public channel. |
| members | String | Required | A comma-separated list of Slack users to invite to the newly created channel. Members can be identified using Slack user IDs or email addresses. Users are added to the channel after it is created. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| slackResult | JSON | Optional | A JSON object containing information about the newly created Slack channel. The returned values can be used by subsequent process steps, for example to reference the channel ID when sending messages or performing additional Slack operations. |
An example of a channel creation in the slackResult is:
{
"ok":true,
"channel":{
"id":"CFWSKMFR6",
"name":"my_channel",
"is_channel":true,
"created":1549985348,
"is_archived":false,
"is_general":false,
"unlinked":0,
"creator":"UFX13DBJM",
"name_normalized":"my_channel",
"is_shared":false,
"is_org_shared":false,
"is_member":true,
"is_private":false,
"is_mpim":false,
"last_read":"0000000000.000000",
"latest":null,
"unread_count":0,
"unread_count_display":0,
"members":[
"UFX13DBJM",
"DFWSKM0HH"
],
"topic":{
"value":"",
"creator":"",
"last_set":0
},
"purpose":{
"value":"",
"creator":"",
"last_set":0
},
"previous_names":[],
"priority":0
}
}