
You can create a quote from a form using an n8n workflow that collects responses, checks them against your rules, calculates the amount and prepares a message for review. In this example, the quote is recorded in Google Sheets and sent to an internal address via Gmail. It is not sent to the customer automatically, so you can check it before committing to an offer.
This works well when you sell services with defined units and prices. If you need to visit a site, interpret plans or negotiate terms for each customer, the form can prepare the request, but it should not make up a price.
The setup in this guide is proposed: the rates, requests and results are fictional. It does not need AI to calculate prices. Interfaces and available options may vary depending on your n8n version and account settings.
What the workflow does and what you get
The workflow has four tasks: collect, validate, calculate and record. A fifth task notifies the person who needs to review the result. You can link to the form from your website; in this setup, n8n serves the form page. We do not assume that it can be embedded directly in every content management system.

The n8n Form documentation explains that forms can have multiple steps with logic between them, and that the workflow starts with Form Trigger. For this first version, one page and three fields are enough.
| Component | Role in the example | Expected result |
|---|---|---|
| Form Trigger | Receives the service, units and email | One request per submission |
| Edit Fields and Code | Add a reference and calculate according to rules | An amount or a reason for review |
| Google Sheets | Saves the valid draft | A row with the details and amount |
| Gmail | Notifies the team | An internal message, not a message to the customer |
| Review branch | Handles unsupported values that reach the workflow | A notification without a calculated quote |
The form may prevent submission when a required field is missing. In that case, the request does not reach the workflow and no review notification is generated. The review branch only handles requests that reach Code.
The result is a draft quote in text, not a PDF or an invoice. You can later convert it into a document with another tool, but that addition needs its own testing and error handling.
What you need before opening n8n
Prepare the following:
- An n8n instance accessible to the people filling in the form, with secure access and a public URL configured for production.
- A Google account and valid credentials to connect the sheet and Gmail. Check that the chosen account can access the sheet and send from the intended mailbox.
- A spreadsheet dedicated to testing, shared with the account n8n will use.
- An internal address to receive notifications and a second test address to simulate a request. Use fictional data during testing.
- A small catalogue of services, prices, permitted units and review conditions approved by your business.
- A person responsible for reviewing offers and maintaining the rates.
Connecting to Google depends on the credentials and permissions in your setup; there is no single approach that works for every installation. The Google Sheets in n8n documentation covers operations for reading, creating and updating rows. The Gmail in n8n documentation describes creating drafts and sending messages, among other operations.
Design the rules before the form
A form will not fix an ambiguous pricing policy. Before automating, write down the answers to these questions:
- Which items have a fixed price per unit?
- What minimum and maximum quantities can be calculated without intervention?
- What is included in the price, and what is excluded?
- Which requests should go to review without an amount?
- Who checks taxes, validity and terms before sending the offer?
To keep calculation separate from commercial decisions, this guide calculates only the base amount. Tax treatment and final terms are reviewed outside the workflow; do not infer a tax rate from this example.
A useful rule is that an unknown value is not the same as zero. If someone requests a service that is not in the catalogue, do not generate a free offer or use another service’s rate. Send the case for review.

