The orchestration layer β structured, auditable recipes that coordinate AI Blocks, DPI systems, and human oversight into coherent public services.
A DPI Workflow defines the sequence, conditions, data flows, and safeguards that govern how a service is delivered. AI operates inside the workflow β never outside it. The workflow is the single source of truth for any service interaction.
Receives citizen intent, initiates workflow invocation with consent token
identity.verify(citizen_id) β authenticated against the national ID system
ai.eligibility_verify() β returns eligible + confidence score
data_exchange.get_social_record() β consented data pull from registry
payments.disburse() β benefit payment via government rail
Every step logged immutably β who, what, when, with what confidence
A workflow that chains together identity verification, eligibility determination, and payments is not only a service β it is also a sharable recipe.
Published in open repositories, such workflows can be adapted and reused by other governments, much like open-source code or containerised applications. Countries can borrow from each other's playbooks, install them with minimal effort, and adapt them to local policies.
This is how the DPI model extends to AI: not as configuration of black-box systems, but as governance-embedded code that can be inspected, audited, and evolved.
β See how to implement workflows with OpenFn, n8n, or YAML
A fully annotated YAML template for a social protection benefit disbursement workflow. Adapt the steps, blocks, and governance rules to any sector.
Every AI Block output includes a confidence score. Below threshold: human review. Above threshold: proceed. The threshold is a governance parameter, not a technical constant.
Escalation paths are designed into workflows, not bolted on as exception handlers. Human review is a workflow step β with a timeout, an assignee, and an audit trail.
Every workflow can be published as an open template. Countries adapt the policy parameters; the orchestration logic is reused. This is how DPI extends to AI at scale.
User consent is not a static checkbox β it is a callable, auditable function in the workflow. Consent is verified before any data access, and its scope defines what the workflow can do.
Voice-first interfaces, multilingual translation, USSD fallback β these are orchestrated as steps, not add-ons. The workflow decides which channel and language to use based on citizen context.
The workflow is the locus of control. AI Blocks are called from within the workflow β they cannot bypass governance steps, modify records directly, or act outside defined scope.
β See how to implement workflows with code (YAML) and no-code tools (OpenFn, n8n)
Workflows call AI Blocks and are invoked by Public Agents. They are the orchestration layer that makes the framework function as a system.