Case study HAQFinalist
Ignyte x ElevenLabs Voice Agent Challenge, Track 2: Government Services
HAQ
HAQ checks a Dubai rent increase against Decree 43 of 2013 and explains the result with the clause cited, in English or Arabic. It gives information, not legal advice; filing, disputes and distress are handed to a person.
ElevenLabs AgentsVoice AIAgent WorkflowsNext.jsTypeScriptUpstash RedisVercelAgent Evals
01
Architecture
- An ElevenLabs agent workflow with three sub agents.
- Router handles disclosure, consent, language and intent.
- Rule does intake with read back, calls the rent index lookup and answers with the clause.
- Paperwork can only prepare a draft. No submit tool exists anywhere.
02
Correctness
- The Decree 43 cap is computed in server code with exact integer maths, never by the LLM.
- The band rule reproduces all 14 Dubai Land Department (DLD) Rental Index calculator results it was checked against.
- HAQ also checks the 90 day notice rule (Law 26 of 2007 as amended by Law 33 of 2008) and flags late notice.
03
Index data
- Real DLD Rental Index figures for a small set of buildings, copied by hand with evidence kept.
- A building that is not in the data returns "cannot verify", never a nearest match.
- The caller is pointed to the official DLD calculator instead.
04
Platform and security
- Next.js (App Router, TypeScript) on Vercel, with Upstash Redis.
- The agent is private and the server issues conversation tokens.
- Server tools sit behind a shared secret header.
- An HMAC verified post call webhook writes a hash chained audit ledger, which has a verify endpoint.
05
Handover
- In the web demo, human handover goes to a staff queue, because ElevenLabs phone transfer only works on phone calls.
- A phone pilot would use Twilio.
06
Evaluation
- 35 tests covering tool call, next reply and guardrail behaviour, each run 5 times.
- 167 of 175 runs passed, with the known gaps documented.
07
Scope
- A challenge finalist with a working build, not a production service with users.
- It gives information, not legal advice.
- It covers the buildings in its index, not every building in Dubai.
Want the same depth on something you are building?
Start a conversation