Recued
Menu
← Back to recipes

Lease Compliance Analyzer

by recued-core v3 36 views

Use “Lease Compliance Analyzer” in Recued. Validates residential lease terms against state landlord-tenant statutes with AI extraction and statutory checks.

How it works 19 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (19 steps)
◆ activities recued-core.hubspot.engagement.list
List engagement on hubspot
■ activities_flat map
Extract from each item
■ notes filter
Filter by condition
■ sorted_notes sort
Sort by
■ lease_text coalesce
Use the first available value from: sorted notes 0 body,
✦ extract_state core.ai.extract
AI extracts structured fields from data
skip: step.lease_text is_empty
■ state_trimmed trim
Trim whitespace from extract state property state
■ property_state uppercase
Convert state trimmed to uppercase
✦ extract_lease_terms core.ai.extract
AI extracts structured fields from data
skip: step.lease_text is_empty
■ state_max_deposit_months switch
Map property state to one of: CA, FL, IL, NY, OR, TX, WA
■ state_min_notice_days switch
Map property state to one of: CA, FL, IL, NY, OR, TX, WA
■ max_allowed_deposit math
Calculate: {{step.state_max_deposit_months}} * {{step.extract_lease_terms.rent_amount}}
skip: step.extract_lease_terms.rent_amount is_null
■ statute_sec_dep switch
Map property state to one of: CA, FL, IL, NY, OR, TX, WA
■ statute_notice switch
Map property state to one of: CA, FL, IL, NY, OR, TX, WA
■ statute_habitability switch
Map property state to one of: CA, FL, IL, NY, OR, TX, WA
■ statute_prohibited switch
Map property state to one of: CA, FL, IL, NY, OR, TX, WA
■ deposit_issue_condition all
Check if all conditions are true
■ notice_issue_condition all
Check if all conditions are true
■ compliance_checklist to_checklist
Format results as an actionable checklist
▼
Output
checklist compliance_checklist

Uses (2 operations)

Pack operation List engagement on hubspot recued-core.hubspot.engagement.list
AI models AI extracts structured fields from data core.ai.extract

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

What it's allowed to do

Read AI models core.ai.extract read-only

1 more isn't listed here. You'll see it at install.

Data it touches

SurfacesAI models

About

Tags

hubspot leasecompliancereal-estatehubspotlegalstatutory

Details

19 steps recipe_id: analyze-lease-compliance-hubspot