AI agents and assistants

Agents that answer from your recordsand complete the work.

We engineer AI agents for chat, phone and portals. Each one reads only what the person is allowed to see, calls your systems through tools we define and test, shows its sources, and hands over to a person when it is not sure. Every step is on record.

agent trace

>When is my next fee instalment due, and can you send the voucher?

  1. identityStudent · signed in · from the verified session
  2. intentpersonal_data + action · routed before the model
  3. toolget_fee_vouchers(student) · 212 ms
  4. toolsend_voucher(channel: whatsapp) · 340 ms
  5. gateEvidence from the record · answer allowed
  6. audit2 tool calls logged to the interaction

Your second instalment of the semester is due on 15 December. I have sent the voucher to your WhatsApp.

Illustrative trace
Architecture

What sits inside an agent we build.

Five layers, each one replaceable and each one observable. The model is one component, not the whole system.

  1. 01Channels
    • Website chat
    • WhatsApp
    • Instagram
    • Messenger
    • Email
    • Phone (SIP)
    • Portal

    One conversation model across every channel, with the person's history kept.

  2. 02Runtime
    • Intent router
    • Tool loop
    • Response policy
    • Language gateway
    • Handoff

    Decides what kind of request it is before any model call, then runs tools until the work is done.

  3. 03Knowledge
    • Hybrid search
    • Reranker
    • Confidence gates
    • Citations
    • Semantic cache

    Our own retrieval engine: documents, sites, sheets and images, searched by meaning and by exact terms.

  4. 04Systems
    • ERP
    • Student and patient systems
    • LMS
    • CRM
    • Accounting
    • Custom REST

    Reached only through defined tools with sealed credentials, never by the model directly.

  5. 05Record
    • Interaction log
    • Tool-call audit
    • Per-stage timings
    • Transcripts

    Every answer, tool call and handoff kept, so any result can be traced back.

The tool loop

How an agent acts in your systems, safely.

Answering is half of the job. The other half is doing the task: looking up a record, booking, sending, updating. That runs through a function-calling loop with hard limits around it.

  • Execute until done

    The model calls tools, reads the results and calls again until the request is complete, within a fixed budget of tool calls per turn, so a loop can never run away.

  • Routed before the model

    Each request is classified deterministically first. Questions that only need knowledge skip the tool loop entirely, which is faster and cheaper.

  • Identity from the session

    Who is asking comes from the verified sign-in token and is injected by the server. The model can never choose whose record it reads.

  • Tools by role

    A student, a member of staff and an administrator each get a different toolset. A tool outside the role is not offered to the model at all.

  • Drafted, tested, made live

    Every tool is drafted against your system, tested with real calls, then published as an immutable copy. Changing it means publishing a new one.

  • Sealed credentials

    Sign-ins to your systems are encrypted with AES-256-GCM under a key held only by your deployment.

Retrieval engine

From your documents to an answer that shows its source.

Retrieval-augmented generation done as engineering, not a demo. Ten stages, each with its own settings, metrics and failure checks.

Indexing · runs in the background
  1. 01

    Connect

    Files, websites by crawl or sitemap, WordPress, FAQs and media. Each source is queued, not processed in the request.

  2. 02

    Clean

    PDF parsing, boilerplate removal and per-document summaries, with a deterministic cleaner as the fallback.

  3. 03

    Chunk

    Structure-aware and semantic chunking, with a quality gate that drops navigation and boilerplate.

  4. 04

    Embed

    Two representations per chunk: dense 768-dimension embeddings for meaning, and BM25 sparse vectors for exact names, codes and numbers.

  5. 05

    Store

    Vectors and filters in Qdrant, canonical text in PostgreSQL, original files in S3-compatible storage.

Answering · runs on every question
  1. 06

    Understand

    A glossary expands your acronyms, follow-ups are rewritten into full questions, and non-English questions pass a translation gateway.

  2. 07

    Search

    Dense and sparse search run together, and their rankings are merged with reciprocal rank fusion.

  3. 08

    Rerank

    A cross-encoder scores each candidate against the question. Scores are calibrated, so they mean the same thing on every deployment.

  4. 09

    Gate

    Calibrated confidence decides: answer, ask a clarifying question, or hand to a person without calling the model at all.

  5. 10

    Answer

    Low-temperature generation from the selected passages only, with neighbouring context added and every claim linked to its source.