The comparison applies to requests that reach the workflow. If the form blocks a submission because a required field is missing, neither output is produced.
Proposed example: web page maintenance
Imagine a small studio that offers two repeatable tasks. These rates are invented solely to demonstrate the calculation and do not represent market prices.
| Service on the form | Hypothetical price per unit | Automatic quantities | Proposed scope |
|---|---|---|---|
| Content update | 40 € | 1 to 10 | One simple update per unit |
| Link review | 25 € | 1 to 10 | One page reviewed per unit |
| Other service | No rate | None | Manual review |
A request for three updates produces a base amount of 120 €: 3 × 40 €. The draft will state that the figure is a provisional base amount and that terms and taxes, where applicable, still need to be added. A request for twelve units or another service does not receive an automatic price.
We will work in whole cents: 40 € is 4,000 cents. This avoids adding euro prices using binary decimals in this simple calculation. If you later add discounts, fractions of a unit or multiple taxes, define and check separately where rounding takes place.
Steps to build and test the workflow
The design uses common n8n nodes. Their names or configuration details may change; look for the specified operation and check the input and output data in your version. The aim is not to reproduce a particular screen, but to let you verify each result.
1. Prepare the record sheet
Create a test sheet with a first row of headers, for example:
referencia, servicio, unidades, correo, base_centimos, estado.
Use those exact names when mapping the columns. The reference identifies an execution; estado will start with the value pendiente_revision. Do not store more data than you need to prepare and review the offer.
Check: the connected account can write a test row to the selected sheet. Then delete it or mark it as a test so it is not confused with a real request.
2. Create the input form
Start a workflow with Form Trigger. Define these required fields:
Servicio: a selection withActualización de contenido(content update),Revisión de enlaces(link review) andOtro servicio(other service).Unidades: a whole number requested from the user.Correo: an email field so the team can reply after reviewing the offer.
Keep these names exactly as they appear in the code below. If you change them, also update the field references. Add a description explaining that the submission requests a quote and that the final amount is confirmed after review. Do not ask for sensitive information or paste examples from real customers.
The n8n Form guide distinguishes the test URL from the production URL. To test the complete path, you need to run the test workflow, not just test the initial node.
Check: submit a fictional request and verify that the output contains all three fields with their expected names and values. If n8n returns them under different names, adjust the code before continuing. Also try submitting the form with a required field empty: check whether the form prevents submission. If it blocks the submission, do not expect a subsequent execution or review notification.
3. Add an execution reference
After the form, use an Edit Fields node to add referencia with an expression based on the execution ID, for example ={{ 'P-' + $execution.id }}. Also retain the fields received from the form in this node’s output.
This reference helps you find the record and notification for the same execution. It does not protect against repeated submissions: if someone submits the form twice, you will normally have two executions and two references.
Check: the output includes referencia, Servicio, Unidades and Correo. If any are missing, check the settings that retain the input fields.
4. Validate and calculate
Add a Code node after Edit Fields. For this example, configure it to process all input items and use this code. The service and field names must match the form exactly.
const tarifas = {
'Actualización de contenido': 4000,
'Revisión de enlaces': 2500,
};
return $input.all().map((item) => {
const datos = item.json;
const servicio = String(datos.Servicio ?? '').trim();
const correo = String(datos.Correo ?? '').trim();
const valor = datos.Unidades;
const unidades = valor === '' || valor == null
? NaN
: Number(valor);
const tarifa = Object.hasOwn(tarifas, servicio)
? tarifas[servicio]
: null;
let motivo = '';
if (!correo || !correo.includes('@')) {
motivo = 'Correo ausente o no válido para revisión';
} else if (tarifa === null) {
motivo = 'Servicio sin tarifa automática';
} else if (!Number.isInteger(unidades) || unidades < 1 || unidades > 10) {
motivo = 'Unidades fuera del rango permitido';
}
return {
json: {
referencia: datos.referencia,
servicio,
correo,
unidades: Number.isFinite(unidades) ? unidades : null,
valido: motivo === '',
motivo,
base_centimos: motivo === '' ? tarifa * unidades : null,
},
};
});The email check in the code is deliberately basic: it prevents an obviously empty value, but does not prove that the mailbox exists or belongs to the person who submitted the request. The form’s email field does not provide that verification either.
Check: with three updates, the output contains valido: true and base_centimos: 12000. If zero, eleven, a fraction or Otro servicio reaches Code, the output contains valido: false and no amount. The form may block some of those values before submission; in that case there will be no Code output for that test. To check Code’s defensive validation with blocked values or missing fields, use fictional input data in an isolated node test, without running the recording and email branches. If the node fails because of compatibility with your JavaScript version, inspect the execution and adapt the property check before publishing.
5. Separate valid cases from those requiring review
Connect a condition node to the Code output and check whether valido is true. The valid branch continues to Google Sheets; the invalid branch prepares an internal notification with the reference and reason, without presenting a figure as an offer.
To avoid confusing references, name the Code node Calcular and retain that name in the remaining expressions. If you change it, also update the expressions that refer to it.
Check: run one valid request and another that the form allows but Code rejects, such as Otro servicio with the other fields completed. No invalid request that reaches the workflow should reach the calculated quotes record or the valid offer message. A submission blocked by the form reaches neither branch.
6. Record the valid draft
On the valid branch, connect Google Sheets using the operation to append a row. Select the test sheet and map the columns to the fields in the Calcular output: reference, service, units, email and base amount in cents. Enter pendiente_revision as the status.
The append-row operation creates a new record; it does not by itself check whether a request is unique. n8n also documents operations for reading and updating rows, but searching before writing does not guarantee uniqueness if two executions arrive at the same time (Google Sheets documentation).
Check: the sheet has a row with 12000 as the base amount in cents and the expected status. Verify that each value appears under its header, not just that a row has been created.
7. Send the internal notification
After saving the row, add Gmail with the operation to send a message to your internal address. Retrieve the data from the Calcular node using references to that node, so you do not depend on Google Sheets returning exactly the same fields. For example, {{ $('Calcular').first().json.referencia }} lets you include the reference in an expression.
Prepare a text message with the reference, service, units, reply email, base amount and status. To display euros, divide base_centimos by 100 and format the result; keep the value in cents in the record. Include a warning: “Draft pending review; final terms and tax checks are still required.”
On the invalid branch, configure another internal notification stating the reference and reason. Do not present null as if it were a price of zero euros. If you prefer to prepare a Gmail draft instead of sending a notification, that is a documented alternative, but you need to review its content and recipient before sending it (Gmail documentation).
Check: you receive the internal test message, its reference matches the one in the sheet, and the amount shown is 120.00 €. The fictional customer does not receive an automatic email.
8. Publish and repeat the tests
Once the test workflow works, save and publish it and use the form’s production URL. Link to it from a page on your website with text explaining what is being requested. The n8n Form documentation states that the production URL requires the workflow to be saved and published.
Repeat one valid request and one invalid request that the form allows, such as Otro servicio, using test data. Also check what happens when you leave a required field empty: if the form blocks the submission, do not expect an internal notification. Verify the record and notifications for submitted requests; then identify or remove those test records. Do not announce the form until someone responsible has reviewed the entire process.

