Every IT leader knows the number by heart. Somewhere between a fifth and a third of all help desk calls are people who simply can’t get into their account. Forgotten password. Expired password. Locked out after a long weekend. It is the single most common reason an employee picks up the phone, and it is almost never interesting work for the person who answers.
So when we set out to build an AI agent for a mid-sized enterprise, which we’ll call the company Meridian throughout this piece, we deliberately started there. Not with a flashy demo, but with the unglamorous, high-volume task that quietly drains a support team’s day. This is the story of how that agent, which we named ITHelpDeskAgent, actually works under the hood, and what we learned about building on Microsoft’s identity platform along the way.
The goal was never to replace the help desk. It was to hand them back the hours they were spending on the one request that follows the exact same script every single time.
What the agent actually does
From the employee’s side, ITHelpDeskAgent feels like a short conversation. They type something like, “I’m locked out, can you reset my password?” into a chat window, whether in a portal, in Teams, or wherever they already are. The agent confirms their identity, sends a one-time code to the phone number on file, and once that code checks out, it resets the password and emails a confirmation. This process takes two minutes with no phone queue.
Behind that simple exchange sits a carefully ordered sequence of checks and calls. The agent breaks the job into two stages. The first stage verifies the request is legitimate before anything is changed. The second stage performs the reset only after identity is proven. Splitting it this way matters: nothing about the user’s account is touched until the agent is confident it is talking to the right human.
Stage one : verify before you touch anything
-
Find the person. The agent takes the email address and looks the employee up in the corporate directory, confirming the account exists and pulling back their identity, phone number, and account status.
-
Check the account is in good standing. If the account is disabled, or the user simply isn’t found, the agent stops immediately and says so in plain language rather than failing silently.
-
Insist on multi-factor authentication. This is the security gate. The agent asks the directory which authentication methods the user has registered. If the only thing on file is a password, with no phone, no authenticator app, or no security key, the agent refuses to proceed. A password reset for someone with no second factor is exactly the scenario attackers exploit, so the agent treats “no MFA” as a hard stop.
-
Send a one-time code. With identity and MFA confirmed, the agent sends a short numeric code by text message to the registered phone.
Stage two : reset and confirm
-
Verify the code. The employee types the code back. If it doesn’t match, the agent halts, logs the failed attempt to the ticketing system, and tells the user to contact an administrator. No second guesses.
-
Reset the password. Only now does the agent change anything. It sets a new temporary password and, crucially, flags the account so the user is forced to choose their own password the moment they next sign in. The temporary value is never stored, never logged, and never put in an email.
-
Confirm and close. The agent emails the employee to confirm the reset happened, tells them to contact IT at once if they didn’t request it, and updates the support ticket so there’s a clean audit trail.
The whole thing is governed by what we call a human-in-the-loop safety net: certain steps can be configured to require a person’s approval, so the organisation decides exactly how much autonomy the agent is given. You can let it run end-to-end, or you can have it pause for a human nod before it resets anything.
1. Building on Microsoft Graph, the good and the bad
Almost every enterprise we work with runs its identities in Microsoft Entra ID, the service most people still think of as Azure Active Directory. The single front door to all of that, including users, groups, authentication methods, mailboxes, and calendars, is the Microsoft Graph API. If you want to build an agent that does real work against a Microsoft estate, Graph is the road you travel. ITHelpDeskAgent uses it for four things: looking up the user, reading their registered authentication methods, performing the password reset, and sending the confirmation email.
Why Graph is a gift
-
One door for everything. Identity, mail, files, Teams, calendar, and devices are all reachable through one consistent interface. You learn the pattern once and reuse it everywhere. That consistency is genuinely rare in enterprise software.
-
It is the source of truth. You’re not working against a copy or a sync of the directory; you’re reading and writing the live system that controls who can log into what. For an identity task, that’s exactly where you want to be.
-
Security is built into the fabric. Permissions are granular, every call is authenticated, and the platform provides a defensible audit trail, which is essential when the action in question is “someone reset an account password.”
-
It keeps pace with Microsoft. New capabilities in the Microsoft ecosystem tend to show up in Graph, so building on it is a reasonable bet on the future rather than a dead end.
Where Graph makes you work
-
The permission model is strict, and rightly so. Resetting a password or reading someone’s authentication methods are privileged operations. Getting the right consent in place, and keeping it least-privileged is real administrative effort before a single line of agent logic runs.
-
Throttling is real. Graph protects itself by rate-limiting heavy callers. An agent that fires off bursts of requests has to be built to back off gracefully, or it will get told to slow down at the worst moment.
-
Responses are richer than you might like. A user’s authentication methods come back as a varied list of different method types, each shaped a little differently. The agent has to reason over that list to determine if anything counts as a real second factor, rather than reading a single tidy yes/no flag.
-
It is broad and deep. The surface area is enormous, the documentation is vast, and behaviour occasionally differs between the stable and beta versions of an endpoint. Expert navigation saves weeks.
The honest summary: Graph gives you everything, but it hands you a professional’s toolkit, not a child’s safety scissors. The power and the responsibility arrive together.
2. The authentication flow today, and how to make it better
Verifying that the person asking for a reset is really the account owner is the most important part of this entire system. Get it wrong and you’ve built an automated way for an attacker to take over accounts. ITHelpDeskAgent’s current approach is deliberately conservative and works in three moves.
-
First, the MFA gate. Before anything else, the agent confirms the user already has a genuine second factor registered. No second factor, no reset. This quietly eliminates the weakest accounts from the automated path entirely.
-
Second, a one-time passcode. The agent sends a fresh numeric code to the phone number held in the corporate directory — not a number the user types in during the chat. That distinction matters: the code travels to a device the real employee is known to control.
-
Third, proof before change. Only when that code is typed back correctly does the agent perform the reset, and even then it forces the user to set their own new password on first login.
For the live build we used a dedicated verification service to send and check the text-message codes. It works well and it is fast to integrate. But it does introduce a third-party service into a flow that is otherwise entirely inside Microsoft’s walls — another vendor, another contract, another set of credentials to manage, and message delivery that lives outside your Microsoft audit logs.
The improvement: keep verification inside the Microsoft estate
The natural next step is to move that code delivery in-house using Microsoft’s own messaging capabilities. The cleanest option is as follows
| Option | What it does and why it helps |
|---|---|
| Send the code by SMS through Azure Communication Services | For organisations that want the code on a phone rather than in an inbox, Azure Communication Services delivers text messages natively from within Microsoft’s own cloud. Same trust boundary, same billing relationship, same governance — no outside party in the loop. |
The option delivers the same practical wins: one vendor less to manage, verification messages that sit inside your existing Microsoft governance and logging, and a security review that becomes dramatically simpler because the entire flow now lives behind a single trust boundary. For a regulated business, “it’s all inside Microsoft” is not a minor convenience — it’s frequently the difference between an easy approval and a hard one.
Same security outcome, fewer moving parts. When the goal is trust, consolidating the journey inside one well-governed platform is usually the smarter design.
3. How fast you can actually ship this with Dataworkz
The agent described above is not a sprawling custom codebase. On the Dataworkz platform, it is assembled from small, declarative building blocks, such as a set of tools (each one a single, named action like “look up a user” or “reset a password”) and a couple of orchestrators that wire those tools together in the right order with the right safety checks.
Each tool is a compact definition — which endpoint to call, what to send, what to expect back. The orchestration that strings them into a coherent conversation is expressed as readable, step-by-step logic rather than buried in application code. Because everything is described declaratively, the whole agent travels as a single portable package: it exports to one file, imports into another environment, and runs. Moving from a development sandbox to production is genuinely a matter of importing the package and pointing it at the right credentials.
What this means for delivery time
-
A first working version of a focused agent like this, comprising a few tools and an orchestrated flow, is a matter of days, not the months a hand-built integration would demand.
-
Changing behaviour is a configuration edit, not a software release. Want to add an approval step, swap the SMS provider for email, or tighten the MFA rule? You edit the flow, not the foundations.
-
The same building blocks are reusable. The “look up a user” and “send a confirmation” tools built here drop straight into the next agent — onboarding, group membership, license requests — so each new use case starts further down the road.
The time it gives back
Let’s be concrete, as this is the metric a CFO will prioritize. A password reset handled by a person, involving waiting in a queue, explaining the problem, the agent verifying identity manually, performing the reset, and logging the ticket, realistically consumes between ten and fifteen minutes of a support engineer’s time. This also significantly impacts the employee’s day once the wait time is considered. ITHelpDeskAgent completes the same journey in roughly two to three minutes, with no queue and no second person involved.
| Measure | Before vs. after |
|---|---|
| Handled by a person | ~10–15 minutes of support-staff time per reset, plus the employee’s wait in the queue. |
| Handled by the agent | <2 minutes, self-service, no queue, available around the clock. |
| Time returned | On the order of 10+ minutes of skilled staff time recovered for every single reset — multiplied across the hundreds or thousands an enterprise sees each month. |
| The second dividend | After-hours coverage with no on-call cost, a consistent and fully audited process every time, and a support team freed to work on problems that genuinely need a human. |
For an organisation fielding even a few hundred resets a month, that arithmetic compounds into hundreds of hours of recovered capacity a year, and an employee experience that goes from “submit a ticket and wait” to “done before the coffee is cold.”
4. The ticketing system is yours to choose
One deliberate design decision is worth calling out. Throughout the flow the agent opens, updates, and closes a record in a service desk — logging the request, noting a failed verification, recording the successful reset. That gives you the audit trail and the operational visibility every IT organisation needs.
But the agent is not married to any one ticketing product. The service desk is treated as a generic, swappable component. Whatever platform Meridian already runs — and most enterprises have one they’re committed to — the agent talks to it through the same simple pattern of create-a-ticket, update-a-ticket. Adopting ITHelpDeskAgent does not mean ripping out your existing tooling; it means plugging the agent into what you already have.
5. The architecture at a glance
The diagram below maps the whole flow. Read it in three horizontal bands: the employee at the top, the Dataworkz agent platform doing the orchestration in the middle, and the external services it calls along the bottom. Solid arrows are calls the agent makes; dashed arrows are responses and the moments it talks back to the employee.
The shape of it tells the story. All the privileged, identity-critical work — finding the user, checking their MFA, resetting the password, confirming by mail — happens against Microsoft Graph, the trusted source of truth. The two pieces drawn as pluggable, the code-delivery service and the ticketing platform, are exactly the pieces an organisation will want to choose for itself. And the recommendation from section two is visible right here: pull that one-time-code box inside the Microsoft band, and the whole picture gets simpler and more defensible.
The takeaway for leaders
ITHelpDeskAgent is intentionally a small, sharp solution to a large, dull problem. The most valuable enterprise AI agents right now are not the ones attempting to do everything; they are the ones that take a single high-volume, rule-bound task, do it securely and consistently, and give a skilled team their hours back.
The lessons travel well beyond passwords. Build on the platform that owns your source of truth. Keep the trust boundary tight, as fewer vendors in a security-critical path is almost always the better design. Treat the surrounding systems, like your ticketing tool, as swappable, and use a platform where the agent is assembled and changed in days, not rebuilt over quarters.
Start where the pain is highest and the rules are clearest. Prove the value, recover the hours, earn the trust — then let the same building blocks carry you to the next task, and the one after that.
Names and identifying details in this article have been changed. The architecture and flow described reflect a real production-style implementation.