See llms.txt for all machine-readable content.

Back to Templates

Triage plumber quote emails with Gmail, Google Gemini and Google Sheets

Quick overview

For plumbing businesses that miss emergencies while on a job. Every 5 minutes, Google Gemini reads new Gmail messages, separates real customer requests from spam, logs them to Google Sheets, sends the customer an instant reply with safety advice for emergencies, and emails you an alert when it's urgent.

How it works

  1. Runs every 5 minutes and triggers when a new email arrives in Gmail (excluding messages sent by you).
  2. Uses Google Gemini to extract structured details from the email (client request vs. spam, urgency, contact info, address, and a short summary).
  3. Continues only if the email is identified as a real client plumbing request.
  4. Appends the request details to a Google Sheets tab to track leads and call-backs.
  5. Sends an automatic reply to the customer from Gmail, with different guidance depending on whether the situation is urgent.
  6. If the request is marked as urgent, sends an alert email to your specified address with the extracted details.

Setup

  1. Create Gmail OAuth2 credentials and select them in "New email received", "Reply to customer" and "Send emergency alert".
  2. Create Google Gemini (PaLM) API credentials with a free key from Google AI Studio and select them in "Google Gemini model".
  3. Create a Google Sheet with a tab named "Requests" and these headers in row 1: Date, Customer, Email, Phone, Address, Job, Priority, Summary, Status. Connect Google Sheets credentials in "Log request in Google Sheets".
  4. Open "Configuration (edit me)" and set your business name (used to sign replies), the email address that receives emergency alerts, and your Google Sheet URL.
  5. Send a test email from another address (your own emails are ignored), check the new row and the reply, then activate the workflow.

Requirements

  • Gmail account, Google Sheets, and a Google Gemini API key (the free tier is enough for a small business)