Field Agent
Platform
A referral and analytics platform for a national foundation's grant programme. Field agents share personal links, and the foundation sees which agent drove each visit without collecting any applicant data.
The project
Credit for every referral,
no applicant data.
A national foundation runs a grant programme with field agents in markets and on campuses. The agents send applicants to a third-party application portal. The foundation needed to know which agent drove which visit, without collecting data about the applicants.
The first version asked agents to log each person they spoke to. We replaced it with a link-only model. Each agent shares personal links and QR codes, and a redirect service counts the visit before forwarding it to the portal. Agents handle less personal data and do less typing.
MOW Designs built the platform in October 2026 as an internal tool. Its first live use was at a market sensitisation event. The client is confidential, so this case study names no people, places or programme figures.
Capabilities
- Serverless Architecture
- Security Engineering
- Product Design
- Data Visualisation
- Localisation
- Progressive Web App
Deliverables
- Agent app with links and QR codes
- Admin analytics and CSV export
- Read-only state dashboards
- PDF day reports with charts
- Web Push admin alerts
- Sign-up in four languages
The challenge
Field work on any phone,
with security first.
Agents work in busy markets and on campuses, often on their own phones and on poor signal. The platform holds personal data about the agents and has to prove who referred whom. Both called for a small, hardened system.
Attribution without applicant data
The applicants belong to a third-party portal. The link-only model counts visits per agent and never asks for an applicant's details.
Poor connectivity
A service worker caches the app shell, so the agent app still opens on a weak connection.
Agent data held safely
Personal fields are encrypted with AES-256-GCM using keys bound to each record. HMAC values detect duplicate sign-ups.
Printed QR codes that keep working
Admins can change where a link points, and QR codes already printed on flyers carry on working.
Our approach
One stack,
no runtime dependencies.
Serverless on one stack
One CloudFormation stack in eu-west-1 holds everything. S3 and CloudFront serve the frontend, and API Gateway sits behind the same CloudFront at /api. A secret origin header stops anyone calling the API around CloudFront.
Five small functions
Five Node.js 22 Lambdas (agent, admin, state rep, redirect and notify) run with zero runtime dependencies. Data lives in DynamoDB, and secrets live in SSM as SecureString parameters.
Sign-up across the country
Agents sign up in English, Hausa, Yoruba or Igbo, with Fulfulde coming. Type-to-search covers all 36 states and the FCT plus about 1,500 schools and activation sites. The server checks each choice against the agent's state and issues a state-coded agent ID.
Agent tools
Each campaign gets a colour-coded section of links with Open, Copy, Share, QR and Share-QR buttons. Every agent can see their own numbers.
Analytics and reports
Admins see today, 7-day, 14-day and all-time views in dependency-free SVG charts, with a palette checked for colour blindness and CSV export. The platform generates PDF day reports with charts. State reps get read-only dashboards through one-time sign-in links.
Alerts and guard rails
An EventBridge rule runs the notifier every minute. Web Push follows RFC 8291 and 8292 with no libraries and passes the RFC test vector. Alerts carry counts and locations, never names. A budget alert, API throttling and a strict Content Security Policy (script-src 'self', no inline script) complete the setup.
Security
Six layers of protection.
Password plus TOTP
Admin sign-in uses an scrypt-hashed password and a TOTP code. Each code works once, and five failures lock the account.
Personal sign-in links
Agents sign in with a personal link that carries a 256-bit token in the URL fragment. The server stores only its hash, and an admin can revoke it.
Locked-down cookies
Sessions use __Host- cookies set HttpOnly, Secure and SameSite=Strict. Requests must pass an Origin check and carry a custom header, which blocks CSRF.
One place for permissions
Super-admin and read-only roles are enforced in a single place in the code.
No open redirect
The redirect service forwards only to a fixed allowlist of https domains.
Safe logs, exports and pages
Logs keep only allowlisted fields. CSV exports guard against formula injection. The interface builds the page from text nodes only, and tests check it.
The outcome
Small, tested,
and in the field.
The whole platform is about 9,300 lines of JavaScript, in four languages. It gives the foundation referral numbers for every agent and holds no applicant records.