Slack Web API

Version: 1.0.3

Slack is a cloud-based set of proprietary team collaboration tools and services.

Connect Slack with LogicHub

  1. Navigate to Automations > Integrations.
  2. Search for Slack Web API.
  3. Click Details, then the + icon. Enter the required information in the following fields.
    • Label: Enter a connection name.
    • Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.
    • Verify SSL: Select option to verify connecting server's SSL certificate (Default is Verify SSL Certificate).
    • Remote Agent: Run this integration using the LogicHub Remote Agent.
    • Slack Application Token: Slack Application token for the application used.
  4. After you've entered all the details, click Connect.

Actions for Slack

Post Message - Channel

Post a message on Slack channel.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input Name

Description

Required

Message Template

Jinja-templated message string that will be posted on slack. Example: '{{message_col}}'.

Required

Channel Name

Jinja-templated channel name. Example: {{channel_name_column_name}}.

Required

Output

A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • result: Success message string
{
   "result":"Successfully posted message to Slack",
   "error":null,
   "has_error":false
}

Post Message - User

Post a message on Slack directly to a user

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input Name

Description

Required

Message Template

Jinja-templated message string that will be posted on slack. Example: {{message_col}}.

Required

User Name

Jinja-templated user name. Example: {{user_name_column_name}}.

Required

Output

A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • result: Success message string
{
   "result":"Successfully posted message to Slack",
   "error":null,
   "has_error":false
}

Posting message to private channels

  • Open the channel in slack app.
  • Type / to open the command palette
  • Click on Add apps to this channel
  • Search for your app and click on it.
  • Now you will see a successful addition message on the channel.
  • You can now use this channel with this App in the integration.

Release Notes

  • v1.0.3 - Added documentation link in the automation library.

Did this page help you?