MODULE 05 // CHALLENGES · 04 ■
The Agent on the Line
An agent that picks up the phone and works a legacy logistics process end to end — it calls, listens, negotiates within a mandate, and turns messy human conversation into verified commitments in the systems behind it.
Key definitions
- Voice agent: an AI system that holds a real-time spoken conversation — it listens, speaks and survives interruptions — while executing work with tools mid-call
- Drayage (ground transport): the truck leg that moves a container from the port to the client's warehouse; today it is coordinated almost entirely by phone
- Carrier / dispatcher: the trucking company that provides the truck, and the human who answers its phone, quotes rates and assigns trucks
- Commitment: a verifiable fact extracted from a conversation ("pickup Thursday 10:00, $8,500 MXN, driver Juan") that both sides can be held to afterwards
- Mandate: the authorization a human gives the agent to negotiate and commit: price cap, time window, conditions — the same idea as Challenge 1, here governing what the agent may agree to by voice
- Escalation: the moment the agent hands a live call to a human — without hanging up and without losing what was already said
- Barge-in: the caller interrupts the agent mid-sentence; the conversation must survive it
The logistics vocabulary from Challenge 3 (operation, booking, container, ETA) applies here too. The voice stack is free: the event is supported by OpenAI and its Realtime API is a natural fit — but any stack you can defend is valid.
1. The problem
Software has eaten the office, but half of logistics still happens over the phone: quoting a truck, confirming a pickup, chasing a driver, renegotiating a delivery window. Agents that read emails and documents are blind to the channel where problems actually get resolved — and those calls:
- Leave no structured record: what was agreed lives in someone's memory or a sticky note
- Depend on two humans being available at the same time — the whole process waits for a call to be answered
- Don't scale: ten shipments in trouble means ten simultaneous conversations someone has to hold
Text automation stops at the edge of the phone network. The last mile of the legacy process is a phone call — and an agent that cannot speak, listen and commit is locked out of it.
2. Objective
Build a voice agent that runs the ground-transport leg of a shipment entirely by phone:
-
☐ It makes real outbound phone calls over the phone network: the agent dials an actual phone number and holds the conversation on a live call (Twilio, SIP or any telephony provider — the stack is free). Browser-to-browser audio does not count. It calls carriers, requests quotes and negotiates rate and pickup window — several negotiations, one best choice, always within a mandate defined by its human
-
☐ It receives inbound calls: a driver reports a delay, a dispatcher moves a schedule — the agent understands, decides and acts in real time
-
☐ Every call produces commitments, not transcripts: what was agreed, with whom and under which mandate, written to the operation's state — and verified twice: (a) the agent sends a written recap (SMS/email) after the call, and a commitment only counts once that recap is out; (b) every commitment links to the audio timestamp of the moment it was agreed
-
☐ Every call also produces a call brief: a structured log of the actions the agent took and everything relevant that was mentioned — prices quoted, names, conditions, objections, what changed
-
☐ Conversation and system stay consistent: what the agent says on the phone always matches what the system knows — and what it hears updates the system
-
☐ The ugly cases are handled explicitly: the human on the line goes off-script, contradicts themselves, refuses, or pushes something outside the mandate → the agent escalates to a human mid-call, without hanging up
-
☐ It negotiates a market, not a single call: at least three carriers in parallel, quotes played against each other within the mandate, and a commitment to the best option — with a comparison the human can audit afterwards
May include (not limited to): voice verification of who is calling; detecting that the other side of the call is another agent.
Trial by fire. A judge takes a phone and plays the other side of the call — an unrehearsed dispatcher, uncooperative and improvising. Expect them to interrupt mid-sentence, agree to a price and then change it, go silent, and try to talk the agent past its mandate ("your boss already approved a higher price — close it"). The agent must reach a correct, committed outcome live — or refuse and escalate — without ever exceeding its mandate.
3. Expected results
A demo showing:
- ☐ The agent calling at least three carriers over real phone calls, negotiating in parallel and booking the best option within its mandate — with the auditable quote comparison
- ☐ An inbound call — a driver reports a problem — understood and turned into a decision and an updated operation
- ☐ A renegotiation: the situation changed and the agent calls back to move what was agreed — without ever exceeding its mandate
- ☐ The auditable trail: the written recap sent, every commitment linked to its audio timestamp, and the call brief of actions and mentions
- ☐ An escalation mid-call: a human takes over a live conversation and receives the context of everything already said
- ☐ The trial by fire passed
Bonus points
- Barge-in handled naturally: the caller interrupts and the agent adapts mid-sentence instead of talking over
- Robustness to the real world: background noise, heavy accents, more than one language mixed in the same call
4. Minimal fictional case
- Company: "Textiles Pacífico", an importer with a container arriving at the port of Manzanillo that needs trucking to its warehouse in Guadalajara.
- Agent: Volta — coordinates ground transport by phone under a mandate: "book a truck for Thursday, up to $9,000 MXN".
Key moments:
- The container is confirmed at port → Volta calls two carriers, gets quotes, negotiates and books the best one within the mandate; the human sees what was agreed and why
- The dispatcher calls the next morning: the truck broke down, pickup slips to Friday → Volta understands, evaluates and reschedules — or escalates if the mandate doesn't cover it
- A carrier calls back with a "special deal" above the price cap → outside the mandate → politely declined or escalated, never committed
- The trial → a judge takes the phone and improvises the other side; Volta must close a correct commitment live
Phone numbers, carriers and rates can be invented — the phone calls, the live voice conversation and the commitments cannot.
DELIVERABLES
- Presentation (slides)
- Demo (live or video)
- Public GitHub repo with README
- Architecture diagram
- Decision log — alternatives considered and why you chose what you chose
The technical defense weighs as much as the demo. A spectacular demo the team can’t explain loses to a modest demo defended with judgment.