# Field Service Booking Desk, free sample: the booking card, the field map and a five-check starter

Free. By PaperChaseWebb Inc., 2026-11-03. Python 3.9 or newer, standard library only.

Before an agent writes anything into ServiceTitan or Jobber, every captured call should become one card a person can read in ten seconds. This sample gives you that card, the field map from the full kit and a read-only checker with five of its fourteen checks, tested.

## The booking card

File: mini/card.json

~~~json
{
  "card_id": "RC-0142",
  "captured_at": "2026-11-09T15:20",
  "source": "phone call",
  "caller": {
    "first_name": "Priya",
    "last_name": "Natarajan",
    "company": "",
    "phone": "[phone]",
    "email": "[email]"
  },
  "consent_to_text": "yes",
  "consent_note": "Caller said yes when asked: can we text you appointment updates at this number",
  "address": {
    "street": "1770 Wadsworth Blvd",
    "unit": "Apt 3",
    "city": "Lakewood",
    "state": "CO",
    "zip": "80214"
  },
  "job": {
    "type": "furnace-repair",
    "summary": "Furnace runs but blows cold air",
    "details": "Started yesterday. Thermostat set to 70. Filter changed last month.",
    "urgency": "standard"
  },
  "window": {
    "start": "2026-11-10T10:00",
    "end": "2026-11-10T12:00"
  },
  "price_note": "Told the dispatcher fee policy is explained by the office; no amount given",
  "match": {
    "new_client_confirmed_by": ""
  },
  "call_ended_early": false
}
~~~

Rules for the card: fill it only from what the caller said or typed; leave unknowns empty; price talk goes word for word in price_note, never in the job text; a value in square brackets such as [phone] is a redaction placeholder.

## Field map

| Card | ServiceTitan booking (CRM v2) | Jobber (GraphQL) |
|---|---|---|
| caller names | name | clientCreate: firstName, lastName, companyName |
| caller.phone, caller.email | contacts | clientCreate: phones and emails |
| address | address: street, unit, city, state, zip, country | in assessment.instructions |
| job summary, details, window, source, consent, card id | summary | assessment.instructions, and a title |
| window.start | start, in UTC | assessment.schedule.startAt and endAt with date, time, timezone |
| job.urgency | priority | in the instructions |
| card_id | externalId | in the instructions |

Jobber fields were read in Jobber's public developer docs on 2026-11-03. ServiceTitan fields come from public third-party mirrors of its API reference, because its developer portal needs a login; confirm each one in your own portal before you build on it.

## The five checks

| Check | What it catches |
|---|---|
| M1 | a required field is missing: who, how to reach them, where, what, when |
| M2 | the window is outside business hours (default 07:00 to 18:00) or not a valid time |
| M3 | a price, discount, "free" or guarantee would land in the job text |
| M4 | text consent is missing, invalid, or yes without a note of how it was given |
| M5 | the words sound like an emergency (gas, smoke, sparking, flooding, no heat) but the card is not marked emergency |

~~~sh
python3 mini/booking_mini.py mini/card.json
python3 tests/test_mini.py
~~~

Both were run on 2026-11-03 on Linux: the example prints `card OK: 0 findings` and all 6 tests pass (the clean card, then each fault planted alone).

File: mini/booking_mini.py

~~~python
#!/usr/bin/env python3
"""booking_mini.py: five read-only checks on one booking card (free sample of the Field Service Booking Desk).

Usage: python3 booking_mini.py card.json [--open 07:00 --close 18:00]
Exit 0 = clean, 1 = findings, 2 = the file could not be read. Standard library only. Sends nothing.
"""
import json, re, sys
from datetime import datetime

RULES = {
    "M1": "a required field is missing",
    "M2": "the window is outside business hours or not a valid time",
    "M3": "a price, discount or guarantee would land in the job text",
    "M4": "text consent is missing, invalid, or yes without a note of how it was given",
    "M5": "the words sound like an emergency but the card is not marked emergency",
}
PRICE = re.compile(r"\$\s?\d|\b\d+\s?(dollars|bucks)\b|\b(free|no charge|guarantee[ds]?|flat rate|price match|discount|half off|waive[ds]?)\b", re.I)
EMERGENCY = re.compile(r"\b(gas (leak|smell)|smell(s|ing)? gas|carbon monoxide|co alarm|flood(ing|ed)?|burst pipe|sparking|sparks|smoke|burning smell|no heat|no power|sewage backup)\b", re.I)
REQ = ["caller.first_name", "address.street", "address.city", "address.zip", "job.type", "job.summary", "job.urgency", "window.start", "window.end"]


