Quick overview
Underwrite Italian judicial auctions across PVP and Fallco against official OMI benchmarks using Apify. Score remediation capex with an AI Agent, publish Grade A memos to Notion, approve bids interactively via Telegram Wait, and book 10% deposit deadlines in Google Calendar.
How it works
- Daily Market Scan and Ledger Setup: Runs daily at 07:00 or manually via Replay Sample Auction Scenarios, initializes the italy_judicial_deals Data Table, and loads region, budget, OMI floor, and investor email policy.
- Stage 1 OMI Gate and Deduplication: Queries francescopacifico1905~italy-judicial-auctions (parseAppraisalPdf: false), filters properties at least 25% below Agenzia delle Entrate OMI midpoints natively, deduplicates lot keys, and skips previously decided or red-flagged lots unless basePriceEur dropped.
- Capped Stage 2 PDF Extraction and Cauzione Calculation: Caps Stage 2 candidates by maxPdfDeepDives, parses official CTU perizia PDFs via lot_by_id, and computes 10% cauzione amounts plus 48-hour deposit deadline windows.
- Agentic AI Capex Underwriting: Uses an OpenAI gpt-4o-mini AI Agent equipped with the Calculator tool and Structured Output Parser (plus deterministic fallback) to factor 9% statutory taxes and remediation capex into net OMI spread.
- Three-Tier Notion Desk and Interactive Telegram IC Approval: Archives Grade C toxic lots silently, sends Grade B watchlist cards to Notion and Telegram, and loops Grade A priority bids through interactive Telegram Wait links (Approve Bid or Pass Deal).
- Automated Calendar Booking and Gmail Custodian Draft: Approved bids automatically schedule the 10% cauzione deadline in Google Calendar and create a judicial custodian viewing draft in Gmail before stamping state.
Setup
- Create one Header Auth credential in n8n (Authorization: Bearer YOUR_APIFY_TOKEN) and attach it to both Apify HTTP Request nodes.
- Connect OpenAI API, Notion Integration Token (select your Deal Pipeline database), Telegram Bot Token, Google Calendar OAuth2, and Gmail OAuth2 credentials.
- Run Replay Sample Auction Scenarios with sampleDay = 1 (verifying Grade A interactive approval, Grade B watchlist, and silent Grade C rejection), then change sampleDay to 2 to test a 25% price drop free of charge.
- Update region, maxPriceEur, telegramChatId, and investorEmail in Set Region, Budget & OMI Spread Floor, then assign this workflow as its own Error Workflow in Workflow Settings.
Requirements
- n8n 2.48+ with built-in Data Tables enabled (core and LangChain nodes only)
- Apify account and API token (francescopacifico1905/italy-judicial-auctions Pay-Per-Event Actor)
- OpenAI API key, Notion database, Telegram bot chat ID, Google Calendar, and Gmail access
Customization
- Change region, maxPriceEur, minDiscountBelowOmiPct, maxPdfDeepDives, or investorEmail in Set Region, Budget & OMI Spread Floor.
- Adjust Grade A/B/C net spread criteria inside Compute Net Spread & Assign Deal Tier or extend the 24-hour Wait timeout on Wait for IC Approval Decision.
Additional info
Stage 2 appraisal PDF parsing runs exclusively on unseen deep-discount lots or confirmed auction price drops up to maxPdfDeepDives, with maxTotalChargeUsd=0.25 and retries disabled on both Apify nodes.