Send a message to Slack, with Mechanic.

Mechanic is a development and ecommerce automation platform for Shopify. :)

Send a message to Slack

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.

Runs Occurs when a user manually 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, Shopifolks, 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.

(By the way, have you seen our documentation? Have you joined the Slack community?)

Open source
View on GitHub to contribute to this task
Subscriptions
mechanic/user/trigger
Tasks use subscriptions to sign up for specific kinds of events. Learn more
Options
slack incoming webhook url (required)
Code
{% action "http" %}
  {
    "method": "post",
    "url": {{ options.slack_incoming_webhook_url__required | json }},
    "body": {
      "text": "hello, world!"
    }
  }
{% endaction %}
Task code is written in Mechanic Liquid, an extension of open-source Liquid enhanced for automation. Learn more