Arbitrage bot
Bot that screens second-hand listings with cheap steps first, uses Claude only on the survivors and sends alerts through Telegram.
This tool is not public. I can show you a demo with sample data. Ask for a demo
Problem
Finding good second-hand purchases to resell means reviewing many listings by hand, working out the resale price and the cost of bringing the product in, and ruling out scams. It is repetitive work, and opportunities are lost by not looking in time.
My role
I designed and built it on my own, end to end, for my own use.
Solution
- Listing ingestion with Apify and deduplication; every listing seen is stored for the price history.
- A funnel with the cheap, deterministic steps first: geographic filters, risk rules and text-based discards. The AI only processes what survives.
- Claude turns the listing text into a structured product, and its answer is validated with Pydantic before it is used.
- Estimates of value, of the cost of bringing the product in and of margin.
- Telegram alerts with action buttons; the bot learns from feedback.
- Natural-language chat over Telegram: a Claude agent with a tool loop, with confirmation buttons for changes.
- Spending control for the Apify runs.
Results
- Some purchases came out of the bot's alerts.
Technical decisions
Cheap steps first, AI last
The deterministic filters discard before the model is called, so each Claude call is spent on a listing that has a chance.
Structured, validated output
Claude returns JSON and Pydantic validates it; if it does not meet the schema, it does not enter the rest of the funnel.
Periodic tasks from Supabase Cron
With a server that shuts down, an in-process scheduler does not work; FastAPI endpoints receive the calls and there are no background processes.
Tell me what you’re building. I reply within a day, in English or Spanish.