Skip to content
Tradebird Docs
Build a sales agentWorked examples

What would it cost to inspect 15 units?

A fictional maintenance company charges EUR 80 per site visit plus EUR 12 per unit inspected, before tax. Give the agent the approved rate, its effective date, and a calculation that takes the number of visits and units. This example assumes no travel surcharge.

Give the builder the pricing rule

Ask for the number of units and the number of visits. Charge the visit fee once per visit and the inspection fee once per unit. Show both amounts and the currency. Ask before treating several sites as a single visit. Describe the result as an estimate before tax.

Keep the two counts separate in the calculation. A single field called “quantity” invites a mistake as soon as there is more than one site. The buyer should be able to check the arithmetic from the reply.

One site, one visit

Buyer: “What would it cost to inspect 15 units?”

Agent: “Are they all at one site for a single visit?”

Buyer: “Yes.”

Agent: “The estimate is EUR 260 before tax: EUR 80 for the visit and EUR 180 for the 15 inspections.”

The units are at two sites

Ask how many visits will be needed. For two visits and 15 units in total, the calculation is 2 × EUR 80 + 15 × EUR 12 = EUR 340. The extra EUR 80 pays for the second visit. If travel requires a separate assessment, say what the estimate leaves open. A request to book the visits goes through its own approval.

Test the two examples against fixed expected values. Also test a missing quantity, a negative quantity, and a buyer asking for a binding quote. Design a calculation · Configure an action.