How to automate quotes from your own pricing rules
Updated
Short answer: write your price sheet as rules that run in a fixed order: base charge, per-unit lines, surcharges, minimum, rounding. Keep the rates in one table with version dates. Feed every request, whether it comes from a web form, an email or WhatsApp, into the same fields. Have a person approve before anything is sent, send the quote as a PDF by email, and when the customer accepts, create the invoice from the lines stored on the quote.
This guide is for owners and office managers who build each quote by hand: open the spreadsheet, find last month's quote for a similar job, adjust a few numbers, retype it into a document. It works until the person who knows the exceptions is out sick, or one wrong number reaches a customer. Below are the steps, two worked examples (a service business and a small freight forwarder), and the mistakes we see most.
All companies, rates and jobs in this guide are invented sample data. Your own formula, rates, minimums and surcharges replace them.
Step 1: turn the price sheet into rules
Almost every price sheet breaks down into five kinds of rule.
| Rule | What it means | Example |
|---|---|---|
| Base | A fixed charge per job, visit or shipment | $75 per visit |
| Per-unit | A rate times a quantity | $0.09 per square foot |
| Surcharge | An extra amount or percentage under a condition | +20% after 6 p.m. |
| Minimum | The lowest total you'll accept | $250 per visit |
| Rounding | How you round quantities and the final price | Total up to the next $5 |
Two things decide whether the automation matches what your best estimator would quote.
The order. A 20% surcharge applied before the minimum gives a different total than one applied after it. Write the sequence down. A common one: add up the base and the per-unit lines, add the surcharges, compare the result with the minimum, then round.
The conditions. "After hours" needs a clock time. "Long distance" needs a number of miles. "Rush" needs a definition your customer would agree with. If two people in your office would answer the question differently, it isn't a rule yet.
Leave sales tax out of the rule sheet. Your accountant decides what's taxable, and your accounting system applies it when the invoice is created.
Worked example 1: a commercial cleaning company
An invented company that cleans offices in the Tampa Bay area. Today the owner prices each walkthrough from memory and a spreadsheet. Here is the same pricing written as rules, with sample rates:
| # | Rule | Sample rate |
|---|---|---|
| 1 | Base charge per visit | $75.00 |
| 2 | Standard cleaning | $0.09 per sq ft |
| 3 | Carpet shampoo | $0.25 per sq ft of carpet |
| 4 | After-hours surcharge (starts after 6 p.m.) | +20% on lines 2 and 3 |
| 5 | Travel | $1.50 per mile beyond 25 miles from the shop |
| 6 | Minimum per visit | $250.00 |
| 7 | Rounding | Total up to the next $5 |
Job A: a 4,000 sq ft office, with 1,200 sq ft of carpet to shampoo, cleaned after hours, 32 miles from the shop.
| Line | Calculation | Amount |
|---|---|---|
| Base | $75.00 | |
| Standard cleaning | 4,000 × $0.09 | $360.00 |
| Carpet shampoo | 1,200 × $0.25 | $300.00 |
| After-hours surcharge | 20% × ($360.00 + $300.00) | $132.00 |
| Travel | (32 − 25) × $1.50 | $10.50 |
| Subtotal | $877.50 | |
| Minimum check | $877.50 is above $250 | no change |
| Quoted total | rounded up to the next $5 | $880.00 |
Job B: a 1,200 sq ft office, daytime, 10 miles away. Base $75 plus 1,200 × $0.09 = $183. That's under the $250 minimum, so the quote is $250. Without a written minimum, small jobs like this one tend to get quoted at whatever the formula says, and they lose money.
Add one more rule for the approval step: any quote above $2,500, any request the sheet doesn't cover (a post-construction cleanup, say) and any manual change goes to the owner before it's sent.
Worked example 2: chargeable weight for a small air freight forwarder
Air freight is priced on chargeable weight: whichever is higher, the actual weight or the volume weight. IATA's general rule is to divide the shipment's volume in cubic centimeters by 6,000 to get the volume weight in kilograms. That's how a light, bulky crate ends up priced as if it were heavier than it is.
The calculator on our quote and invoice automation page uses exactly this rule. A crate of 120 × 80 × 100 cm weighing 120 kg has a volume of 960,000 cm³. Divided by 6,000, that's a volume weight of 160 kg, so the crate is priced on 160 kg. With the calculator's sample rates (a $40 base, $1.10 per kg and $0.35 per km over 600 km), the quote comes to $426.
A forwarder's real rate sheet has more parts. Here is an invented small forwarder at Miami International quoting airport-to-airport freight to Central America, with sample rates:
| # | Rule | Sample rate |
|---|---|---|
| 1 | Volume weight | L × W × H in cm ÷ 6,000 |
| 2 | Chargeable weight | Higher of actual and volume weight, rounded up to the next 0.5 kg |
| 3 | Freight rate by weight break | Under 100 kg: $1.60/kg. 100 to 299.5 kg: $1.10/kg. 300 kg and up: $0.95/kg |
| 4 | Minimum freight charge | $95.00 |
| 5 | Fuel surcharge | $0.45 per chargeable kg |
| 6 | Security surcharge | $0.15 per chargeable kg |
| 7 | Pickup | $40.00 + $0.35 per km |
| 8 | Documentation fee | $35.00 per shipment |
| 9 | Money | Rounded to the cent |
The shipment: the same crate, 120 × 80 × 100 cm and 120 kg, picked up 30 km from the airport.
| Line | Calculation | Amount |
|---|---|---|
| Volume weight | 960,000 ÷ 6,000 | 160 kg |
| Chargeable weight | higher of 120 kg and 160 kg | 160.0 kg |
| Freight | 160 × $1.10 (above the $95 minimum) | $176.00 |
| Fuel surcharge | 160 × $0.45 | $72.00 |
| Security surcharge | 160 × $0.15 | $24.00 |
| Pickup | $40.00 + 30 × $0.35 | $50.50 |
| Documentation | $35.00 | |
| Quoted total | $357.50 |
Now look at what happens when someone quotes this crate on its actual weight. Freight, fuel and security on 120 kg come to $204.00 instead of $272.00. That's $68 left on the table for one crate, and the carrier still bills the forwarder on 160 kg.
A small box shows the minimum at work: 40 × 30 × 30 cm and 12 kg. Its volume weight is 36,000 ÷ 6,000 = 6 kg, so it's charged on its actual 12 kg. At $1.60 a kilo, the freight would be $19.20, so the $95 minimum applies.
Three details to get right:
- Inches and pounds. If your warehouse measures in inches, 6,000 cm³ per kg works out to about 166 cubic inches per pound. Length × width × height in inches, divided by 166, gives the volume weight in pounds. Let the form accept either unit and convert once, in the rule.
- The divisor isn't universal. Some carriers use 5,000 instead of 6,000, which makes bulky cargo heavier on paper. Store the divisor per carrier or service in your rate table, not inside the formula.
- Rounding. The half-kilo rounding above is this example's own rule. Use the rounding your carrier applies, so your quote matches the bill you'll get from them.
The fuel surcharge is the rate most likely to change between quotes. It belongs in the rate table with an effective date, which is the subject of the mistakes section below.
Step 2: get every request into the same fields
The rules only work if they get the same inputs every time. Requests arrive three ways, and each needs a different kind of care.
Web form. The cleanest source, because you choose the fields. Make the ones the rules need required: for the cleaner, square footage, carpet area, time of day and address; for the forwarder, pieces, dimensions, weight, units, origin, destination and commodity. On our aviation and logistics page we describe request forms built around how buyers actually ask.
Email. Customers write free text and attach packing lists. AI can pull the dimensions and weights out of an email or a PDF, but treat what it extracts as a draft: a person confirms the numbers before they're priced. A misread 120 that becomes 12 is a quote you'll have to take back. Our AI document processing service covers this step.
WhatsApp. Many Florida customers, especially Spanish speakers, send requests by WhatsApp. To feed those messages into a workflow you need Meta's WhatsApp Business Platform (the API). The free WhatsApp Business app on a phone doesn't connect to other tools. Meta bills the API per delivered message. See our WhatsApp Business automation page.
Whatever the channel, the request lands in one list with the same fields. When a field is missing, the workflow asks the customer for it. It never fills the gap with a guess.
Step 3: a person approves before anything is sent
Automation calculates; a person decides what reaches the customer. The approval message should show everything needed to say yes in one look:
- the original request, with a link to the email, form or chat;
- the inputs the rules used, including units;
- each line of the calculation;
- the rate version that was applied;
- flags such as "minimum applied", "volume weight used" or "outside the rules".
The approver can approve it, edit it with a reason (logged), or decline it. In n8n this can be a Gmail "Send and Wait for Approval" step or a Slack approval, which also records who responded. Send Gmail approval links to a person, not a shared inbox, because anyone with the link can respond.
Start by approving every quote. Once a few weeks of quotes have matched what your estimator would have sent, set a threshold: routine quotes under an amount go out on their own, and large or unusual ones keep waiting for a person.
Step 4: send the quote as a PDF by email
Fill a template with the approved lines and save it as a PDF. A quote that holds up later includes:
- a quote number that never repeats;
- the date and a "valid until" date, because rates and surcharges change;
- the line items, so the customer sees why the total is what it is;
- your terms, and for freight, what the price assumes (dimensions, weight, airport-to-airport);
- the customer's language, from the template in English or Spanish.
Send it from your own business mailbox, not a no-reply address, so the customer can answer with questions. Keep a copy of the PDF and the inputs with the quote record.
Step 5: track accepted quotes into invoicing
Give each quote a status: draft, sent, accepted, declined or expired. A reminder a few days before the "valid until" date turns forgotten quotes into answers.
When the customer accepts, create the invoice from the lines stored on the quote. Don't recalculate with today's rates; the customer accepted a price. Our guide on connecting QuickBooks Online to n8n walks through the invoice side, including the duplicate checks. We also connect QuickBooks for clients who want this done for them.
For freight, the cargo sometimes measures differently at the warehouse than in the request. Run the same rules on the measured numbers, and send any difference to a person before the invoice goes out.
Where the rules live and which tool runs them
You don't need special software for this. The rate table can live in a spreadsheet or a small database table, with one row per rate and a column for the date it takes effect. The calculation runs as a step in a workflow tool: in n8n, a Code node can apply the formula and the order of operations. The same workflow handles the approval, the PDF, the email and the invoice. If you're choosing between tools, n8n vs Zapier for a small business compares cost and control. Pricing logic with weight breaks and minimums usually fits better where you can write and test the formula in one place.
Mistakes to avoid
Pricing that lives in people's heads. "We charge more for the third floor without an elevator" is a rule, and if it isn't written down, the automation can't apply it and a new hire won't either. Before you build anything, sit with whoever quotes today and go through twenty recent quotes. Every adjustment they explain becomes a row in the rate table or a reason to send the quote to a person.
No version control on rates. If someone edits the rate spreadsheet in place, you can't tell which price a quote from last month was built on, and accepted quotes can end up invoiced at the new price. Keep every rate with an effective-from date, never overwrite an old row, and store the rate version on each quote. Limit who can change the table, and log who changed what.
Quoting freight on actual weight. The worked example above shows $68 lost on a single crate. Make the chargeable weight a rule the workflow always runs.
An order of operations nobody wrote down. Surcharge before or after the minimum, rounding per line or on the total: each choice changes the price. Decide once and write it next to the rate table.
Sending on day one without a person. Test with your past quotes first. Run last quarter's requests through the rules and compare the totals with what you actually sent. Differences point to rules nobody wrote down yet.
n8n, Zapier, QuickBooks, WhatsApp, Gmail and Slack are trademarks of their respective owners. They're mentioned here as product names only.
Common questions
Can automation handle our special pricing rules?
Usually, yes. Exceptions are where manual work hides, so the first job is writing them down as rules. A request that still falls outside the rules goes to a person instead of getting a guessed price.
Do we need special quoting software to automate quotes?
Not necessarily. Many small businesses run it with a rate table in a spreadsheet or small database, a workflow tool that applies the rules and builds the PDF, and the accounting system they already use for invoices. Check that your accounting and CRM tools offer an API before you plan the connection.
Which volumetric divisor should a small air freight forwarder use?
IATA's general rule is to divide the volume in cubic centimeters by 6,000 to get the volume weight in kilograms, and charge on whichever is higher, actual or volume weight. Some carriers use 5,000 instead, so store the divisor per carrier and match the one on your carrier's bill.
Will quotes go out without anyone checking them?
Only if you decide they should. Most teams start with a person approving every quote, then let small, routine quotes go out on their own once the numbers have matched for a while. Large or unusual quotes keep the approval step.
What happens to old quotes when our rates change?
Nothing, if the rates are versioned. Each quote stores the rate version it was priced with, so an accepted quote is invoiced at the price the customer saw, even after you raise rates.
Can the quotes go out in Spanish?
Yes. The rules and numbers are the same; only the PDF template and the email text change. Store each customer's language and pick the template from it.
