This is reference content about building functions and workflows. Learn more if you're not yet familiar with this new Slack platform paradigm.

update_channel_topic

Update a channel's topic

Facts

Schema ID

Schema.slack.functions.UpdateChannelTopic

Schema reference

slack#/functions/update_channel_topic

Required scopes

Related methods

Input parameters

Required parameters
The ID of the channel to have its topic changed
  • C123456
  • D123ABC456
The topic to change to, as a string.
  • If you were a sales team, you'd all starve

Output parameters

Required parameters
The new topic
  • This week we're talking turkey stuffing recipes

Usage guide

Change a topic based on some funky algorithm you've cooked up. Or based on user input. Folks like predictible, informative topics. Your workflow must be a member of the conversation.

Example workflow step

const updateChannelTopicStep = ExampleWorkflow.addStep(
  Schema.slack.functions.UpdateChannelTopic,
  {
    channel_id: "C082T4F6S1N",
    topic: "The main idea in mind",
  },
);