When not to answer

Confidence decides the reply, not the model's tone.

Retrieval scores are calibrated into a probability that the evidence answers the question. Two thresholds, set per deployment, split every request into one of three outcomes.

  1. Below the low threshold

    Hand to a person

    The evidence is too weak. No answer is generated; the conversation goes to a person with what was asked.

  2. Between the thresholds

    Ask to clarify

    The evidence is close. The agent asks one question to narrow it down, instead of guessing.

  3. Above the high threshold

    Answer

    The evidence answers it. The agent replies with its sources and logs the passages it used.

Thresholds are tuned per deployment on real questions, then kept under change control.

Voice agents

Real-time voice on the phone system you already run.

Our SIP bridge joins your PBX as an extension or a trunk. Audio streams to a native-audio model, and the agent answers, places calls and completes the request while the caller is still on the line.

150 msResponse latency, as low as
  1. PBXExtension or trunk on your exchange
  2. BridgeSIP and RTP, paced audio buffering
  3. ModelNative-audio, real-time session
  4. EvidenceFacts checked before they are spoken
  5. RecordTranscript and post-call review
  • Inbound and outbound

    Incoming calls answered at any hour; outgoing calls placed for confirmations, reminders and follow-ups.

  • Interruptible

    Callers can talk over the agent mid-sentence, as they would a person. Barge-in sensitivity is a setting.

  • Checked before it is spoken

    A pre-playback evidence gate holds back any fact or promised action the retrieved evidence does not support.

  • Measured on every call

    Time to first audio, retrieval time and interruptions are recorded per call, with a review written after it ends.

Running it

Evaluated, observed and tuned without a redeploy.

  • Evaluation sets

    A set of real questions with expected sources is replayed against every change to retrieval or prompts, before it reaches your users.

  • Per-stage timings

    Every answer records how long each stage took, from query understanding to the first word, so slowness has an address.

  • Settings, not code

    Thresholds, glossary, prompts and retrieval limits live in settings that reach the running workers within minutes.

  • Languages

    Chat in Urdu, Roman Urdu and English, following the person when they switch. Calls in Urdu and English. Arabic is on our roadmap.

  • Model choice

    We build on OpenAI and Google Gemini models, with local embedding and ranking models where they fit, and switch only after a benchmark on your questions.

  • Everything on record

    Answers, sources, tool calls, handoffs and settings changes are logged with who and when.

Questions

Technical questions, straight answers.

Something we have not answered? Ask the engineers who would build it.

sadiq@easm.co
01How do you stop the agent from making things up?

Three ways. It answers only from passages retrieved for that question, at a low temperature. A calibrated confidence gate hands weak cases to a person before the model is called. And on the phone, an evidence gate holds back any fact the evidence does not support before it is spoken.

02Can the agent change data in our ERP or other systems?

Yes, through tools we define with you. Each tool is tested against your system and published as a fixed version, the person's identity comes from their sign-in rather than from the model, and every call is logged.

03What happens when it does not know?

It says so and hands the conversation to a person, with the question and what it found, instead of guessing. Where the evidence is close, it asks one clarifying question first.

04Which models do you use?

OpenAI and Google Gemini models for generation and voice, with local embedding and ranking models where they fit. We choose per project and benchmark on your own questions before changing a model.

05Do people see only what they are allowed to?

Yes. Access rules are applied at search time, so a passage a person may not see is never retrieved for them, and tools are offered by role.

06Can it work in Urdu?

Chat works in Urdu, Roman Urdu and English, and follows the person when they switch. Calls work in Urdu and English. Arabic is on our roadmap.

Talk to EASM

Tell us what your agent should do.

  • 01A reply within one working day
  • 02A 45-minute session with your team, in person or online
  • 03A written scope before any work starts
Prefer to write? sadiq@easm.co

We reply within one working day. Meetings in person in Karachi and Lahore, or online.