Every driver conversation from 4 August
Choose a driver. Tap send to post their real message, tap a slot to book it, or press Auto-play. The right panel shows what SetuHaul checked before each reply.
—
Trip
Conversation state
Behind each reply audit trail
Drivers can write in any of seven languages
English, Hinglish and Hindi were there from day one; Gujarati, Marathi, Punjabi and Marwari are new. Same engine, same checks, same booking in every one. These conversations were run through the real workflow on the 4 August data (scripts/language_demo.py); the right column is the same conversation sent in English, so you can see the meaning and that the outcome is identical. Reply texts in the new languages are drafts for review by a native speaker.
—
Same conversation in English
Where the change was made
| File | What changed |
|---|---|
| setuhaul/languages.py | New: the language list, scripts (Gujarati, Gurmukhi, Devanagari), native digits, marker words that tell Marathi and Marwari from Hindi, and the reading vocabulary per language (o'clock words, durations, late words, "after", ordinals, yes/no, safety words). |
| setuhaul/nlu.py | Detects the four new languages alongside English, Hinglish and Hindi; reads times, durations, "after 12", choices, slot references and safety words in each. No model call. |
| setuhaul/replies_regional.py | New: 30 reply texts in each language (drafts for native review). Anything not yet translated falls back to Hindi. |
| setuhaul/replies.py | Merges the new texts; the output guard now reads ડૉક / ਡੌਕ / डॉक and the "booked" words of every language, so no reply can claim a booking or a dock the database did not produce. |
| setuhaul/workflow.py | The small phrases built in code (ETA basis, approval reasons, "or" between choices) come in each language. |
| templates/twilio_templates.yaml · templates.py | Proactive WhatsApp templates in the four new languages; each language needs its own WhatsApp approval. |
| setuhaul/llm.py | The fallback reader's prompt lists the seven languages. |
| tests/test_languages.py | 16 new tests: detection, reading, no false safety alarm (e.g. આગળ "ahead"), placeholders, guard, and every demo conversation end to end. All 113 tests pass; the 4 August scenario output is unchanged. |
| Database (proposed) | driver_preferences.language stores each driver's language once known, so proactive messages go out in it. |
Write as any driver and see what SetuHaul answers
This box runs the real SetuHaul engine, the same Python code and the same 4 August database as the prototype, inside your browser (Pyodide). Nothing you type leaves your computer. Pick a driver and a time, write in any of the seven languages, and tap a slot to book it.
SetuHaul Dispatch · Jaipur DCengine not started
The engine is about 12 MB and loads only when you start it (a few seconds, once per visit).
Behind the last reply
- State
- —
- Language read
- —
- Trip
- —
What the engine checked
- Send a message to see each check.
Rules only, as in the morning replay: no AI model is called, so a message the rules cannot read gets a clarifying question. The yard starts as it stood at 08:20; the morning's later events (the D3 breakdown, other trucks arriving) are not replayed here. Time only moves forward.