Recued
Menu
← Back to recipes

Residential Lease Compliance Analyzer

by recued-core v3 44 views

Use “Residential Lease Compliance Analyzer” in Recued. Extracts key lease terms and validates against state landlord-tenant statutes with statutory citations. Reads the most recent note on the deal as the lease document (via the standard service operation) and extracts the property's state from it.

How it works 21 steps

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

Process (21 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
■ state_code uppercase
Convert state trimmed to uppercase
✦ lease_terms core.ai.extract
AI extracts structured fields from data
skip: step.state_code is_empty
■ deposit_limit_value switch
Map state code to one of: CA, CO, FL, IL, MA, NJ, NY, OR, TX, WA
skip: step.state_code is_empty
■ notice_min_value switch
Map state code to one of: CA, CO, FL, IL, MA, NJ, NY, OR, TX, WA
skip: step.state_code is_empty
■ deposit_statute_text switch
Map state code to one of: CA, CO, FL, IL, MA, NJ, NY, OR, TX, WA
skip: step.state_code is_empty
■ notice_statute_text switch
Map state code to one of: CA, CO, FL, IL, MA, NJ, NY, OR, TX, WA
skip: step.state_code is_empty
■ habitability_statute_text switch
Map state code to one of: CA, CO, FL, IL, MA, NJ, NY, OR, TX, WA
skip: step.state_code is_empty
■ prohibited_statute_text switch
Map state code to one of: CA, CO, FL, IL, MA, NJ, NY, OR, TX, WA
skip: step.state_code is_empty
■ max_deposit math
Calculate: {{step.lease_terms.rent_amount}} * {{step.deposit_limit_value}}
skip: step.deposit_limit_value is_null
■ deposit_ok compare
Check if lease terms security deposit amount is at most max deposit
skip: step.max_deposit is_null
■ notice_ok compare
Check if lease terms termination notice days is at least notice min value
skip: step.notice_min_value is_null
■ habitability_ok compare
Check if lease terms habitability clauses has data
skip: step.lease_terms is_null
■ prohibited_ok compare
Check if lease terms prohibited clauses detected is empty
skip: step.lease_terms is_null
■ 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 leasereal estatecompliancehubspotresidential

Details

21 steps recipe_id: extract-lease-terms-residential-hubspot