• DOCUMENTATION
  • WORKATO BLOG
  • PRODUCT BLOG
  • Return to Workato
  • Log in
  • ☰
  • Community/Discussions
New Topic
Discussions Recipe Building Recipe Building Questions
S

Saul Macht

started a topic over 4 years ago
Answered

How can I create private Slack channel and invite users to it via the Workato Slack connector?

Hi, I have a use case in which I would like to use Slack to privately inform my employees of pending tasks that they have fallen behind on. Simply put, my use case is to use a Workato recipe to create a private Slack channel between an employee and me. Then, with this private slack channel, I can communicate privately with each particular employee privately. Please let me know if this is possible using your Slack connector.


Best Answer
B
Bryan Yap said over 4 years ago

Hi Saul, this use case is indeed possible using our Slack connector's `Custom HTTP action`. Essentially, your recipe will need to consist of the following actions:

  1. Create private channel using Slack connector (Custom HTTP action)
  2. Invite user to Slack channel using Slack connector
As the first action of creating a private channel is not directly supported as a native action in the Workato Slack connector, you will need to read through the Slack API documentation at https://api.slack.com/methods/conversations.create for more details on what data format and data needs to be passed to Slack.

For more details, I have also created an example recipe which contains all of the above steps at https://www.workato.com/recipes/627159-create-private-channel-in-slack-and-invite-users#recipe.

For your reference, I am also attaching a screenshot of the Custom HTTP action in step 1 below. Take a look at it and you should be able to figure out which Slack endpoint I am pointing the action to as well as what data format I am sending over to create the private Slack channel.

image


Answer

Bryan Yap

said over 4 years ago

Hi Saul, this use case is indeed possible using our Slack connector's `Custom HTTP action`. Essentially, your recipe will need to consist of the following actions:

  1. Create private channel using Slack connector (Custom HTTP action)
  2. Invite user to Slack channel using Slack connector
As the first action of creating a private channel is not directly supported as a native action in the Workato Slack connector, you will need to read through the Slack API documentation at https://api.slack.com/methods/conversations.create for more details on what data format and data needs to be passed to Slack.

For more details, I have also created an example recipe which contains all of the above steps at https://www.workato.com/recipes/627159-create-private-channel-in-slack-and-invite-users#recipe.

For your reference, I am also attaching a screenshot of the Custom HTTP action in step 1 below. Take a look at it and you should be able to figure out which Slack endpoint I am pointing the action to as well as what data format I am sending over to create the private Slack channel.

image


Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2020   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato