QuietdeskYour AI back office

n8n · AI automation

2026

AI Back Office for a Service Business

Leads, invoices and a Telegram copilot, built on n8n. The owner only steps in when it matters.

Tags:

  • AI Automation
  • n8n
  • AI Agents
  • Gemini
Role
Solo build
Stack
n8n, Gemini, Telegram, Gmail, Google Calendar, Google Sheets
Scope
2 workflows + 1 AI agent
Status
Demo build, Nov 2026
AI Back Office case study cover: the lead intake and invoice intake workflows in n8n beside a Telegram chat where the owner asks what is owed this week and approves a follow-up email

Demo

Watch first

A one-minute tour of the ops copilot: ask a question in Telegram, get a daily brief, check new leads, then draft an email and send it only after a yes.

Part 1

Lead Intake

Every enquiry is captured, cleaned, scored by Gemini and routed in seconds. Junk is filtered out before it reaches the AI, so it costs nothing.

Lead intake workflow in n8n, in four coloured stages: Capture from a lead form and a website webhook, Clean and de-duplicate against the sheet, AI qualification with the Gemini model and a lead score schema, and Log and route to the CRM sheet, Telegram alerts and a Gmail reply
n8n
The real canvas, one colour per stage. Swipe sideways to follow the flow.
  1. 01

    Capture

    A form for the demo, plus a webhook so any website form (Framer, WordPress) can post JSON in.

  2. 02

    Clean & de-duplicate

    Validates the email, blocks disposable domains and link spam, and checks the sheet for repeat enquiries. Junk never reaches the AI.

  3. 03

    AI qualification

    Gemini scores each lead hot, warm, cold or junk against a strict JSON schema. It retries twice; if it still fails, the lead is kept and flagged for a human.

  4. 04

    Log & route

    Every lead lands in the CRM sheet. Hot leads ping the owner on Telegram, real leads get a personal reply, junk and repeats get no email.

Telegram alert reading HOT LEAD 95 out of 100 for Rohan Mehta, who wants Canada within 3 months on a budget of NPR 30 lakh plus, with why the lead is hot, a one-line summary and the note Auto-reply sent, call them within 5 minutes. Email and phone are blurred.
01
The owner's phone, seconds after a hot enquiry: a score, why it's hot, a one-line summary and what to do next.
Lead Intake Dashboard in Google Sheets showing 3 hot, 1 warm, 1 cold and 1 junk lead out of 6, an average AI score of 71.8, 1 junk lead blocked before AI and 0 repeat enquiries
02
A dashboard that fills itself from a test run: hot, warm, cold and junk, the average AI score, and junk blocked before it cost any tokens.

Part 2

Invoice Intake

Invoices arrive by email and end up read, checked and logged. Clean ones go straight through; anything suspicious waits for the owner on Telegram.

Invoice intake workflow in n8n, in four stages: Intake from a Gmail trigger that splits out PDF attachments, Read and extract with the AI invoice extractor and invoice schema, Verify with maths and duplicate checks, and Approve and log with a Telegram approval request and the invoices sheet
n8n
The real canvas, one colour per stage. Swipe sideways to follow the flow.
  1. 01

    Intake

    Checks Gmail every minute for emails with PDF attachments, splits out every PDF and processes them one at a time.

  2. 02

    Read & extract

    Pulls the text from each PDF and Gemini turns it into structured invoice data (strict schema, temperature 0, 2 retries). Scanned PDFs and AI failures go to review, never lost.

  3. 03

    Verify

    The part clients pay for. Re-checks the AI's maths (line items, subtotal, tax, total), the dates, its confidence, the approval limit and duplicates.

  4. 04

    Approve & log

    Clean invoices under the limit are auto-approved. Anything flagged pings the owner with Approve / Reject buttons, and every decision is logged with who made it.

Telegram message titled Invoice needs your approval for Maple and Finch Office Supply invoice MF-4471, total USD 671 with tax 61, 3 line items, AI confidence 95 percent, flagged because the line items add up to 560 but the subtotal says 610, with Reject and Approve buttons
01
A flagged invoice on the owner's phone: every field the AI read, why it was stopped, and one tap to approve or reject.

Caught by the verify stage

Line items add up to 560. The subtotal says 610.

A test invoice with a deliberate maths error. Gemini read it with 95% confidence, and the verify stage still refused to trust it. That gap between “the AI is sure” and “the numbers are right” is exactly where a back office loses money.

Part 3

Ops Copilot

The owner never opens n8n or the sheet. They text the agent like a colleague, and it reads the CRM, the ledger and the calendar to answer. It can draft and send email, but only after a yes.

Telegram chat with the copilot: the owner asks what do we owe this week and gets USD 203.4 for one invoice, asks for a follow-up to Rohan, reviews the drafted email, replies Yes to Shall I send this email to Rohan, and the agent confirms the email was sent. The signature is blurred.

The real chat, with the signature blurred.

The agent's capabilities panel in n8n listing nine workflow tools: Copilot read leads, update lead, send email, read invoices, update invoice status, read schedule, change event, daily brief data and message owner

Nine tools, each a small n8n workflow the agent can call.

  1. 01

    Just ask

    Questions in plain words: what do we owe this week, who came in today, what's on tomorrow.

  2. 02

    Daily brief on demand

    “Brief me” returns today's meetings, new leads, follow-ups and money owed in one short message.

  3. 03

    Check new leads

    Who is hot, why, and what to do next, read straight from the CRM sheet.

  4. 04

    Draft, approve, send

    It writes the email, shows it in the chat and waits. Nothing goes out until the owner says yes.

The system

How it fits together

Each job is its own n8n flow, and they all share one memory: a Google Sheet that works as the CRM, the invoice ledger and a live dashboard. Gmail sends the email, Telegram keeps the owner in the loop.

  1. Website form or webhookLead intake workflowCRM sheet, personal reply, hot-lead alert
  2. Invoice email in GmailInvoice intake workflowInvoice ledger, Approve / Reject on Telegram
  3. Owner message on TelegramGemini AI agentAnswers, briefs, calendar changes, emails after a yes
Shared memory: Google Sheets, the CRM, invoice ledger and dashboard

Human in the loop

Routine runs alone. Risky waits for a yes.

Automating everything is easy; knowing where to stop is the job. The safe, repetitive work runs by itself, and the owner sees anything that could cost money or trust.

  1. Runs alone, owner alerted

    Hot lead

    The student gets an instant personal reply, and the owner gets a Telegram alert to call within five minutes, so the best enquiries reach a human fast.

  2. Needs a yes

    Flagged invoice

    Bad maths, a duplicate, low AI confidence or anything over the limit waits for Approve or Reject, and the decision is logged with who made it.

  3. Needs a yes

    Copilot email

    The agent shows the full draft and asks “Shall I send?”. Only a yes sends it.

Challenge:

A small business owner loses hours every week to the same jobs: sorting real enquiries from spam, replying to leads, keying invoices into a sheet and remembering who to chase. This back office had to take that work off their plate without becoming a black box that pays the wrong invoice or emails a customer on its own.

Role:

Solo build. I mapped the busywork, designed and built every workflow in n8n, wrote the prompts, JSON schemas and agent skills, tested it with real enquiries and invoices, and produced the demo videos.

What made it hard

Challenges

  1. 01

    Junk shouldn't cost money

    Spam and fake sign-ups would burn AI calls. Email checks, disposable-domain blocks and link-spam filters run first, so only real enquiries reach Gemini, and the dashboard counts what was blocked.

  2. 02

    AI that answers in the right shape

    A lead score or an invoice total is useless if the JSON is broken. Gemini answers against strict schemas at temperature 0 and retries twice; if it still fails, the item goes to review instead of disappearing.

  3. 03

    Confident isn't correct

    The AI read a test invoice with 95% confidence and the maths was still wrong. So every invoice is re-checked in code (line items, subtotal, tax, total, duplicates) before anyone trusts it.

  4. 04

    Trust over full autopilot

    Routine lead replies go out automatically, but copilot emails and flagged invoices always wait for the owner's yes on Telegram, and every decision is written to the sheet.

How it was made

Designed by me.
Run by n8n.

2+1workflows plus one AI agent with nine tools, all in n8n
  • n8n
  • Gemini
  • Telegram
  • Gmail
  • Google Calendar
  • Google Sheets

It started with the busywork, not the tools: which jobs eat the owner's week, and which ones are safe to hand to a machine. Each job became its own n8n workflow, split into labelled, colour-coded stages so anyone opening the canvas can follow it. Gemini does the reading and scoring against strict JSON schemas, Google Sheets is the shared memory and dashboard, Gmail sends, Google Calendar holds the schedule, and Telegram is where the owner talks to it and approves what matters. The copilot is an n8n agent with nine small workflow tools and plain-language skills, such as the format of the daily brief and the rule to confirm before sending.

  1. 01

    Map the busywork

    Listed the owner's repeat jobs and drew the line between what runs alone and what needs a yes.

  2. 02

    Lead intake

    Capture, clean and de-duplicate, Gemini qualification, then log, alert and reply.

  3. 03

    Invoice intake

    Gmail intake, PDF extraction with Gemini, verification in code, then approval and logging.

  4. 04

    Ops copilot

    An n8n agent with nine workflow tools across leads, invoices, the calendar and the owner, steered by plain-language skills.

  5. 05

    Test the edges

    Spam enquiries, repeat submissions, broken AI output and a deliberately wrong invoice, run until each one failed safely.

  6. 06

    Demo videos

    Three short walkthroughs, cut in 16:9 and 9:16, so a client can see each part run end to end.

Your business, next

Want an AI back office like this?

Let's talk