About this paper
This paper is intended for digital leaders in government, development partners, donors, and practitioners who are shaping local, national and global digital agendas, as well as for anyone interested in societal transformation, poverty alleviation, and developmental impact using technology.
Its aim is not to promote AI adoption for its own sake, but to provide a clear and practical way to align emerging AI capabilities with the foundational rails of DPI towards development outcomes, enabling more adaptive, coherent, and publicly governed digital systems over time. In this vision, the value of AI emerges not from its autonomy but from how it integrates dynamically with the foundational rails of DPI to create adaptive, intelligent, and publicly governed digital infrastructure.
Executive Summary
This paper presents the DPIβAI Framework as a practical way to think about how Artificial Intelligence (AI) can be integrated into public digital systems through Digital Public Infrastructure (DPI). It is written at a moment when AI capabilities are advancing rapidly, while many governments are still grappling with fragmented systems, legacy architectures, and uneven institutional capacity. Rather than proposing AI as a standalone transformation, the paper explores how existing DPI foundations can provide structure and coherence for the use of AI in the public sector.
Many of the ideas discussed in this paper are not new. Modularity, shared services, workflow orchestration, and human oversight have long been part of public sector digital ambitions. What has changed is the maturity and accessibility of AI, combined with the attention it now receives from political leaders, institutions, and the market. This convergence creates pressure to adopt AI quickly, often before there is clarity on how it should interact with existing public systems.
The DPIβAI Framework positions AI not as a new layer within DPI, but as an external and interoperable set of capabilities that connect to DPI through shared standards, governance mechanisms, and safeguards. It focuses on foundational DPI rails such as digital identity, data exchange, and payments.
At the core of the framework are three interrelated elements:
- AI Blocks are modular units of AI capability that can be invoked as callable functions. They perform sector-specific functions (identity verification, eligibility checking) and foundational tasks (translation, OCR, summarisation).
- DPI Workflows provide the orchestration layer that coordinates AI Blocks with existing DPI systems, policy rules, data flows, and human oversight.
- Public Agents are AI-enabled interfaces that interact with citizens and public servants, drawing on AI Blocks through DPI Workflows.
The value of AI emerges not from its autonomy but from how it integrates dynamically with the foundational rails of DPI to create adaptive, intelligent, and publicly governed digital infrastructure.
Introduction
In a pivotal scene from the 1999 film The Matrix,[1] Neo undergoes an instantaneous transformation. A diskette uploads knowledge directly into his brain. He opens his eyes and declares: "I know Kung Fu." For a generation raised on the cusp of the internet revolution, this symbolised a dream of frictionless learning and limitless upgradeability.
Two decades later, the fantasy remains fiction. But we are entering an era where advanced statistical models β particularly Agentic AI based on Large and Small Language Models[2] β can assist in generating information, summarising documents, responding to user input, and even tailoring services at scale. These systems, however, do not "understand," "reason," or "think" in the human sense. They operate by predicting patterns in data, not by grasping meaning or engaging in cognition.[3]
There is no need for a new mental model for AI in government. The DPI approach is already set up to integrate AI, as long as we carefully consider safeguards, emphasising cross-sectoral, governance, and procurement implications. AI does not require a separate framework but rather adjustments within the existing DPI model. From this perspective, AI naturally fits as just another modular building block within DPI, reinforcing the principle of minimalism and reusability.
Why act now?
The cost of inaction is already visible. Governments that postpone building AI-ready digital infrastructure risk deepening dependency on proprietary systems and locking public functions into closed platform models whose costs increase over time. Without interoperable and publicly governed AI capabilities, ministries duplicate investments, procurement becomes fragmented, and crisis responses slow down.
The greater cost, however, is institutional. When governments lack open and modular infrastructure, they lose the ability to choose their own digital paths, to adapt technology to local contexts, and to govern it on their own terms.
Digital sovereignty is not achieved through isolation β but through capability. It depends on building the competence to design, reuse, maintain, and evolve shared public systems independently.[6]
This framework does not assume that AI should be prioritised ahead of foundational DPI work. In many contexts, the immediate focus remains on clean registries, reliable APIs, last-mile connectivity, and minimal institutional capacity. The purpose of the framework is to make AI integration coherent when the time is right β not to rush it.
What is Digital Public Infrastructure (DPI)?
DPI is an approach to digitalisation focused on creating foundational, digital building blocks designed for the public benefit.[4] This approach combines open technology standards with robust governance frameworks to encourage private community innovation to address societal scale challenges such as financial inclusion, affordable healthcare, quality education, climate change, and access to justice.
It is based on five technology architecture principles:[5]
- Interoperability
- Minimalist, reusable building blocks
- Diverse, inclusive innovation by the ecosystem
- A preference for remaining federated and decentralised
- Security and privacy by design
At an implementation level, this approach takes shape through a set of foundational, interoperable building blocks: identifiers and registries; data sharing; AI/ML models; trust infrastructure; discovery and fulfilment; and payments.
Government, at its core, is a system of registries (records that are created, updated, or read β identity, land, benefits, credentials) and rules (laws and policies that are executed β eligibility, consent, approval logic). AI Blocks can read and write registries. DPI Workflows encode and execute rules. Public Agents interpret citizen intent and trigger the right combination of both.
What is AI in the public sector?
AI refers to computer systems that learn from data and make context-based judgements to perform tasks such as understanding language, answering questions, executing tasks, recognising patterns, or generating text and media. Unlike traditional software that follows fixed rules, AI systems adapt their outputs based on patterns learned during training and ongoing reinforcements.
The most visible examples today are Large Language Models (LLMs), which are powerful models trained on vast amounts of data, and Small Language Models (SLMs), which are lighter and designed to run on smaller devices or at lower cost. For public sector applications β particularly in low-resource environments β SLMs offer significant advantages in cost, latency, and sovereignty.
Agentic AI refers to systems that use AI to both provide information and take actions: connecting with third-party systems, invoking AI blocks, or running workflows to complete tasks such as searching databases, submitting forms, or scheduling appointments. Within the DPI-AI Framework, Public Agents are the primary expression of agentic AI in the public sector.
The DPI-AI Framework
The DPIβAI Framework is a design approach that extends Digital Public Infrastructure by connecting AI as an external, interoperable layer. It enables modular AI capabilities β Public Agents, DPI Workflows, and AI Blocks β to interact with DPI systems through shared standards, governance, and safeguards.
The framework supports adaptive and accountable public service delivery while maintaining openness, transparency, and human oversight. It deliberately avoids prescribing specific technologies or models. Instead, it offers a shared mental model that helps governments, development partners, and ecosystem actors reason about where AI fits within a DPI-based architecture.
The +1 Approach: Governments don't need to replace legacy systems to become AI-ready. Layer new capabilities alongside what exists β wrapping legacy systems with interoperable APIs and DPI blocks. Every registry cleaned, every API published, every governance process formalised is a direct enabler of AI-ready public infrastructure.
AI Blocks: Units of AI as callable functions
To embed intelligence into public systems, we need units of AI that act like callable functions. In the DPI-AI Framework these units are AI Blocks.
These blocks follow the same logic as DPI components. AI Blocks are discrete, auditable modules that encapsulate a single capability. Each one can be invoked by a Public Agent or by another system, much like a function call.
Think in terms of ingredients and recipes. AI Blocks are the ingredients. DPI Workflows are the recipes that combine ingredients with policy and process to deliver a service. Ingredients remain reusable across many recipes. Recipes remain transparent, auditable, and easy to revise as rules and needs evolve.
An AI Block has four properties that mirror DPI principles:
- Minimalist. One clear purpose with a bounded interface.
- Composable. Designed to interoperate with other Blocks and workflow engines through open APIs and common data formats.
- Reusable. Applicable across agencies, sectors, and regions without rework.
- Governable. Observable, testable, and aligned with policy, with built-in audit trails and privacy controls.
Foundational AI Blocks
General-purpose capabilities reusable across many sectors. They provide the baseline tools β the multimodal and local language primitives that are prerequisites for an inclusive and AI-ready nation:
- Translation and transliteration into local languages
- Speech-to-text and text-to-speech
- Optical character recognition (OCR)
- Text summarisation
- Image and video recognition
Sector-Specific AI Blocks
Tailored to specific sectors or workflows. They embed policy and operational logic into callable functions:
- Eligibility verification for social protection programs
- Identity verification integrated with the digital ID platform
- Vaccine certificate validation in health services
- Clinical decision support in hospitals
- Personalised tutoring support in education
Safeguards as Callable AI Blocks
Safeguards can themselves be AI Blocks β callable functions that check for bias, validate consent, detect anomalies, or flag low-confidence outputs for human review. By treating safeguards as modular, replaceable components, governments can evolve their risk management without rebuilding entire workflows.
DPI Workflows: The Orchestration Layer
While AI Blocks provide the modular capabilities, what turns them into usable public services is how they are orchestrated. This is the role of DPI Workflows β structured, auditable recipes for service delivery. They connect Public Agents, AI Blocks, and core infrastructure such as digital identity, payments, and data exchange into coherent flows.
Each workflow defines a clear sequence of steps, along with the data, conditions, and safeguards that guide how a service is delivered. For example, a social protection public agent may invoke a workflow that verifies identity, checks eligibility through an AI Block, and initiates a payment using a government payment rail.
Just as importantly, DPI Workflows can themselves become reusable assets. Published in open repositories, workflows could be adapted and reused by other governments or agencies, much like open-source code. Treating workflows as templates allows countries to borrow from each other's playbooks, install them with minimal effort, and adapt them to local policies and contexts.
Generic DPI Workflow Template (YAML)
Public Agents: AI-enabled interfaces
Small Language Models (or Large Language Models depending on scale, budget or context), optimised for efficiency and contextual relevance, can be deployed within ministries, municipal offices, or service centers. When coupled with DPI, they power the creation of Public Agents.
Public Agents are AI-enabled assistants that may take the form of software-based agents, AI-assisted public servants, or hybrid arrangements combining both. They interact with citizens, officials, or service providers within defined rights-based boundaries, and activate DPI Workflows. In all cases, Public Agents are not autonomous actors but accountable extensions of government capacity.
Public Agents can support tasks such as:
- Act as on-demand experts, embedded in messaging platforms, web portals or mobile apps
- Handle citizen queries using publicly governed AI blocks such as eligibility verification, grievance filing, or identity assistance
- Operate in low-resource or multilingual environments, using lightweight language models adapted with local data and civic logic
As modular capabilities mature, there is a natural progression toward multi-agent orchestration β multiple agents collaborating by sharing context, coordinating across workflows, and dynamically decomposing complex tasks.[8] DPI provides the shared digital rails to meet these requirements, offering common protocols, registries, and governance frameworks.
Architecture Principles and Design Patterns
Six Principles β The "Why"
- Interoperability First. AI Blocks connect through open standards β not proprietary integrations. Any block can be swapped without rebuilding the workflow.
- DPI as the Source of Truth. AI outputs inform decisions; registries remain authoritative. No AI block directly modifies authoritative records without a governance step.
- Minimal Footprint. Each AI Block does one thing well. Complexity is managed at the workflow level, not embedded in blocks.
- Human Oversight by Default. Any low-confidence output, exception, or safeguard violation routes to a human. Automation is earned, not assumed.
- Sovereignty and Replaceability. Model provenance, hosting options (sovereign cloud / on-prem / external API), and replaceability conditions are declared in every block spec.
- Govern Data, Not Just Models. Data provenance, consent, and stewardship are foundational. A government cannot train a trustworthy model on ungoverned data.
Seven Patterns β The "How"
- Wrap before replace. Before rewriting legacy systems, expose them via interoperable APIs. This is the +1 Approach.
- Publish block specs as open standards. Every AI Block should have a machine-readable spec declaring inputs, outputs, confidence thresholds, and replaceability.
- Design for the lowest-bandwidth channel first. USSD and SMS as minimum viable channels; WhatsApp voice as primary for last-mile contexts.
- Confidence thresholds over hard decisions. Every AI Block output includes a confidence score and a defined fallback path.
- Human escalation is not a failure. It is a designed feature. Build escalation paths as first-class workflow steps, not exception handlers.
- Share workflows as templates. Publish successful workflow configurations in open repositories for cross-government reuse.
- Consent is a DPI block. Treat user consent as a callable, auditable function β not an implicit assumption or a static checkbox.
From Digital Public Goods to AI Blocks
The DPG ecosystem β which includes open-source software like OpenCRVS, Mojaloop, OpenIMIS, and DHIS2[7] β provides a natural foundation for AI Blocks. Existing DPGs can be extended to expose AI-callable interfaces. New DPGs can be purpose-built as AI Blocks from the outset.
AI Blocks themselves can qualify as Digital Public Goods when they: are open-source or governed by open standards; declare their training data provenance; embed privacy and consent controls; and are designed for replaceability rather than lock-in. This creates a reinforcing cycle: DPGs enable AI, and AI capabilities become DPGs.
Use Cases: Making the Vision Tangible
The framework is illustrated through five use case archetypes, each showing how AI Blocks, DPI Workflows, and Public Agents combine to deliver a specific public service.
π‘οΈ Access to Social Services and Benefits
A citizen authenticates via WhatsApp, submits a benefit claim in their local language using voice input. The Public Agent invokes a DPI Workflow: speech_to_text() β translate() β identity.verify() β ai.eligibility_verify() β [if confidence < 0.85 β human_escalate()] β payments.disburse(). Human caseworker reviews borderline cases. Audit trail created at every step.
π Civil Registration and Legal Services
Hospital staff submit a birth notification form. The workflow invokes: ocr.extract(form_image) β identity.verify(parent_ids) β registry.check_duplicate() β [if anomaly β human_review()] β registry.create_record() β certificate.generate(). Human registrar retains final authority on every registry write.
πΎ Livelihoods and Economic Participation
A farmer sends a WhatsApp voice note in a local dialect. The agent transcribes, translates, extracts structured fields (name, location, crop, land size), verifies identity against an agricultural registry, and submits a benefit application β with USSD as fallback for low-connectivity zones.
π Education and Human Development
A student authenticates, the Public Agent assesses their current level, generates personalised content via personalized_tutor(), and tracks progress. Teachers are notified when at-risk patterns are detected. Student data is governed under strict purpose limitation β only mastery scores, not full interaction logs.
π¨ Crisis Response and Urban Services
A disaster is declared. A pre-built, tested workflow activates: disaster.declare(area_polygon) β gis.identify_population() β registry.match_eligible() β fraud.screen(disbursement_list) β human_authority.approve(batch) β payments.bulk_disburse(). Speed comes from pre-built infrastructure, not from removing oversight.
Critical note: The Crisis Response workflow must be built and tested before a crisis. This is not a use case to stand up during an emergency.[9]
Challenges Ahead: Safeguards, Procurement, and Governance
Procurement
Most government procurement frameworks were not designed for modular, callable AI capabilities. They favour large platform contracts over interoperable building blocks.[10] Reforming procurement to support AI Blocks as reusable public goods β with clear specs, open APIs, and replaceability requirements β is a prerequisite for the framework to scale.
Institutional Capacity
Governing AI requires skills that government often lacks: AI literacy, data governance expertise, workflow engineering, and the ability to write and audit block specifications. Building this capacity β in-house and across the ecosystem β is as important as the technical infrastructure itself.
Data Quality
Clean registries are a prerequisite, not a given. AI Blocks that read from inaccurate, incomplete, or biased datasets will produce inaccurate, incomplete, or biased outputs. Every registry cleaned is a direct investment in AI readiness.
Connectivity and Inclusion
Last-mile delivery requires offline-capable workflows, USSD fallbacks, and voice-first interfaces. Designing for the lowest common denominator channel is a governance principle, not a technical afterthought.
Language and Cultural Context
Foundational AI Blocks for local language translation, speech-to-text, and transliteration are prerequisites for inclusion. Without these, AI-enabled services will serve only those who speak dominant languages β a structural exclusion risk.
Conclusion
The DPI-AI Framework is not a call to adopt AI at all costs. It is a call to be ready β to build the modular, governed, interoperable foundations that allow AI to be integrated when the moment is right, on terms set by governments and citizens rather than by vendors.
The three elements β AI Blocks, DPI Workflows, and Public Agents β offer a practical vocabulary for this work. They connect the principles of DPI (minimalism, reusability, interoperability, sovereignty) with the realities of AI deployment in resource-constrained, multilingual, and institutionally complex environments.
The task ahead is not to wait for a perfect AI system, but to build the infrastructure that would allow any capable AI system to operate within public governance. Every registry cleaned, every API published, every workflow documented, and every safeguard designed is a step toward that goal.
The question is not whether governments will use AI. It is whether they will use it on their own terms, within their own governance structures, and in service of their own development goals.
Notes & References
- Wachowski, L. & L. Wachowski (dirs.). (1999). The Matrix. Warner Bros. Pictures. β©
- The terms "Large Language Models" (LLMs) and "Small Language Models" (SLMs) refer to neural network architectures trained on large corpora. See: Brown, T. et al. (2020). "Language Models are Few-Shot Learners." Advances in Neural Information Processing Systems, 33. OpenAI. For SLMs, see: Gunasekar, S. et al. (2023). "Textbooks Are All You Need." arXiv:2306.11644. β©
- On the distinction between statistical pattern recognition and genuine cognition, see: Marcus, G. & Davis, E. (2019). Rebooting AI: Building Artificial Intelligence We Can Trust. Pantheon Books. The limitation is not a deficiency to be overcome, but a foundational property of current transformer architectures. β©
- Centre for Digital Public Infrastructure (CDPI). (2023). "What is DPI?" cdpi.dev/dpi. CDPI defines DPI as "a set of shared, open digital utilities that enable governments, businesses and individuals to solve problems at scale." β©
- The five architecture principles originate from the DPI approach as articulated by Co-DPI and the Digital Public Goods Alliance (DPGA). See: Digital Public Goods Alliance. (2022). "DPI and Digital Public Goods." digitalpublicgoods.net. Principles are elaborated in the CDPI DPI Specification at cdpi.dev. β©
- The concept of digital sovereignty as active capacity β rather than isolation β is elaborated in: OECD. (2023). Digital Government Review: Towards Digital Sovereignty. OECD Publishing. Paris. See also: Arora, A. et al. (2023). "Rethinking Digital Sovereignty in Global Development." DPGA Policy Brief. β©
- All four are certified Digital Public Goods in the DPG Alliance registry (digitalpublicgoods.net/registry). OpenCRVS: opencrvs.org. Mojaloop: mojaloop.io. OpenIMIS: openimis.org. DHIS2 (District Health Information System 2): dhis2.org. β©
- Multi-agent orchestration in AI systems is an emerging area of active research and deployment. For foundational approaches, see: Anthropic. (2025). "Building Effective Agents." anthropic.com. The Model Context Protocol (MCP), introduced by Anthropic in 2024, provides an open standard for structured context exchange between agents and tools: modelcontextprotocol.io. β©
- The importance of pre-built crisis infrastructure β tested before emergencies, not assembled during them β is documented in COVID-19 digital response evaluations. See: World Bank. (2021). Digital Infrastructure for Crisis Response: Lessons from COVID-19. World Bank Group, Washington D.C. The lesson is echoed in CDPI's crisis readiness playbooks. β©
- For a detailed analysis of procurement reform requirements in the context of AI and digital public goods, see: GovStack. (2024). "Procurement Frameworks for Digital Government." govstack.global. See also: OECD. (2023). Recommendation of the Council on Artificial Intelligence. OECD/LEGAL/0449. β©