MakeChecked blueprint5 nodes
Invoice email flagged for approval over 5000
Log an invoice email and ping Slack for approval when the total is at least 5000.
Portfolio reference build with demo data and placeholder credentials, not a client deployment.
Pain
Stops opening PDFs, typing vendor totals, and hoping nobody pays the same bill twice.
Solution
Log an invoice email and ping Slack for approval when the total is at least 5000.
Impact · From the blueprint
The large bill is in the channel the hour it arrives instead of at month end.
- Intermediate
- Validated
- Draft / approval
- Gmail
- OpenAI
- Google Sheets
- Slack
Library status: documented blueprint, structurally validated. Checked against Make's blueprint shape and a module allowlist. Not imported into a Make account.

Step inspector
The first step shows the checked-in sample payload.Later steps name the node. They are not a live execution.
Guardrails
- Draft or approval gate described in the README
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: Invoices and documents
Difficulty: intermediate
Apps: Gmail, OpenAI, Google Sheets, Slack
Test status: documented blueprint, structurally validated
Problem
A studio lets small bills through and wants a person on anything at 5000 or more. This demo extracts the total and pings Slack only then. It does not approve the bill.
Who it's for
Owners who personally approve large supplier bills.
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. Watch the label
google-email:TriggerWatchEmails · Watch emails · Gmail
A Gmail filter already applied this label. The scenario does not try to classify the whole inbox.
q:"label:invoices-to-approve newer_than:21d"maxResults:5
2. Read the message
openai-gpt-3:CreateCompletion · Create a completion · OpenAI
The system prompt is the rubric. The email is the only source.
select:"chat"model:"gpt-4o-mini"max_tokens:"400"temperature:"0.2"messages:[{"role": "system", "content": "Extract an invoice. Return JSON only: vendor, number, currency, total (number). Do not guess the total."}, {"role": "user", "content": "Email follows.\n\nFrom: {{1.from}}\nSubject: {{1....
3. Alert the model failure — error handler
slack:CreateMessage · Send a message · Slack
Model failed for {{mail.subject}}.
channelWType:"list"channelType:"public"channel:""text:"Model failed for {{1.subject}}."mrkdwn:trueparse:false
4. Retry (Break) — error handler
builtin:Break · Retry (Break) · Flow control
The model failed. Retry before writing a bad row.
retry:truecount:3interval:15
5. Parse the JSON
json:ParseJSON · Parse JSON · JSON
The prompt asks for one JSON object. This module exposes its keys.
json:"{{2.result}}"
6. Log the row
google-sheets:addRow · Add a row · Google Sheets
Every message is logged, whether or not Slack fires.
from:"drive"mode:"select"spreadsheetId:""sheetId:""includesHeaders:trueinsertDataOption:"INSERT_ROWS"valueInputOption:"USER_ENTERED"values:{"0": "{{now}}", "1": "{{1.from}}", "2": "{{5.vendor}}", "3": "{{5.number}}", "4": "{{5.currency}}", "5": "{{5.total}}"}
7. Post the result
slack:CreateMessage · Send a message · Slack
The channel sees the extracted fields, not the whole email.
Filter At least 5000: [[{"a": "{{5.total}}", "o": "number:greaterorequal", "b": "5000"}]]
channelWType:"list"channelType:"public"channel:""text:"*Approve* {{5.vendor}} {{5.number}} {{5.currency}} {{5.total}}"mrkdwn:trueparse:false
Diagram
flowchart LR
mail(("1 · Watch the label"))
model(("2 · Read the message"))
mail --> model
model -->|"error"| model_alert
model_alert(("3 · Alert the model failure"))
model_directive(("4 · Retry (Break)"))
model_alert --> model_directive
parsed(("5 · Parse the JSON"))
model --> parsed
log(("6 · Log the row"))
parsed --> log
ping(("7 · Post the result"))
log --> ping
Setup
- In Make, create a scenario, open the three-dot menu at the bottom of the editor, and choose Import Blueprint. Select
blueprint.json. - Open every red module and pick or create the connection. Red means the account is not selected yet.
- Schedule: Every 30 minutes.
- Create the spreadsheet tab this scenario expects, with a header row in row 1:
- A received_at
- B from
- C vendor
- D number
- E currency
- F total
- Select that spreadsheet and sheet on every Google Sheets module. The ids are blank in the file.
- Run once with the bundled
sample-input.json. Fictional payload. Paste it into the first module when you run the scenario once. - Check the output bundle of each module before you turn the schedule on.
Connections
- Gmail — create a connection and select it on every Gmail module. The blueprint leaves
__IMTCONN__unset on purpose. - 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.
- Parsed JSON keys match the prompt. Sheet columns are positional, starting at values["0"].
- The Slack filter is on the last module, so the sheet row is written even when Slack does not fire.
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 (Read the message) handles errors with
builtin:Break. The model failed. Retry before writing a bad row. - Module 7 runs only when filter At least 5000 passes. A blocked bundle stops on that path. It is not an error.
Customization
- Point the Gmail query at your label. The demo uses
label:invoices-to-approve newer_than:21d. - Keep the model on JSON-only output. A preamble breaks Parse JSON.
- Duplicate the scenario before you change the prompt, so you can diff against this demo later.
Time saved
The large bill is in the channel the hour it arrives instead of at month end.
Files
| File | What it is |
|---|---|
blueprint.json | Import this into Make. |
sample-input.json | Fictional bundle for the first run. |
diagram.png | Flow diagram. |
diagram.mmd | Mermaid source for the same flow. |