The licences have been bought, the pilot has been run and someone has given an impressive demo. A year later, the working day in the finance department and in customer service looks much as it did before. It is then reasonable for whoever is paying to ask: if AI is so good, why doesn't it show?
The answer is rarely that the model is not good enough. What fails sits around the model, and it can be placed on a timeline. Before the build, nobody has mapped what the process actually looks like. When the second and third workflows come along, each is built from scratch, on its own. After delivery, nobody owns operations.
A Swedish organisation has a fourth thing to deal with. Every new agent is also a data protection matter and, for organisations covered by the Swedish Cybersecurity Act (2025:1506), a matter for security work.
1. The model is the easiest part to replace
When the results do not come, it is the model that gets replaced. It can be replaced without anyone having to change how the work is done, and so it takes the blame. But a better model in a process nobody has mapped produces the same errors, a little faster.
Programming has something most business processes lack: an answer key. A code change is checked against tests someone wrote in advance, and the answer is yes or no.
Take the account coding of a supplier invoice. The right account depends on what was bought, for which project and by whom, and the rules often exist only in the head of the person who has done the job for years. A model brought in there has nothing to check its answer against, and nobody can say afterwards whether it got it right.
2. Before the build: the process as it actually is
The written procedure says five steps. The person doing the job knows it is twelve, and that three of them depend on which supplier is involved. If the agent is built on the written procedure, it handles the cases that were simple anyway and sends the rest to a human. That human now has their old job plus a new inbox.
The gap between description and reality can only be measured where the work is done. Sit next to the person doing it, pull timestamps and volumes from the systems, and count what share of cases leave the normal path and where they end up. We describe how that kind of mapping works in Don't put AI on a broken process.
The mapping also shows where a model is needed. Each step is sorted into code, model or human. Most of a finance workflow ends up in code: duplicate checks, checking the bank account against the supplier register, VAT logic, account coding by rule and the approval policy. The account coding from section 1 becomes one of those rules once the mapping has got it down on paper. Code is cheaper, gives the same answer every time and can be tested. A model is needed where the input is free text that no rule can read, and a human where there is ambiguity, accountability or consequences that cannot be undone.
Anthropic, which develops language models itself, gives similar advice in its piece on building agents. It says the right answer is sometimes not to build an agentic system at all. For many applications, a single well-prepared call to the model is usually enough. For well-defined tasks, a workflow with fixed paths in code, where the model is called at set steps, gives predictability and the same behaviour every time, while an agent that directs its own steps suits tasks that require flexibility. We describe how to give each step the smallest model that can handle it, or none at all, in Most workflows need no AI at all.
3. When more workflows arrive: a shared foundation
Finance builds an agent in one tool, purchasing builds one in another, and someone in marketing connects a third directly to a model provider with the company card. Each has its own API key, its own log or none at all, its own permissions and its own idea of what is allowed.
This only becomes visible on the day the model provider changes version and every agent has to be fixed separately, or the day someone asks which agents can read the supplier register and nobody can answer.
Each agent has been built as if it were the only one. You can avoid that by deciding, before the first workflow, what all workflows will share.
| Shared foundation | What it decides |
|---|---|
| Logging | Every action an agent takes is logged the same way and can be traced, whoever built it |
| Permissions | What an agent can do at all is decided outside the model: least privilege and no tools it does not need |
| Approval | Where a human comes in, how they approve, and that nothing goes into production without approval per release |
| Model choice | Which data class may go to which model, where the model runs and how a switch is made |
With the foundation in place, the next workflow can largely be configuration on top of something that already exists, and the process owner should be able to change a rule or pause an agent without anyone writing code.
For model choice, before we build, we classify the data by what it contains: business data, personal data, sensitive information, accounting records. The class decides which model may see it, and "no model" is always an option.
Where the model runs is part of the same choice. With a regional deployment in Sweden Central, prompts and responses are stored and processed in Sweden, according to Microsoft's documentation. But which models can run entirely in Sweden varies. Microsoft describes the order itself: new models arrive first in global deployment, then in the EU data zone and last in regional deployment, with no guaranteed date and no guarantee that they get there at all. So you often cannot have the newest model and data in Sweden at the same time, and the choice should be made per task. In a Microsoft environment we lock the chosen deployment with a policy, so that nobody switches to global deployment by mistake.
Prompts, rules and model versions are handled as code changes: they are kept under version control, run against a test set of your own cases and released with your approval. A model change then becomes a change in one place.
Where the foundation sits depends on what you already have. It can be built in your own Microsoft or Google environment, in other systems you already use, or run by us. Wherever it sits, you should require an installation that is yours alone, logs you can read without the supplier, and the code kept on your side.
4. After delivery: someone has to own operations
A project has an end date. The agent is delivered, the team moves on and nobody owns operations. But what the agent runs on changes. By default, Microsoft sets the retirement date for a generally available model at 18 months after launch. Models from Anthropic and Mistral AI, among others, get twelve. After that date, every call to that version is rejected. The notice is at least 60 days, except when Microsoft retires a model urgently because of a security or compliance problem. Some deployment types are upgraded automatically to a replacement model, while others have to be moved by hand. Anthropic also gives at least 60 days' notice, and calls to a retired model fail.
So an agent without an owner stops working, or starts working with a different model from the one that was tested, on a date nobody on your side has chosen. That is why someone on your side needs to own operations before the first workflow goes into production, with time set aside for it.
The owner checks that the agents get it right, against the same test set as in the build, and handles model changes in good time when the provider retires a version. The owner also decommissions agents that are no longer useful, so that they do not keep running until someone happens to discover them.
5. What Swedish law adds
Every agent built in-house with its own API key can bring in three things that rarely show up in a productivity calculation, but that data protection and security work have to deal with.
A new processor
Many workflows involving customers, suppliers or employees contain personal data. If the agent sends that data to an external model provider or platform that processes it on your behalf, that provider is a processor. According to the Swedish Authority for Privacy Protection (IMY), the relationship must be governed by a written agreement, and the processor needs your written authorisation before it engages a sub-processor.
Controllers must also keep a record of their processing activities, including the categories of recipients and transfers to third countries. Organisations with fewer than 250 employees are exempt as a general rule, but not if the processing is anything other than occasional, is likely to result in a risk to the rights of data subjects or includes sensitive personal data. IMY also recommends that everyone keep a record. An agent that reads invoices every day is hard to call occasional, and it belongs in the record with its provider and any transfers.
A new transfer to a third country
According to IMY, a transfer takes place when personal data is made available to a recipient outside the EU/EEA, and the authority explicitly includes giving someone there read access. An agent that sends an invoice containing names and contact details to a model running outside the EU/EEA as a rule involves a transfer, wherever you store the invoice. The transfer must have a basis in Chapter V of the GDPR, and that must be settled before the first invoice is sent.
A new supplier in the supply chain
The Cybersecurity Act (2025:1506) lists what the security measures must cover as a minimum, including supply chain security, security in the acquisition, development and maintenance of systems, and access control (Chapter 2, Section 3). Since 1 October 2026, MCFFS 2026:11 (the regulations on security measures) requires covered organisations to ensure that suppliers meet the regulations' security requirements in the parts the supplier is responsible for, and to assess before the contract is signed whether the supplier can meet the stated cybersecurity requirements for the entire term of the contract, unless they operate solely in the five sectors the regulations exempt (Chapter 1, Section 1 and Chapter 4, Section 1). A model provider that an agent calls can be such a supplier, or a subcontractor to whoever built the agent. We go through what that means for the contract in What the Swedish Cybersecurity Act requires of your suppliers.
What is a productivity problem for the finance director is an inventory problem for the head of security: how many agents are there, what may they read and where do they send it?
Qwiqflow is not itself covered by the Cybersecurity Act. The requirements reach us through your contracts. This is a summary, not legal advice.
6. Where to start
The first three steps require no technology.
- Take inventory. List every agent, assistant and AI service that anyone in your organisation has connected to its data. For each one: who owns it, which provider it calls, where the model runs, what data it reads and where that is logged. The list is the basis for both the record and the contracts in section 5.
- Choose one workflow and map how it works in reality, exceptions included.
- Sort the steps into code, model and human.
- Decide on the shared foundation before the first workflow is built: logging, permissions, approval and model choice.
- Appoint the owner and set aside time for operations before anything goes into production. Model changes will come, and they should be planned.
- Add the agents to the record and the contracts: data processing agreements, sub-processors, a basis for any transfers and, for organisations covered by the Cybersecurity Act, the supplier requirements.
Three questions to ask, of yourselves or of whoever wants to build for you:
- How many agents do we have today, and who can show the list?
- What happens to our workflow on the day the model behind it is retired?
- Which data class may go to which model, and where is that written down?
Sources
- Swedish Cybersecurity Act (Cybersäkerhetslag (2025:1506)) Chapter 2, Section 3, second paragraph, points 4, 5 and 9
- MCFFS 2026:11, regulations and general advice on security measures and management training for essential and important entities (föreskrifter och allmänna råd om säkerhetsåtgärder och ledningens utbildning för väsentliga och viktiga verksamhetsutövare) Chapter 4, Section 1, second and third paragraphs (acquisition of systems and outsourcing of information processing); entry into force 1 October 2026
- Swedish Authority for Privacy Protection (IMY), Data processing agreements (Integritetsskyddsmyndigheten, Personuppgiftsbiträdesavtal) The sections Avtal mellan personuppgiftsansvarig och personuppgiftsbiträde (written agreement) and När kan ni använda ett underbiträde? (written authorisation before a sub-processor is engaged)
- Swedish Authority for Privacy Protection (IMY), Maintain a processing record The list of what the controller's record must contain, the exemption for fewer than 250 employees with the conditions under which it does not apply, and IMY's recommendation to keep a record anyway
- Swedish Authority for Privacy Protection (IMY), Transfer of data to a third country The introduction (definition of a transfer), the examples of what counts as a transfer, including giving someone outside the EU/EEA access, and the section When are transfers outside the EU/EEA permitted? (adequacy decision, appropriate safeguards or derogations, the grounds in Chapter V)
- Microsoft Learn, Foundry Models lifecycle and support policy The sections Lifecycle stages (with the note on twelve months for providers including Anthropic and Mistral AI), Model launch and availability, Security-driven retirements, Lifecycle timeline commitments, Automatic upgrades and Notifications, page dated 24 July 2026
- Microsoft Learn, Understanding deployment types in Microsoft Foundry Models The box Data residency for all deployment types, the section Start with Global Standard and the section Restrict deployment types with Azure Policy, page dated 6 August 2026
- Anthropic, Model deprecations The sections Overview, Migrating to replacements and Notifications
- Anthropic, Building effective agents The sections What are agents? (workflows with predefined code paths, and agents that direct their own steps) and When (and when not) to use agents, published 19 December 2024