Expert Insights

The Architecture of a Workplace AI Agent: How AWNI Takes a WhatsApp Message to a Closed Ticket

A workplace AI agent is not a chatbot with a bigger model. AWNI is a loop of six parts: a channel layer (WhatsApp, chat, voice) that normalises messages in six languages, an intent and entity step grounded in the workplace data model, a planner that calls tools (create ticket, check a booking, pre-register a visitor), short- and long-term memory scoped to the person and site, guardrails that decide what needs a human, and an evaluation harness that scores every conversation. The approval points, not the model, are what make it safe to run in a plant.

2 December 202612 min readPriyank Jain

When we started building AWNI, the hard part was not getting a language model to sound helpful. It was getting it to do the right thing with a facilities ticket at 2 a.m. in Hindi from a contractor who has never seen our app, and to prove afterwards what it did and why. This article is the architecture that came out of that, written for engineers and for the enterprise leaders who are being asked to approve AI agents inside their buildings.

1. Channels: meet people where they already are

AWNI receives messages from WhatsApp, web and Teams chat, voice (phone and kiosk) and the humanoid reception unit in beta. A channel adapter normalises each into the same structure: who (resolved against the Person record, or an unknown visitor), where (site, inferred from the number, the kiosk or the question), what (text, transcribed audio, an image of a broken AHU), and language. Six languages are supported; the language is detected per message and the reply is generated in it. The channel is also where consent and notices live: a first-time WhatsApp user sees the DPDP notice before anything is stored.

2. Intent and entities, grounded in the data model

"The AC on 4th floor near the pantry is not working" has an intent (facility ticket), a category (HVAC), a location (site, floor 4, zone: pantry), and an urgency. The model extracts these, but the extraction is validated against the workplace data model: floor 4 must exist at that site, the pantry zone must be a real zone, HVAC must be a category with an assignee. If a slot cannot be resolved, the agent asks one question, never guesses. This grounding is why the shared data model matters so much for agents: without it, every extracted entity is a string.

3. Planning and tools

The agent plans a short sequence of tool calls. Tools are typed functions over the platform: create_ticket, get_ticket_status, book_desk, preregister_visitor, find_room, get_sla, notify_host, raise_security_alert. Each tool has a permission set (who may call it, for which site), an idempotency key (so a retried message does not create two tickets) and a side-effect class (read, reversible write, irreversible write). The planner can chain reads freely, chain reversible writes with a confirmation to the user, and cannot execute an irreversible write without the approval step below.

4. Memory, scoped and expiring

Short-term memory is the conversation. Long-term memory is deliberately small: the person's preferences (language, usual desk, team), their open requests, and nothing else. It is scoped to the person and site, retained per the platform's DPDP retention rules and deleted with the Person record. We do not let the agent remember free text about people; it remembers structured facts the person could see and correct.

5. Guardrails and the approval points

Action classExamplesWho decidesWhat is logged
ReadTicket status, room availability, policy answerAgentQuery, answer, source
Reversible writeCreate or update a ticket, book a desk, pre-register a guestAgent, after confirming with the userTool call, parameters, user confirmation
Irreversible or high-impactCancel another person's booking, approve a watchlist override, dispatch for a safety event, spend above thresholdNamed human, in the loopProposal, evidence, approver, decision, time
ProhibitedChange a policy, export personal data, override access controlNobody via the agentAttempt is logged and surfaced

The table is the product. It is reviewed with the customer's security team before go-live and it is what regulators ask for: the EU AI Act's workplace obligations (in force since August 2026) and India's DPDP Rules both expect explainable automated decisions with a human path. Our view on what should and should not run autonomously is in AI Agents in Facilities Management.

6. Evaluation: every conversation is scored

We keep a test set of real (anonymised) conversations per intent and per language, and every model or prompt change runs against it before deployment: resolution rate, correct tool call rate, hallucinated-entity rate, unnecessary-question rate. In production, a sample of conversations is reviewed weekly by a person and the scores trend on a dashboard the customer can see. A drop in Hindi resolution rate after a model update is caught the same week, not in the quarterly review.

The specialised agents

AWNI ships as a family of agents on this architecture with different tool sets: the Reception agent (visitors, hosts, badges), the Helpdesk agent (tickets, SLAs, vendors), Sentinel (camera and sensor events from VISTA and PULSE, with a human on every dispatch), the Concierge (employee questions and bookings) and the Analytics agent (explains dashboards in plain language). Together they cover 100-plus workplace tasks; at an eight-plant manufacturer 15,000 workers use the Helpdesk agent as their only ticketing interface.

Where UrSpayce fits

AWNI runs on the same platform and data model as the NEXUS apps, so a ticket the agent creates is the ticket the technician works, and a visitor the agent pre-registers is the one the kiosk checks in. It is multilingual, channel-native and audited at every action. If you are evaluating agents for reception, helpdesk or security, book a demo and bring your approval matrix; we will map it to the table above.

Frequently asked questions

What is the architecture of a workplace AI agent?

A channel layer that normalises WhatsApp, chat and voice messages, intent and entity extraction grounded in the workplace data model, a planner that calls typed tools, scoped memory, guardrails with human approval points and an evaluation harness that scores conversations.

How does an AI agent avoid creating duplicate tickets?

Every tool call carries an idempotency key derived from the conversation and request, so a retried or repeated message updates the same ticket rather than creating a second one.

Which actions should an AI agent never take alone?

Irreversible or high-impact actions: cancelling another person's booking, overriding a watchlist, dispatching for a safety event or approving spend above a threshold. These go to a named human with the evidence and are logged with the decision.

How many languages does AWNI support?

Six, detected per message; the reply is generated in the same language, and resolution rates are tracked per language so a regression in one is caught within a week.

What does an AI agent remember about employees?

Only structured facts the person can see and correct: language, usual desk, team and open requests, scoped to the person and site and deleted with the person's record under DPDP retention rules.

How is an AI agent evaluated before an update ships?

Against a test set of real anonymised conversations per intent and language, scoring resolution rate, correct tool calls, hallucinated entities and unnecessary questions, with weekly human review of production samples.

See UrSpayce in action

One AI-native platform for visitors, spaces, IoT, computer vision, AI agents and procurement — across India, the US and the GCC.

Book a free demo