Testing and troubleshooting table
| Test | What to check | What to do if it fails |
|---|---|---|
| Three updates | Base amount of 12,000 cents | Check the rate, service name and multiplication |
| Eleven units | If submission is allowed, the review branch has no amount; if blocked, there is no subsequent execution | Check form validation and, if the request reaches the workflow, the limits and the valido condition |
| Other service | With the other fields completed, a reason for review | Check that there is no default rate |
| Empty required field | If the form blocks submission, there is no review notification | Check the field settings and, separately, test Code with isolated fictional data |
| Spreadsheet | Correct row and columns | Check permissions, the selected sheet and field mapping |
| Internal email | Reference and amount match | Check credentials, recipient and message expressions |
| Published form | Record and notification from a test | Check the production URL, publication and availability |
It is not enough for an execution to appear as complete: open the row and the message to check their contents. If a test creates a row but does not send the notification, keep the reference and decide how to notify the team manually before repeating anything.
Errors, duplicates and maintenance
The order of this design matters: first the row is saved, then the notification is sent. If Google Sheets fails, the valid quote message should not be sent. If the row is saved and Gmail fails, there is a pending record that can be reviewed manually. Repeating the entire execution without checking may create another row.
For a first version, establish a routine: review failed executions, look up the reference in the sheet and act according to where the failure occurred. A shared sheet does not by itself guarantee that a request is processed only once when executions run simultaneously. If duplicates are costly, use a stable request identifier and a data store with a uniqueness constraint; also design a recovery process for when the record is saved but the email fails.
Update rates through a controlled change: record what changes, who approves it and when it takes effect. In this example, rates are inside the code, so every change requires editing and testing it. If you move them to a rate sheet, add checks for missing services, empty prices or inconsistent versions; do not silently turn those failures into zero.
Also review access to the sheet, the status of credentials, the error history and who receives notifications. For more on operations, see the guide to tracking quotes with n8n, which focuses on statuses and reminders.
Privacy and system limitations
The example form only needs an email address and the request details. Avoid asking for documents, sensitive information or personal data that adds nothing to the calculation. Limit who can access the sheet and execution history, define how long you will retain records, and remember that email can also leave copies. Review applicable obligations with the appropriate person; this guide is not a substitute for legal advice.
A public form can receive spam or repeated submissions. Plan protective measures compatible with your deployment and monitor the volume; do not assume that an execution reference prevents abuse. Do not publish internal rates, credentials or real test data on your website.
This workflow does not check availability, verify that the requester controls the email address or decide commercial terms. If you add AI to summarise open-ended requests, treat its output as a proposal that needs review: keep pricing tied to approved rules and do not send private information to external services without first evaluating their use.
How to estimate the cost without inventing prices
We do not include current commercial rates because they depend on the deployment, plans and accounts you choose. To calculate your own costs, check providers’ current prices and add the cost of setup and maintenance. Separate costs you would pay anyway from those attributable to this automation.
| Item | Estimation method | Information you need |
|---|---|---|
| Initial setup | Estimated hours × hourly cost | Your own estimate or a provider’s quote |
| n8n and infrastructure | Expected incremental monthly cost | Current plan or hosting costs |
| Google and email | Incremental cost of accounts and services | Current terms of your account |
| Maintenance | Monthly hours × hourly cost | Expected time for review and updates |
| Incidents | Expected time × hourly cost | Estimate revised after operation |
A purely hypothetical example: if you estimate 6 hours of setup at 40 €/hour and 1 hour of monthly maintenance at the same rate, you get 240 € upfront and 40 € per month in labour. You would need to add any actual incremental software and infrastructure costs. This is neither an offered rate nor a project forecast.
To assess whether it is worthwhile, compare that cost with the time you would no longer spend copying, calculating and preparing drafts. Also count the review time that will remain and the time spent correcting incomplete requests. Measure the result after using the workflow; before then, you only have a hypothesis.
When to build it yourself and when to ask for help
Building it yourself makes sense if the catalogue is small, you can test with fictional data and someone on the team will take responsibility for rates, credentials and errors. The IA que trabaja Academy can help if you want to learn and maintain automations yourself.
Ask for help if you need to integrate several systems, control duplicates with guarantees or define reliable recovery when part of the process fails. The automatic quotes service is suited to assessing and implementing a tailored solution rather than limiting yourself to this example.
Frequently asked questions
Do I need artificial intelligence to calculate the quote?
No. For known rates and quantities, explicit rules are easier to check. AI can help with unstructured text, but it should not replace validation of prices and terms.
Does the customer receive the quote after filling in the form?
Not in this proposal. The workflow records a draft and notifies an internal address. A person must review and send the offer through the channel the business chooses.
Can I use my existing web form?
An integration is possible, but it depends on whether your form can deliver responses to n8n and how you handle security and validation. This guide uses the n8n-hosted form to avoid depending on a particular connector.
Can I generate a PDF?
Yes, as an addition using a tool that converts a template into a document. You will need to verify the content, file generation and what happens if it fails. The workflow described only prepares text and a row.
What happens if someone submits the request twice?
Each submission can generate a separate execution and row. The reference in the example locates each execution; it does not identify duplicates. If you need to prevent duplicates, add an appropriate identification and storage strategy.
Is Google Sheets suitable for any volume?
You should not assume so. Suitability depends on concurrency, control and recovery requirements, as well as the service’s terms. For critical processes, consider a data store designed for concurrent records and explicit error handling.
How do I know if the price is still correct?
Periodically compare the configured rates with the approved catalogue, test at least one case per service and keep a record of changes. If you cannot confirm the rate, send the request for review without calculating an offer.


