From March 2025 to October 2026, I was Senior AI Advisor in the Office of the Prime Minister of Spain, part of a broad effort to bring AI into the center of government. It was never one project. It was an attempt to make an institution able to use AI well: an adoption program for its people, applications for its work, infrastructure that kept sensitive data in-house, and the governance to decide what could be deployed at all.

The effort

We did not wait for a perfect strategy. We started deploying, learning and iterating, with a team that would be considered tiny by any government standard. Most of the work was invisible from outside: translating what models can and cannot do into evaluation criteria, procurement requirements, risk assessments and deployment safeguards; working across technical, policy, legal and security teams on what to adopt and how; building AI literacy among officials, including through a game; and building agentic applications for problems as different as research and crisis response.

Three success cases

Three pieces of that effort, which I led, designed and built, have now been selected following OECD review for publication in the OECD.AI Policy Observatory:

  • PresidencIA, the Office's generative AI adoption program, organized around community, applications and infrastructure. It mobilized hundreds of officials.
  • ServetIA, an AI research platform that helps civil servants find facts and prepare briefings, with answers linked to their sources.
  • CiudadanIA, which processes the letters citizens send to the Prime Minister. It runs in-house, because those letters contain personal data.

They are the visible part of the work, and they worked because of the rest of it. Here is what the whole effort taught me about adopting AI where mistakes are strategic: where an error is not a bug for the next sprint but a public event, with political, legal and security consequences.

Five lessons

1. Adoption is organizational before it is technical. Choosing a model was the easy part. Getting hundreds of officials to use AI on their real work was the program.

2. Capability is not deployability. In its third week of testing, CiudadanIA summarized a citizen's letter accurately, then attributed the problem to a ministry that does not exist. The civil servant reviewing the summaries caught it and asked the question that matters: "If this tool invents institutions, how do I trust it with anything?" (the full story)

3. Design for verification, not trust. The fix was better prompts and entity guardrails, but above all a new workflow: reviewers were no longer asked to trust the model, only to check it. The human in the loop needs a job they can actually do.

4. Make every answer traceable. At the center of government, an answer nobody can source is an answer nobody can use. That is why ServetIA links its answers to their references.

5. Governance is a mechanism, not a principle. Principles do not decide whether a system ships; concrete criteria, risk assessments and safeguards do. And the institution sets the pace: our team could ship applications quickly, but buying eight licenses took six weeks and an eleven-page justification.

What changes with agents

Each of these lessons gets harder as systems become more capable and more agentic. When a system drafts, people review. When it acts, the institution needs evidence, before deployment, of what it can do and how it fails. That is the question I now work on at Cambridge ERA:AI, where my working paper on the Capability–Deployment–Effect gap separates what a model can do, how it is deployed, and what it demonstrably causes.

Build, govern, evaluate: inside government, these were never three jobs but one problem seen from three distances. The OECD selected three cases, but they belong to a much larger effort. My thanks to the team that built it with me, and to every official who was willing to try.