For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 Settings → Authentication in Mechanic

  2. Select Slack in the provider list

  3. Install the Mechanic Slack app

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?