Deploy a Life Event Proactive Service Dispatcher with Mastra AI
Smart nation initiatives require seamless proactive service delivery when citizens reach major life milestones. Build a Mastra AI workflow that monitors life event triggers, checks eligibility across government agency APIs, and dispatches unified LifeSG support packages with 100% workflow execution reliability.
What you are building
The core problem, expected build, and operating context for this challenge.
Build a proactive public service delivery workflow using Mastra AI memory, agent tools, and step functions for LifeSG citizen milestones.
How work is evaluated
Evaluates workflow step execution reliability and eligibility matching accuracy for citizen life events.
Shared data for this challenge
Review public datasets and any private uploads tied to your build.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
all_benefits_included
Checks that mandatory government grants are present in dispatch payload.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
execution_reliability
Percentage of workflow steps completing without unhandled failures. • target: 1 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Master Mastra AI TypeScript agent definitions and agent workflow steps
Utilize Mastra built-in memory and context persistence for long-running user milestones
Build proactive notification and eligibility verification tools
Ensure robust error handling and step retries in government service dispatch
Reference links and supporting material
Synthetic citizen life event dataset containing birth, senior support, and housing milestone triggers.
How this agent runs
Evaluates workflow step execution reliability and eligibility matching accuracy for citizen life events.
Challenge input
JSON life event trigger (e.g., newborn registration)
Mastra AI
TypeScript-first AI framework with built-in memory, workflows, and tools.
Evaluated output
JSON dispatched support package summary with activated agency services
- Checks that mandatory government grants are present in dispatch payload.
- Percentage of workflow steps completing without unhandled failures. • target: 1 • range: 0-1
- Benchmark: GovServiceWorkflowBench
- Execution Reliability target: 1
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
View technical recipe
Configured tools
- Mastra AI · Required
- Langchain · Optional
- Sacred · Optional
- Mastra AI · Required
- Langchain · Optional
Evaluation contract
- all_benefits_included · Weight 1
- execution_reliability · Weight 1
Recipe state
This is a preview. The configuration can change before the evaluation recipe is locked.