Build a Mastra AI Quick Commerce & D2C Merchant Risk Pipeline
Rapid onboarding of D2C sellers on quick commerce platforms increases exposure to operational vendor risk. Build a TypeScript workflow using Mastra AI to evaluate seller inventory health, fulfillment reliability, and return rates, producing automated merchant risk scores.
What you are building
Develop a Mastra AI TypeScript workflow with built-in state management and memory to compute merchant risk levels for quick commerce networks.
How work is evaluated
Evaluates workflow completion and accuracy of merchant risk categorization.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
workflow_status_check
Verifies Mastra workflow completed execution
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
risk_tier_accuracy
Match score against risk model output • target: 1 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
Construct Mastra AI Agent workflows using TypeScript
Leverage Mastra memory and store drivers for historical seller metrics
Compute composite merchant risk scores based on operational metrics
Trigger automated credit limit adjustments based on seller risk profiles
Resources
Synthetic merchant fulfillment operational dataset containing return rates and quarterly GMV values.
Challenge setup
Evaluates workflow completion and accuracy of merchant risk categorization.
Challenge input
JSON payload of seller metrics
Mastra AI
TypeScript framework for workflow state management
Evaluated output
JSON object with risk_tier and max_credit_limit_inr
- Verifies Mastra workflow completed execution
- Match score against risk model output • target: 1 • range: 0-1
- Benchmark: E-Commerce Merchant Risk Benchmark
- Risk Tier Accuracy target: 1
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- Mastra AI · Required
- BoTorch · Optional
- Fixie · Optional
- Mastra AI · Required
Evaluation contract
- workflow_status_check · Weight 1
- risk_tier_accuracy · Weight 1
Metrics
- risk_tier_accuracy · Target 1
Benchmarks
- E-Commerce Merchant Risk Benchmark
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON payload of seller metrics
Output: JSON object with risk_tier and max_credit_limit_inr
Execution harness: JavaScript
Evaluation tools
- Mastra AI · Agent Framework
Recipe freeze marker
No recipe freeze time is recorded.