QuvanticBook free audit

MakeChecked blueprint7 nodes

Shopify refund webhook to Slack

Log a refund payload and ping Slack when the amount is at least 100.

Portfolio reference build with demo data and placeholder credentials, not a client deployment.

Pain

Kills the CSV between the store, the sheet, accounting, and the VIP Slack alert.

Solution

Log a refund payload and ping Slack when the amount is at least 100.

Impact · From the blueprint

About 5 minutes a large refund of noticing it and telling the channel.

Library status: documented blueprint, structurally validated. Checked against Make's blueprint shape and a module allowlist. Not imported into a Make account.

Shopify refund webhook to Slack scenario diagram
Scenario diagram

Step inspector

The first step shows the checked-in sample payload.Later steps name the node. They are not a live execution.

Guardrails

No approval, retry, or demo-gate node was detected by name. Read the README before connecting live credentials.

Credential ids in the JSON are placeholders. These files are portfolio demos.

Deploy this for your business

Tell us this slug and what still happens by hand. We will map it onto your accounts. This page is not a claim that the blueprint already runs for a customer.

README

Portfolio demo by Mustafa (mustafaautomation). Not client work. Connect your own accounts after import. Live walkthroughs, when published, sit on a subdomain of quvantic.com.

Category: E-commerce
Difficulty: beginner
Apps: Webhooks, OpenAI, Google Sheets, Slack
Test status: documented blueprint, structurally validated

Problem

Refunds show up as another order event and the person who should know finds out from the customer. This demo logs every refund and pings Slack at 100 or more, in the currency unit the payload already uses.

Who it's for

Shopify stores that can fire a refund webhook and want a channel, not another dashboard.

Module-by-module walkthrough

Ids match the blueprint. A router runs every route whose filter passes. An error handler runs only when that module throws.

1. Catch the webhook

gateway:CustomWebHook · Custom webhook · Webhooks

The form posts JSON to this hook. Parameters stay empty so Make creates the hook on import.

No mapped fields. Configure the module after import, or it only passes the bundle through.

2. Score the payload

openai-gpt-3:CreateCompletion · Create a completion · OpenAI

