Quick overview
This workflow collects a brand name and verified discount terms via an n8n form, looks up matching SaluteScout discount guides through a public API, then calculates a pre-tax basket total with spend and allowance caps and returns an HTML summary.
How it works
- Receives form submissions with a brand query, eligible and excluded subtotals, a discount percentage, optional ceilings/allowances, and a confirmation that the terms were checked.
- Sets the currency code and the result heading used in the output.
- Queries the SaluteScout guides API (
https://salutescout.com/api/agent/guides) to search for up to five published guides matching the entered brand.
- Validates the inputs, checks for a direct brand match in the returned guide title or ID, and prepares a link only when a safe matching guide URL is found.
- Calculates the estimated discount using integer-cent arithmetic by separating eligible vs. excluded goods, capping the eligible spend base, and capping the discount by the remaining allowance.
- Returns a completion page showing the guide lookup status and a formatted table with the basket totals and estimated discount.
Setup
- (Optional) Update the currency label and result heading in the configuration step, and ensure all entered amounts use that single currency with two decimal minor units.
- Test and publish the n8n form, then use its URL as the entry point for users to submit the brand and checked merchant terms.
- Ensure outbound access to
https://salutescout.com/api/agent/guides is allowed in your environment, since the guide lookup relies on this public endpoint.
Additional info
The guide lookup reads indexed SaluteScout articles, not live merchant offers; shoppers must verify current terms. The related checklist, source notes and calculation explanation are on our website. The reusable calculator and checklist are available as source files.