Implementation Sandbox

From Framework to Working Service

The DPI-AI Framework is designed to be implemented — not just read. Use these tools to design your service, walk through the 9-step implementation journey, and watch a practical demonstration of a farmer requesting government support via WhatsApp.

1
Design your service with the AI Block Composer or Service Architect
2
Walk through the 9-step implementation journey for your use case
3
Step through the farmer benefit demonstration — the framework in action
How the DPI-AI Framework works
🧩
AI Blocks
Modular, callable AI functions — translate(), identity_verify(), audit_log(). Each does one thing and is reusable across services.
⚙️
DPI Workflows
Structured sequences that chain AI Blocks with DPI systems and human oversight. YAML-defined. AI operates inside the workflow — never outside it.
🤝
Public Agents
The citizen-facing interface — WhatsApp, voice, USSD, or web. Activates the workflow. Accountable extensions of government, not autonomous systems.
🏛️
Service Delivered
The citizen receives a government service. Every action is logged, consented, and auditable. DPI systems remain the authoritative source of truth.

🌾 Farmer Benefit Application — Practical Demonstration

Amina is a smallholder farmer in Kisumu, Kenya. She sends a voice message on WhatsApp to apply for the Ministry of Agriculture's support benefit. Watch how AI Blocks, DPI Workflows, and DPI systems combine to deliver the service — with full governance at every step.

Speed:
🌿
Kilimo Bot 🤖
Ministry of Agriculture · online
🎤
📱 M-Pesa Notification · Mojaloop
You have received KES 3,000 from Ministry of Agriculture. Ref: AG-2026-8847. Balance: KES 3,847.

DPI Workflow — step-by-step execution

📡 Channel & Agent
🤖
public_agent.init()
PublicAgent("KilimoBot").receive(channel:"whatsapp", user:"0712xxx")
✓ Agent initialised · consent logged · workflow: AGRI_BENEFIT_2026
🧠 AI Processing
🎤
speech_to_text()
speech_to_text(voice_note, lang:"sw-KE")
✓ confidence: 0.94 · "Nataka msaada wa kilimo"
🌐
translate()
translate(text, source:"sw", target:"en")
✓ "I want to apply for agricultural support"
🔍
structured_extract()
extract(text, schema:{intent, name, location})
✓ intent: agricultural_support · name: Amina
🔐 Identity & Eligibility · DPG
🪪
identity_verify() · MOSIP
mosip.verify(national_id:"38291047", biometric:false)
✓ Amina Odhiambo · Kisumu · DOB: 1988-04-12
eligibility_verify() · OpenSPP
openspp.check_eligibility(national_id, "AGRI_SUPPORT_2026")
✓ ELIGIBLE · Maize 2.5ha · enrolled 2024-01
📋
submit_application() · OpenSPP
openspp.submit_benefit_application(farmer_id, ref:"AG-2026-8847")
✓ Application #AG-2026-8847 submitted · pending approval
👤 Human Oversight
👤
human_escalate() · Approval Gate
workflow.await_approval(ref:"AG-2026-8847", authority:"MoA_Officer")
✓ Approved within policy rules · officer notified · flagged for audit
💸 Payment · DPG
💸
payments.disburse() · Mojaloop
mojaloop.transfer(KES_3000, msisdn:"0712xxx")
✓ KES 3,000 → M-Pesa 0712xxx · ref: MOJ-9921
📋 Governance
📊
audit.log()
audit.log(session_id, actions[], outcome:"success")
✓ Full trail logged · consent verified · PII redacted
About this demo: This is a representative simulation of the Livelihoods use case from the DPI-AI Framework paper. The Public Agent (KilimoBot) orchestrates the full interaction. speech_to_text() and translate() run on cloud or sovereign-hosted models. identity.verify() calls MOSIP (open-source digital identity). Eligibility and benefit submission use OpenSPP (open social protection platform). Payment disbursement uses Mojaloop rails to M-Pesa. The entire interaction is governed by the DPI Workflow YAML spec — AI operates inside it, never outside it. See implementation guide →

🔍 Explore an Implementation Scenario

Select a use case to walk through all 9 implementation steps — from identifying scope to fine-tuning in operation — with sector-specific guidance at each stage.

🛡️
Social Services
Benefits eligibility & disbursement
📝
Civil Registration
Birth certificates & identity
🌾
Livelihoods
Farmer benefits via WhatsApp
📚
Education
Personalised learning support
🚨
Crisis Response
Emergency benefit disbursement