What xAI’s procurement experiment can teach local governments about governing AI agents
Municipalities spend a lot of money on software.
Some licences are essential. Some overlap with other products. Some were purchased for staff who have since changed roles. Others continue renewing because nobody had time to investigate whether all 150 seats were still being used.
Finding those savings sounds simple.
Actually finding them may require someone to review invoices, contracts, renewal dates, licence assignments, system-usage reports and years of vendor correspondence.
That is precisely the kind of work an AI agent may be able to assist with.
But should the same agent also be permitted to email the vendor, accept new terms or approve a purchase?
Absolutely not.
That distinction is what makes xAI’s recent procurement case study so interesting for local government.
What did xAI’s procurement agent do?
xAI created an AI procurement agent called “Haggle Bot.”
According to xAI’s published case study, the agent was given access to vendor spending, contracts, software usage and several internal systems, including Slack, Notion, Drive, Gmail, Hex and Ramp.
The agent used that information to:
- Map active vendors
- Identify unused software licences
- Review upcoming renewals
- Compare pricing and alternatives
- Contact internal product owners
- Prepare negotiation strategies
- Draft vendor communications
- Maintain vendor information and renewal details
xAI reports that the agent identified more than US$100,000 in direct savings.
That included US$14,220 from 43 paid software seats with no activity during the previous 90 days and US$85,662 annually from unused product SKUs.
Those results were reported by xAI from its own internal implementation. They have not been independently validated, so the savings should not be treated as a guaranteed outcome for another organization.
The more transferable lesson is not the dollar amount.
It is how xAI defined the agent’s authority.
Three permission lines every municipal AI agent needs
xAI organized the procurement agent’s authority into three simple categories:
1. Always allowed
The agent could conduct internal research and coordination without requesting approval for every step.
Depending on the organization, this could include:
- Reading approved spending reports
- Reviewing contracts stored in an authorized location
- Checking assigned licences and usage
- Identifying upcoming renewal dates
- Contacting internal system owners
- Comparing publicly available pricing
- Updating an internal vendor record
- Drafting recommendations for human review
These are research and preparation activities.
The agent is doing the homework. It is not making the decision.
2. Human approval required
Every vendor-facing communication required approval from the named human operator.
That boundary is essential.
A draft email is not the same thing as a sent email.
A proposed negotiation strategy is not the same thing as an offer.
An AI agent might write a convincing vendor message while including information the municipality should never disclose, such as internal budget limits, operational urgency, usage details or a decision that has not yet been formally approved.
The human reviewer must confirm:
- The information is accurate
- The tone is appropriate
- Confidential information is protected
- The communication complies with procurement requirements
- The sender has the authority to communicate on behalf of the municipality
- The message does not unintentionally create an obligation
The AI can prepare the communication.
A human must decide whether it leaves the building.
3. Never allowed
xAI prohibited the agent from:
- Signing contracts
- Making purchases
- Starting subscriptions
- Approving charges
- Accepting terms
- Making any binding commitment
This is where governance needs to become technical.
Do not simply put “You may not sign contracts” in the agent’s instructions and hope it behaves itself.
Remove its ability to sign.
Do not provide purchasing credentials if it does not need them.
Do not connect it to a payment method.
Do not give it approval authority in the financial system.
Do not allow it to click “accept” on vendor terms.
A policy is important, but a technical restriction is stronger.
If the agent cannot perform a prohibited action, one incorrect response cannot accidentally turn into a legal or financial commitment.
What could a municipal procurement agent actually do?
A carefully designed municipal procurement agent could support several valuable activities.
For example, it could:
- Compare software licences with active-user information
- Identify products with similar functions
- Flag unused or underused subscriptions
- Track renewal and notice dates
- Compare current invoices with contracted pricing
- Identify unusual increases in recurring costs
- Prepare a summary of vendor performance information
- Draft questions for a renewal meeting
- Assemble supporting records for human review
- Generate a monthly report of potential savings opportunities
Imagine discovering that a municipality is paying for 100 licences while only 62 accounts have been active during the previous six months.
The agent could identify the difference, locate the contract, calculate the potential savings and ask the responsible manager whether the remaining licences are still required.
What it should not do is cancel the licences by itself.
Perhaps those accounts are reserved for seasonal employees. Perhaps they support emergency operations. Perhaps the collective agreement, contract terms or operational plan requires them.
The data may identify an opportunity.
The human understands the context.
The agent needs access, but how much?
This use case creates an uncomfortable governance tension.
For the agent to find meaningful savings, it may need access to:
- Vendor contracts
- Invoices and spending records
- Licence assignments
- System-usage information
- Renewal dates
- Internal emails
- Vendor negotiations
- Budget information
- Product-owner details
That does not mean it should receive unlimited access to every email, contract and financial record in the municipality.
Access should be limited to the minimum information required for the approved task.
Ask:
- Which systems does the agent need?
- Which folders, sites or records may it access?
- Can sensitive fields be excluded?
- Does it need to read full email accounts, or only a controlled mailbox?
- Can it view financial information without being able to initiate a transaction?
- Are contract records confidential?
- Will information be used to train the provider’s models?
- Where will prompts, records and outputs be processed and stored?
- Who can review the agent’s activity?
Giving an AI agent broad access because it might find something interesting is not a governance model.
It is a treasure hunt with municipal records.
This is also a records-management issue
An AI procurement agent will create records.
Its research, recommendations, vendor comparisons, drafts, approval requests and final outputs may all become part of the municipality’s business record.
Local governments should decide:
- Which agent outputs must be retained
- Where they will be filed
- How long they will be kept
- Whether prompts and source references form part of the record
- How approvals will be documented
- How decisions can be reconstructed later
- Whether records are accessible for audit, legal review or freedom-of-information purposes
The municipality should be able to show what information the agent used, what it recommended, who reviewed the recommendation and who made the final decision.
If the agent identifies a vendor as overpriced or recommends a particular negotiating position, staff should be able to verify the supporting evidence.
If you cannot explain how the recommendation was produced, you are not ready to rely on it.
A practical starting checklist
Before building a municipal procurement agent, define the following:
Purpose
- What specific procurement problem will the agent address?
- Is it checking unused licences, tracking renewals or preparing negotiations?
- What measurable outcome will demonstrate value?
Data
- Which systems and records will it access?
- Is the information complete, current and accurate?
- Does the access comply with privacy, security and contractual requirements?
Permission lines
- Which activities are always allowed?
- Which activities require human approval?
- Which activities are never allowed?
- Are prohibited actions technically blocked?
Human responsibility
- Who owns the agent?
- Who reviews its findings?
- Who approves external communications?
- Who remains accountable for the final decision?
Records and auditability
- What activity will be logged?
- Where will recommendations and approvals be stored?
- Can the organization reconstruct the process later?
Testing
- Has the agent been tested with incomplete, conflicting and outdated information?
- Can it distinguish an evidence-backed saving from a possible lead?
- Does it stop and ask for help when authority or information is unclear?
Start small and keep the human holding the pen
A municipal procurement agent does not need to begin by connecting to every contract, invoice and email account.
Start with one controlled task.
For example:
Review one approved software-spending report, compare it with licence usage and identify possible unused seats for human review.
No vendor emails.
No cancellations.
No purchases.
No commitments.
That small pilot can show whether the records are usable, whether the findings are accurate and whether the workflow actually helps procurement, finance and IT staff.
Then the municipality can decide whether the agent should receive additional access or responsibility.
The exciting part of xAI’s experiment is not that an agent found savings.
It is that the organization drew a clear line between research and authority.
That is the model local governments should carry forward:
Always allowed. Human approval required. Never allowed.
Let the agent find the savings.
Keep the contract, the approval and the responsibility with the human.