Tallyho

v1.0.0
so.tallyho/tallyho Checked 4 days ago Published 15 days ago

Licensed 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…

ParameterTypeDescription
job *object
limitinteger
promisesarrayWhich promises matter for this job. Default: every promise the spec lets Tallyho judge.
testbooleanMark 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.

ParameterTypeDescription
business_id *string
channelstringDefault: the best available. Version 1 offers only handoff.
contactobjectThe user's details for the business. Never stored; unused on a handoff.
find_idstringThe search this business came from. Required unless `job` is given.
idempotency_keystring
jobobjectRequired when there is no find_id; otherwise the search's job is used.
previous_booking_idstringThe booking this one follows, e.g. after a counter-offer.
principal_namestringOn a Tallyho call: the first name the call uses ("calling for Jordan"). Spoken, never stored. Without it, "the property owner".
principal_refstringAny stable id for the user; only a salted hash is kept.
promisesarray
testbooleanDefaults 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.

ParameterTypeDescription
booking_id *string
actualobject
quoteobjectWhat the business quoted. Lets Tallyho compute the price and slot verdicts.
resultstringWhat happened to the booking. Moves it to this status.
verdictsobjectkept, 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…

ParameterTypeDescription
ask_idstringThe ask to read, from ask. Send this or booking_id.
booking_idstringThe booking to read, from book. Send this or ask_id.