Search

Create Conversation

Last Updated: Mar 15, 2021

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

  • To know more about token, click here.
  • Channel names can only contain lowercase letters, numbers, hyphens, and underscores, and must be 80-characters or less. The submitted channel name gets validated and modified to meet these criteria.

Returns

Return Value Description
Output
  • On Success returns 1 | Channel ID
  • On Failure returns 0 | Error Message

Sample

Create Conversation (xoxp-12QWERT, Sprints, True)

  • Uses token xoxp-12QWERT to authenticate connection to Slack, creates a private channel with name Sprints.
    Returns the Channel ID of the created channel.

To view all the Slack functions, click here.

Did you find what you were looking for?