Real-estate deal finder
An agent that reads off-market deal emails, feeds and foreclosure PDFs every hour, values each property, and texts only the deals that meet the investor's rules.
- Role
- Sole developer
- When
- Dec 2025
The problem
Off-market real-estate deals come in from wholesaler emails, RSS feeds and county foreclosure lists, all in different, messy formats. An investor has to read every one, look up what the house is worth and what it would rent for, and do the math, just to throw most of them away.
What I built
A background agent that does that screening. It pulls deals from every source, turns each one into structured data, looks up rent and value estimates, calculates yield and equity, and sends a Telegram alert only when a deal passes the investor's buying criteria.
How it works
- Runs every hour as a Docker container. It reads deal emails over IMAP, saves PDF attachments such as county foreclosure lists, and polls wholesaler RSS feeds.
- GPT-4o-mini turns free-form text into fields: address, price, after-repair value and rehab cost.
- Addresses are standardized with
usaddress, so the same house from two sources is recognized as one record. - RentCast provides rent and market value. Results are cached for 30 days so the same address doesn't cost a second API call.
- The criteria live in one config: price cap, minimum year built, and either 9%+ gross yield or $30k+ equity.
- Every deal is stored in SQLite whether it passes or not, so the criteria can be re-run over history later.
What broke and how I caught it
It ran for a while and never sent an alert. That's the problem with a filter whose only output is a message when something passes: silence looks the same whether no deal qualified or something upstream broke, like an expired email login, a feed that changed format, or a PDF that parsed into nothing. From my phone I couldn't tell which.
Every deal is stored with its numbers whether it passes or not, so the answer was in the database, but I had to go looking. The next change is a daily heartbeat to Telegram with how many deals were ingested, parsed and valued, and how close the best one came to the rules. Then silence means "nothing qualified", never "it stopped working".
Result
- Ran hourly against live email, RSS and PDF sources.
- No deal passed the buying rules while it ran, so it sent no alerts.
Built with
Built with Python, OpenAI API, RentCast API, SQLite, SQLAlchemy, Docker, Telegram