def g(c, path):
    for k in path.split("."):
        c = c.get(k) if isinstance(c, dict) else None
    return (c or "").strip() if isinstance(c, str) else c


def check(card, open_="07:00", close="18:00"):
    F = [("M1", k) for k in REQ if not g(card, k)]
    if not (g(card, "caller.phone") or g(card, "caller.email")):
        F.append(("M1", "caller.phone or caller.email"))
    try:
        st, en = (datetime.strptime(g(card, k), "%Y-%m-%dT%H:%M") for k in ("window.start", "window.end"))
        if not (open_ <= st.strftime("%H:%M") and en.strftime("%H:%M") <= close and st < en and st.date() == en.date()):
            F.append(("M2", "%s to %s" % (st, en)))
    except (TypeError, ValueError):
        F.append(("M2", "window"))
    text = " ".join(str(g(card, k) or "") for k in ("job.summary", "job.details"))
    if PRICE.search(text):
        F.append(("M3", PRICE.search(text).group(0)))
    ct = g(card, "consent_to_text")
    if ct not in ("yes", "no", "unknown") or (ct == "yes" and not g(card, "consent_note")):
        F.append(("M4", repr(ct)))
    if EMERGENCY.search(text) and g(card, "job.urgency") != "emergency":
        F.append(("M5", EMERGENCY.search(text).group(0)))
    return F


def main(a):
    if not a or a[0].startswith("-"):
        print(__doc__); return 2
    o = a[a.index("--open") + 1] if "--open" in a else "07:00"
    c = a[a.index("--close") + 1] if "--close" in a else "18:00"
    try:
        with open(a[0], encoding="utf-8") as f: card = json.load(f)
    except (OSError, ValueError) as e:
        print("could not read:", e); return 2
    F = check(card, o, c)
    for code, d in F:
        print("%s: %s (%s)" % (code, RULES[code], d))
    print("%d findings" % len(F) if F else "card OK: 0 findings")
    return 1 if F else 0


if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))
~~~

File: tests/test_mini.py

~~~python
#!/usr/bin/env python3
"""Tests for the free sample's booking_mini.py: the example card is clean, and each of five faults is caught alone."""
import copy, json, os, sys, unittest
H = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(H, "mini"))
import booking_mini as bm

with open(os.path.join(H, "mini", "card.json"), encoding="utf-8") as f:
    BASE = json.load(f)


def codes(**edits):
    c = copy.deepcopy(BASE)
    for path, v in edits.items():
        if "__" in path:
            a, b = path.split("__"); c[a][b] = v
        else:
            c[path] = v
    return sorted({x for x, _ in bm.check(c)})


class Mini(unittest.TestCase):
    def test_clean(self): self.assertEqual(codes(), [])
    def test_M1(self): self.assertEqual(codes(job__summary=""), ["M1"])
    def test_M2(self): self.assertEqual(codes(window__end="2026-11-10T19:00"), ["M2"])
    def test_M3(self): self.assertEqual(codes(job__details="Quoted $89 for the visit"), ["M3"])
    def test_M4(self): self.assertEqual(codes(consent_to_text="sure"), ["M4"])
    def test_M5(self): self.assertEqual(codes(job__details="Water is flooding the basement"), ["M5"])


if __name__ == "__main__":
    unittest.main(verbosity=1)
~~~

## For Grok Bot, Claude Code, Codex and Hermes

~~~text
Turn each captured call or form into one booking card in cards/, using only what the customer said. Leave unknowns empty. Never put a price, discount or guarantee in the job text. Mark gas, smoke, sparking, flooding or no heat as emergency and tell me first. Run python3 mini/booking_mini.py on each card. Never write to ServiceTitan or Jobber; I do that.
~~~

## What the full kit adds

The Field Service Booking Desk ($29) adds nine more checks (duplicate clients by phone, email or address; slots the office is holding; lead time; job types and their minutes; garbled addresses; hang-up calls; direct-job lock; contact format; settings), a dry run that writes the exact ServiceTitan booking or Jobber client and request, your approval at your own terminal tied to a hash, and a send step with nine refusals that checks every response. 23 tests, every send tested against a local server, and agent files for all four harnesses.

If you would rather have it set up and watched, Managed Ops starts at $5,000/mo with $2,500 onboarding and a 3-month minimum. Book a call on the paperchasewebb.ai homepage. Every price is a starting price.

ServiceTitan and Jobber are trademarks of their owners. This sample is independent and not endorsed by them.