Returns JSON with a numeric score and a one-sentence reason.

  • select: "chat"
  • model: "gpt-4o-mini"
  • max_tokens: "300"
  • temperature: "0.2"
  • messages: [{"role": "system", "content": "Score a refund. Return JSON only: score (the amount as a number), reason (one sentence). If the amount is missing, score is 0."}, {"role": "user", "content": "Order {{1.order_number}} r...

3. Alert scoring — error handler

slack:CreateMessage · Send a message · Slack

Scoring failed.

  • channelWType: "list"
  • channelType: "public"
  • channel: ""
  • text: "Scoring failed."
  • mrkdwn: true
  • parse: false

4. Retry (Break) — error handler

builtin:Break · Retry (Break) · Flow control

Scoring failed. Retry before the router picks a side.

  • retry: true
  • count: 3
  • interval: 15

5. Parse the score

json:ParseJSON · Parse JSON · JSON

Exposes the numeric field the routes compare.

  • json: "{{2.result}}"

6. Log it

google-sheets:addRow · Add a row · Google Sheets

The row is written before the route, so both outcomes have an audit line.

  • from: "drive"
  • mode: "select"
  • spreadsheetId: ""
  • sheetId: ""
  • includesHeaders: true
  • insertDataOption: "INSERT_ROWS"
  • valueInputOption: "USER_ENTERED"
  • values: {"0": "{{now}}", "1": "{{1.order_number}}", "2": "{{1.email}}", "3": "{{1.amount}}", "4": "{{5.reason}}"}

7. Branch on the score

builtin:BasicRouter · Router · Flow control

The two number filters are mutually exclusive.

8. Ping on a large refund — route High

slack:CreateMessage · Send a message · Slack

The score is the amount. 100 is the line.

Filter At or above the line: [[{"a": "{{5.score}}", "o": "number:greaterorequal", "b": "100"}]]

  • channelWType: "list"
  • channelType: "public"
  • channel: ""
  • text: "*Refund* order {{1.order_number}} {{1.currency}} {{1.amount}}. {{5.reason}}"
  • mrkdwn: true
  • parse: false

9. Note the low score — route Low

slack:CreateMessage · Send a message · Slack

So the channel can see the lead was stored and not contacted.

Filter Below the line: [[{"a": "{{5.score}}", "o": "number:less", "b": "100"}]]

  • channelWType: "list"
  • channelType: "public"
  • channel: ""
  • text: "Small refund logged: order {{1.order_number}} amount {{1.amount}}."
  • mrkdwn: true
  • parse: false

Diagram

flowchart LR
  lead(("1 · Catch the webhook"))
  model(("2 · Score the payload"))
  lead --> model
  model -->|"error"| model_alert
  model_alert(("3 · Alert scoring"))
  model_directive(("4 · Retry (Break)"))
  model_alert --> model_directive
  parsed(("5 · Parse the score"))
  model --> parsed
  log(("6 · Log it"))
  parsed --> log
  band{"7 · Branch on the score"}
  log --> band
  high(("8 · Ping on a large refund"))
  band -->|"High"| high
  low(("9 · Note the low score"))
  band -->|"Low"| low

Setup

  1. In Make, create a scenario, open the three-dot menu at the bottom of the editor, and choose Import Blueprint. Select blueprint.json.
  2. Open every red module and pick or create the connection. Red means the account is not selected yet.
  3. Schedule: Immediately. Shopify topic refunds/create, flattened to the sample shape.
  4. Create the spreadsheet tab this scenario expects, with a header row in row 1:
    • A received_at
    • B order
    • C email
    • D amount
    • E reason
  5. Select that spreadsheet and sheet on every Google Sheets module. The ids are blank in the file.
  6. Run once with the bundled sample-input.json. Fictional payload. Paste it into the first module when you run the scenario once.
  7. Check the output bundle of each module before you turn the schedule on.

Connections

  • OpenAI — create a connection and select it on every OpenAI module. The blueprint leaves __IMTCONN__ unset on purpose.
  • Slack — create a connection and select it on every Slack module. The blueprint leaves __IMTCONN__ unset on purpose.
  • Google Sheets — create a connection and select it on every Google Sheets module. The blueprint leaves __IMTCONN__ unset on purpose.

Nothing in the file is a live connection id, webhook URL, or API key. Make rejects another team's connection id at import, so the slots are empty on purpose.

Data mapping

References use the module id: {{1.subject}} is the subject field of module 1. Sheets columns are zero-based and backticked ({{1.0}} is column A) so a renamed header does not break the map.

  • Routes compare {{parsed.score}} with 100 using number operators, so the two routes do not both run.

Error handling

Scenario settings: maxErrors 3, dlq true, sequential false, autoCommit true. After this many consecutive failed runs Make deactivates a scheduled scenario.

  • Module 2 (Score the payload) handles errors with builtin:Break. Scoring failed. Retry before the router picks a side.
  • Router 7 (Branch on the score) The two number filters are mutually exclusive.
    • High. The score cleared the line. Filter: At or above the line.
    • Low. The score stayed under the line. Filter: Below the line.
  • Module 8 runs only when filter At or above the line passes. A blocked bundle stops on that path. It is not an error.
  • Module 9 runs only when filter Below the line passes. A blocked bundle stops on that path. It is not an error.

Customization

  • Edit the rubric in the system prompt before you reuse this for a different offer.
  • The webhook parameters are empty. Make creates the hook when you import.
  • Duplicate the scenario before you change the prompt, so you can diff against this demo later.

Time saved

About 5 minutes a large refund of noticing it and telling the channel.

Files

FileWhat it is
blueprint.jsonImport this into Make.
sample-input.jsonFictional bundle for the first run.
diagram.pngFlow diagram.
diagram.mmdMermaid source for the same flow.