MortDispatch
Book a demo
Automations

Every company runs removals differently. Write yours down.

A rule is three things: the event it listens for, the conditions that narrow it, and what it does. Rules are written in vibescript, a small language with the dispatch operations built in. Ask Assistant to draft one, or write it yourself.

Step 1
Pick the hook
Fourteen events, from call created to a facility losing cooler space.
Step 2
Say what happens
Send texts, reassign crews, change priority, add notes, wait and check again.
Step 3
Test, simulate, go live
Replay real history, then shadow live work, then let it act.
Fifteen minute arrival warning Live
rule "Fifteen minute arrival warning"
on driver.eta_updated
when call.status is "enroute-dropoff"
do
  # the ETA updates on every GPS ping
  if call.tagged("eta_warned")
    stop
  end

  if call.eta_minutes <= 15
    sms.send(
      to:   call.destination,
      body: "{company.name}: our team arrives in about {call.eta_minutes} minutes. Unit {driver.unit}."
    )
    call.tag("eta_warned")
  end
end
Two-person crew required Live
rule "Two-person crew required"
on call.created
when call.weight_lbs > 300
  or call.complications contains "stairs"
do
  call.require_crew(2)
  call.add_note("Two-person crew: {call.access}")

  let pair = drivers.nearest(to: call.origin, within: 40, count: 2)

  if pair is empty
    notify.dispatch("Need a second crew member", level: "warn")
    stop
  end

  dispatch.assign(call, pair)
end
Hook reference

Fourteen events you can attach a rule to.

Hook Fires when In scope
call.created Intake accepted a new removal. call, now
call.assigned A unit was put on the call. call, driver, assignment
call.acknowledged The crew confirmed receipt on the driver app. call, driver
call.enroute The unit started driving to the origin. call, driver
call.on_scene The unit reached the origin. call, driver, location
call.pickup_complete The decedent is in the vehicle. call, driver
call.dropoff_complete The call finished at the destination. call, driver
call.overdue The call passed its service deadline. call, minutes_overdue
call.status_changed Fires for every transition. Narrow it with when. call, from, to, actor
driver.eta_updated A fresh GPS ping moved the estimate. call, driver, eta
driver.shift_start A unit came on shift. driver, shift
driver.offline Telematics stopped reporting. driver, minutes_silent
message.received Someone replied to a text. thread, message, sender
facility.capacity_changed A destination gained or lost cooler space. facility, capacity
Capabilities

What a rule can do to your dispatch.

The host hands scripts the same operations a dispatcher has. Nothing more.

sms.send(to, body)
Text a driver or a facility contact.
notify.dispatch(body, level?)
Raise a banner on the board.
dispatch.assign(call, driver)
Put a unit on a call.
dispatch.escalate(call, to)
Escalate to a role or a person.
drivers.nearest(to, within?, count?)
Closest available units.
drivers.on_call()
Whoever is carrying the on-call phone.
call.set_priority(level)
routine, urgent or stat.
call.tag(name)
Attach a tag for reporting.
call.tagged(name)
True if the tag is already set.
call.add_note(text)
Append to the call record.
call.require_crew(count)
Force a two-person crew.
schedule.reroute(call, to)
Send the crew somewhere else.
facility.nearby(to, within, has_capacity?)
Alternative destinations.
route.eta(from, to)
Estimated drive time.
time.between(start, end)
True inside a clock range.
log.info(message)
Write to the rule's run log.
Assistant

Describe the rule. It writes the script.

Assistant reads your current board before it answers, drafts the rule in vibescript, and compiles it before offering to add it. If it does not parse, you never see it. Edit what it produces, or start from a blank rule.

"Text the facility when we are fifteen minutes out."
"Anything from Sun City after 7pm goes to the on-call unit."
"Chase a driver who has not acknowledged in four minutes."
Modes

A rule acts only when you say so.

Sandbox
Replay real history
Run the rule against last month's calls and read the exact texts it would have sent, named against real calls.
Simulate
Shadow today's work
The rule runs on live calls and records everything it would have done. Nothing is sent and nothing is changed.
Live
Acts on your dispatch
Texts send, crews get assigned, priorities change. Every action lands in the audit trail with the rule named as the actor.

Bring us the rule you keep repeating on the phone.

We will write it with you on the demo call and leave it in Simulate so you can check it for a week.

Book a demo See pricing