Quick overview
This workflow ingests home inspection report PDFs from Gmail or an n8n Form, uses OpenAI to extract repair defects and map them to a Google Sheets price book, then emails you a review link and hosts a quote page where you send the quote and clients can accept or decline.
How it works
- Triggers when an inspection report PDF is received via a Gmail label (inspection-reports), submitted through an n8n Form, opened on the hosted quote page, posted via a quote action button, or on an hourly schedule.
- Extracts text from the attached PDF and emails you if the report is missing or unreadable (for example, a scanned PDF without a text layer).
- Uses OpenAI to parse the report into structured defects (including location, severity, trade, and a short supporting quote) and filters defects down to the trades you configure.
- Reads your Google Sheets “Price book” and uses OpenAI to propose quote line items and quantities matched to your price book items, flagging items that need a site visit instead of inventing prices.
- Builds a quote record (including totals based only on your sheet prices), saves the quote to the Google Sheets “Quotes” tab, saves per-defect rows to the “Defects” tab, and emails you a link to review.
- Serves a web quote page where you can edit quantities/prices, send the quote to the client by email, or close it, and where the client can accept (with name and preferred dates) or decline.
- Runs an hourly follow-up that nudges you if a quote hasn’t been reviewed, emails client reminders after a configured delay and the day before the repair deadline, and marks old quotes as expired.
Setup
- Add credentials for Gmail, Google Sheets, and OpenAI (Chat) in n8n.
- Run the manual “Create my spreadsheet” path once to create the spreadsheet and starter tabs, then paste the resulting spreadsheet ID into the workflow settings.
- Fill in the workflow settings for owner_email, n8n_url, timezone, currency_symbol, and my_trades, and replace the example “Price book” items with your own items, units, and unit prices.
- In Gmail, ensure inspection report emails are labeled “inspection-reports” and include a PDF attachment, or share the n8n Form URL (repair-quote-request) for clients/agents to upload reports.
- After activation, use the emailed owner review link to send quotes, and ensure your n8n instance is reachable at the configured n8n_url so the quote page and action webhooks work.