Search

Create Conversation

Articles

Use this function to create a new conversation in the slack application with the given valid details.

Syntax

Create Conversation (token, channel_name, is_private)

Parameters

Input Parameter Name Description
token Authentication token
channel_name Name of the channel to be created
is_private
  • True if the channel needs to be private
  • False if the channel needs to be public

Returns

Return Value Description
Output
  • On Success: 1, Channel ID
  • On Failure: 0, Error Message

Sample

Create Conversation (ABCDE, New_Channel, True)

  • Uses the token ‘ABCDCEF’ to authenticate the connection to the Slack application, creates a private channel with name ‘New Channel’.
    Returns the ‘Channel ID’ of the created channel.

Channel names can only contain lowercase letters, numbers, hyphens, and underscores, and must be 80-characters or less. The submitted channel name will be validated and modified to meet these criteria.

To view all the Slack functions, click here.

Did you find what you were looking for?