Tallyho
v1.0.0Licensed plumbers near a job in SF, Oakland, Berkeley and the Tri-Valley, with a booking handoff.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find Find a plumber
Find plumbers for a job anywhere in California (electricians with job.trade "electrical", HVAC firms with "hvac"), ranked by the chance they keep every promise that matters for it: take the job, have a slot in the window, quote within budget, arrive on time, hold the quote, finish, no upsell. Only job.location.zip is required; add system, issue, urgency, window and price_ceiling_cents for a sharper answer. Each candidate has a likelihood per promise with n (the evidence behind it), an 80% interval and freshness, the joint likelihood, and its CSLB license check. n=0 is Tallyho's starting estima…
| Parameter | Type | Description |
|---|---|---|
job * | object | |
limit | integer | |
promises | array | Which promises matter for this job. Default: every promise the spec lets Tallyho judge. |
test | boolean | Mark this search and anything booked from it as a test; test rows never change a likelihood. |
book Book a plumber
Book a plumber from a find (business_id + find_id). Version 1 is a handoff: Tallyho records the request and returns the plumber's phone number and the questions to ask; nothing is booked until the user calls, so booked is false. Don't send the user's contact details on a handoff; they are never stored either way. Keep the booking_id and call report after the call to the plumber, and again after the job.
| Parameter | Type | Description |
|---|---|---|
business_id * | string | |
channel | string | Default: the best available. Version 1 offers only handoff. |
contact | object | The user's details for the business. Never stored; unused on a handoff. |
find_id | string | The search this business came from. Required unless `job` is given. |
idempotency_key | string | |
job | object | Required when there is no find_id; otherwise the search's job is used. |
previous_booking_id | string | The booking this one follows, e.g. after a counter-offer. |
principal_name | string | On a Tallyho call: the first name the call uses ("calling for Jordan"). Spoken, never stored. Without it, "the property owner". |
principal_ref | string | Any stable id for the user; only a salted hash is kept. |
promises | array | |
test | boolean | Defaults to the search's environment. |
report Report what happened
Report on a booking, by booking_id, from any session. After the call to the plumber: result confirmed, declined or not_booked, plus the quote (price, slot). After the job: completed, not_completed, no_show or a cancellation, plus the final price and arrival time. Verdicts per promise are kept, broken or unobserved; Tallyho computes price and timing verdicts from the figures. Kept and broken are final. Returns the plumber's updated likelihoods and, if the booking fell through, the next best plumbers from the same search.
| Parameter | Type | Description |
|---|---|---|
booking_id * | string | |
actual | object | |
quote | object | What the business quoted. Lets Tallyho compute the price and slot verdicts. |
result | string | What happened to the booking. Moves it to this status. |
verdicts | object | kept, broken or unobserved, per promise in scope |
status Read a booking or an ask
Read a booking as it stands, by booking_id, from any session; holding the booking_id is enough. Works on every booking, handoff ones too. With ask_id instead, reads an ask: one answer per plumber Tallyho phoned, each what they said on the phone, never a booking. On a booking Tallyho is calling about, status moves from requested to confirmed, counter, declined, not_booked or pending: call status again after check_after_s seconds, and stop when check_after_s is absent. Never tell the user a job is booked unless booked is true. Returns the quote once known, the reason a booking fell through or wa…
| Parameter | Type | Description |
|---|---|---|
ask_id | string | The ask to read, from ask. Send this or booking_id. |
booking_id | string | The booking to read, from book. Send this or ask_id. |