Send a message to Slack, with Mechanic.

Mechanic is an automation development platform for Shopify. :)

Send a message to Slack

by Isaac Bowen (team@usemechanic.com)

Purely for demonstration purposes, this task illustrates how one might set up a script to send Slack messages.

Runs when a user triggers the task. Configuration includes slack incoming webhook url.

15-day free trial – unlimited tasks

Documentation

Purely for demonstration purposes, this task illustrates how one might set up a script to send Slack messages. As written, this task requires a Slack incoming webhook URL - learn how to generate this. Then, learn more about sending to Slack with Mechanic.

Developer details

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Gurus, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

Events
when a user triggers the task (mechanic/user/trigger)
Options
slack incoming webhook url (required)
Script
{% action "http" %}
  {
    "method": "post",
    "url": {{ options.slack_incoming_webhook_url__required | json }},
    "body": {
      "text": "hello, world!"
    }
  }
{% endaction %}
Mechanic tasks are written in Liquid, which makes them easy to write and easy to modify. Learn more about our platform.