Slack

Connect Mechanic to your Slack workspace, so that you can post messages from Mechanic to a channel in your workspace. New order notifications? Error Notifications? The options are endless. You now have a Slack to Shopify integration.

Authentication

You can install the Mechanic Slack app on more than one Slack workspace, choosing which account to use when writing your task code.

Before using the Slack integration install the Mechanic Slack app in your Slack workspace:

  1. Go to your Mechanic Settings screen

  2. Click on Authentication

  3. Install the Mechanic Slack app from the Slack tab

Basic Usage

See full usage here.

{% action "slack" %}
  {
    "account": "SLACK_ACCOUNT_NAME",
    "method": "POST",
    "url_path": "/chat.postMessage",
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "channel": "CHANNEL_ID",
      "text": "Slack Example Message",
      "blocks": [
        {
          "type": "section",
          "text": {
            "type": "mrkdwn",
            "text": "Lorem ipsum dolor sit amet consectetur adipiscing elit."
          }
        }
      ]
    }
  }
{% endaction %}

Last updated

Was this helpful?