Skip to main content
Challenge

Mastra AI Exclusive Listing Revenue Model Workflow Engine

Create a TypeScript workflow using Mastra AI to redesign exclusive listing agreement structures following tenant-paid broker fee restrictions. The automated system calculates landlord commission splits and enforces state real estate regulatory compliance constraints across property workflows seamlessly.

Business OperationsHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Uses Mastra AI's TypeScript framework to construct stateful workflow graphs and agent memory tools for calculating exclusive listing fee models.

Delivery guide

How work is evaluated

Evaluation

Evaluates workflow step execution and legal agreement structure output.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

Commission Split Math

Verifies sum of agent payouts equals total landlord fee paid

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

Workflow Completion Rate

Percentage of workflow steps completed without unhandled context exceptions • target: 1 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Implement a stateful Mastra AI workflow in TypeScript with explicit step DAGs

  • Model legal landlord-paid commission structures for exclusive residential listings

  • Integrate agent memory to preserve negotiations across multi-turn agent calls

  • Generate automated exclusive representation agreements compliant with local laws

Resources and assets

Reference links and supporting material

Dataset notes

30 exclusive listing representation scenarios and commission structures.

Challenge setup

Evaluates workflow step execution and legal agreement structure output.

Challenge input

JSON containing annual_rent, landlord_commission_rate, agent_split_rate, and tenant_fee_prohibited (bool)

Mastra AI

Provides typed graph workflows and built-in memory tools.

Evaluated output

JSON containing landlord_total_fee, listing_broker_payout, cobroke_payout, and compliance_passed

Evaluation checks
  • Verifies sum of agent payouts equals total landlord fee paid
  • Percentage of workflow steps completed without unhandled context exceptions • target: 1 • range: 0-1
Configured evaluation evidence
  • Benchmark: CRE-WorkflowAutomation-TS
  • Workflow Completion Rate target: 100%
  • 1 public reference case
Configured runtime
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)

Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.

View technical recipe

Configured tools

Action Space
  • Mastra AI · Required
  • RAI · Optional
  • aiXplain · Optional
Orchestration
  • Mastra AI · Required

Evaluation contract

  • Commission Split Math · Weight 1
  • Workflow Completion Rate · Weight 1

Metrics

  • Workflow Completion Rate · Target 1

Benchmarks

  • CRE-WorkflowAutomation-TS
  • general

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON containing annual_rent, landlord_commission_rate, agent_split_rate, and tenant_fee_prohibited (bool)

    Output: JSON containing landlord_total_fee, listing_broker_payout, cobroke_payout, and compliance_passed

    Execution harness: JavaScript

Evaluation tools

  • Mastra AI · TypeScript Agent & Workflow Framework

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Mastra AI Exclusive Listing Revenue Model Workflow Engine