---
title: "Tutorial: tag high-value orders and post them to Slack"
description: "Step by step: start from the Tag high-value orders template, raise the amount, add a Slack message, test it with a preview and turn the workflow on."
canonical: "https://docs.workflow-suite.app/tutorial-tag-high-value-orders-and-tell-slack"
---

# Tutorial: tag high-value orders and tell Slack

In this tutorial you build a workflow that tags every order of 1,000 or more and posts a line about it to Slack. You start from a template, change one number, add one step, test it without touching a single order, and turn it on. It takes about ten minutes.

**You need:** a Slack incoming webhook URL, saved as the secret `SLACK_WEBHOOK_URL` on the **Secrets** page (see [Secrets](https://docs.workflow-suite.app/secrets.md)), and read and write access to orders on the **Permissions** page (see [Permissions and store data access](https://docs.workflow-suite.app/permissions-and-store-data-access.md)).

## 1. Create the workflow from the template

1. Open **Workflows** and select **Browse templates** in the top bar.
2. In the search box type `high-value`. The card **Tag high-value orders** appears: trigger **Order created**, 2 steps, and one setup note.
3. Select **Use template**.

![The Start from a template window filtered by high-value, showing the card Tag high-value orders with its trigger Order created, 2 steps, the setup note and the Use template button](https://cdn-dev.eu.codecreationlabs.cloud/crm-tool/uploads/SjJ78gKLnLlocopCui3Cs62dJbGZ7F1n/1360ec5b33b33f04.png)
*Search the template gallery for high-value and use the template.*

The editor opens with your copy. A blue banner repeats the setup note from the card: set the order total that counts as high value. The canvas already holds the trigger **Order created**, a **Condition** and the action **Tag the order**.

![The editor right after Use template, renamed to Tag high-value orders and tell Slack: a blue banner Created from the template Tag high-value orders lists the setup note, the canvas shows Order created, the condition Order total is 500 or more and the action Tag the order on the Then branch](https://cdn-dev.eu.codecreationlabs.cloud/crm-tool/uploads/SjJ78gKLnLlocopCui3Cs62dJbGZ7F1n/36e8da56ebd88810.png)
*Your copy of the template. The Otherwise branch of the condition is empty, so orders below the amount end the run.*

4. Give it a name: replace the text in **Workflow name** above the canvas, for example `Tag high-value orders and tell Slack`.

## 2. Raise the amount

1. Select the condition **Order total is 500 or more** on the canvas. Its settings open in the side panel.
2. Under **Rule 1** the field is `event.payload.total_price` and the comparison is **is at least**. Change **Value** from `500` to `1000`.
3. Change **Name** to `Order total is 1000 or more`, so the canvas says what the rule does.

![The Condition side panel: Name Order total is 1000 or more, Rule 1 with Field event.payload.total_price, comparison is at least and Value 1000, plus an Add rule button](https://cdn-dev.eu.codecreationlabs.cloud/crm-tool/uploads/SjJ78gKLnLlocopCui3Cs62dJbGZ7F1n/2be3dff4587efa89.png)
*One rule decides: orders of 1,000 or more go down the Then branch.*

## 3. Add the Slack message

1. Press the **+** under **Tag the order**. The **Add a step** window opens.
2. Under **Actions**, pick **Send Slack message**.
3. In the side panel set **Name** to `Tell the team on Slack`.
4. In **Webhook URL** write `{{ secrets.SLACK_WEBHOOK_URL }}`. The URL itself stays in the secret, never in the workflow.
5. Write the **Message**. Press the variable button on the right of the field to pick values of the order, for example:

```
High-value order {{ event.payload.name }}: {{ event.payload.total_price }} {{ event.payload.currency }}
```

![The Send Slack message side panel: Name Tell the team on Slack, Webhook URL set to the secret SLACK_WEBHOOK_URL, and a Message with the order name, total and currency as variables](https://cdn-dev.eu.codecreationlabs.cloud/crm-tool/uploads/SjJ78gKLnLlocopCui3Cs62dJbGZ7F1n/83aa4d2f7b33dbd0.png)
*The Slack step. Its message can read anything from the event or from earlier steps.*

6. Select **Save** in the bar at the top of the admin. The button next to the undo arrow should read **No problems**.

## 4. Test it without touching an order

1. Select **Test** in the toolbar. The panel **Test this workflow** opens with the sample event of the trigger under **Event (JSON)**.
2. The sample order is below 1,000, so it would stop at the condition. Edit the event: change `total_price` to `"1250.00"`. You can shorten the event to the fields your steps read, like below. Keep `admin_graphql_api_id`: **Tag the order** reads it to find the order.
3. Keep **Preview (nothing is changed)** and select **Run preview**.

![The Test panel with a short hand-written event: id, admin_graphql_api_id, name #1042, currency USD, total_price 1250.00 and two line items, Preview selected and the Run preview button](https://cdn-dev.eu.codecreationlabs.cloud/crm-tool/uploads/SjJ78gKLnLlocopCui3Cs62dJbGZ7F1n/fb03c913955b2eb9.png)
*A hand-written test event. Only the fields the steps read are needed; Tag the order reads admin_graphql_api_id.*

The canvas marks the path in green: trigger, condition, **Tag the order**, **Tell the team on Slack**. Select a step to see what it returned. In a preview the two actions do not run; they report what they would have done.

![The canvas after Run preview: the trigger, the condition, Tag the order and Tell the team on Slack carry a green check, the Test panel shows the edited event](https://cdn-dev.eu.codecreationlabs.cloud/crm-tool/uploads/SjJ78gKLnLlocopCui3Cs62dJbGZ7F1n/edb54558ba9be33e.png)
*The whole path ran. Nothing in the store changed.*

![The side panel of the Slack step after the preview: Test result Previewed, and the JSON wouldRunWith showing the action Send Slack message, the masked webhookUrl and the message High-value order #1042: 1250.00 USD](https://cdn-dev.eu.codecreationlabs.cloud/crm-tool/uploads/SjJ78gKLnLlocopCui3Cs62dJbGZ7F1n/65af9eed72108712.png)
*What the Slack step would have sent. The webhook URL is masked because it comes from a secret.*

> [!NOTE]
> Want to see the message arrive in Slack? Select the Slack step, then **Test this step**. Under **Change** pick **Run for real**: only this step runs, and the tag action is left alone. See [Test, preview and debug](https://docs.workflow-suite.app/test-preview-and-debug.md).

## 5. Turn it on

Select **Turn on** in the top bar. The badge next to the name changes from **Off** to **On**. From now on every new order runs the workflow: orders of 1,000 or more get the tag and the Slack message, smaller orders end at the condition. Open **Run history** to watch the first real runs; see [Run history and troubleshooting](https://docs.workflow-suite.app/run-history-and-troubleshooting.md).

![The editor with the On badge next to the workflow name and the Turn off button in the top bar](https://cdn-dev.eu.codecreationlabs.cloud/crm-tool/uploads/SjJ78gKLnLlocopCui3Cs62dJbGZ7F1n/5c2a47a52abf232a.png)
*Turned on. Turn off pauses it at any time; the workflow and its runs stay.*

## Make it yours

- Only orders from one channel or country? Add a second rule to the condition, or filter on the trigger so the run does not even start: [Trigger filters](https://docs.workflow-suite.app/trigger-filters.md).
- Post to Discord or Microsoft Teams instead: [Slack, Discord and Teams messages](https://docs.workflow-suite.app/slack-discord-teams.md).
- Build a richer summary line with a small code step: [Tutorial: your first code step](https://docs.workflow-suite.app/tutorial-your-first-code-step.md).
