Brandon Soria · Full-stack & AI Engineer
Open to full-time · remote or CDMXI build AI agents that do real work — and stay under control.
Three live systems. Try them on this page.
- Based in
- Mexico City UTC−6
- English
- C1
- Stack
- Python + TypeScript
- Client work
- Since 2024
Ask about my experience and projects, out loud, in English or Spanish.
Answer from company data
Answers customers from the store’s policies and live orders, and cites every source.
- 3 tools
- one loop, no framework
- ≤ 5 steps
- per answer, then it stops
- Every answer
- cites its source
Where is order VM-1002? My email is luis@example.com
Your order VM-1002 has been shipped via DHL. The tracking number is DHL8820145567. It is an iPhone 15, 128GB, Black.
looked up with get_order
This is a saved run. Now make it answer you, with a live model call. Try to make it hallucinate.
model: gpt-4.1-mini
{"order_id":"VM-1002","email":"luis@example.com"}SELECT o.id, o.status, o.total_mxn, o.created_at, o.shipped_at, o.carrier, o.tracking, p.model, p.storage_gb, p.color FROM agent_demo.orders o JOIN agent_demo.products p ON p.sku = o.sku WHERE o.id = $1 AND lower(o.customer_email) = lower($2)
1120 ms
How it’s builtOne example step by step, then the decisions and what they costOpenClose
In one sentence: A customer asks, the agent looks the answer up in the store’s policies and database, and replies showing where it came from.
Use this when the answers exist in documents or a database, but finding them takes a person.
“Do you have an iPhone 13? Can I return it?”
- 1
The question arrives
Two questions in one message.
Question · streamed chat
- 2
The agent decides what it needs
Here: the return policy and the stock.
Agent loop · tool calling, max 5 steps
- 3
It reads the policy
Finds the 30-day return policy.
search_docs · policies in pgvector
- 4
It checks the stock
Finds iPhone 13 units in stock.
find_products · get_order · Postgres
- 5
It answers and shows its work
Replies and cites the policy it used.
Answer + trace · sources, SQL, cost
The decisions, and what each one costs
Why not use an agent framework?
Decision: no framework
Because three tools and one loop fit in a plain route handler.
It costs retries and memory written by hand.
Why two kinds of search?
Decision: vector search + SQL
Because policies are fuzzy text; stock and orders need exact values.
It costs the model can pick the wrong tool. The trace shows it when it does.
Why can’t the model write SQL?
Decision: fixed, parameterized queries
Because nothing it writes ever reaches the database; arguments are validated with zod.
It costs no ad-hoc questions outside the three tools.
When things go wrong
- It can’t find a good matchIt says “I don’t know” instead of guessing.similarity < 0.3
- The model calls a tool with bad argumentsThe error goes back to the model. No crash.zod validation
- Someone tries to abuse itIt stops at 5 steps per answer and 25 requests an hour.per-visitor rate limit
Act on the CRM, with approval
Qualifies a lead and prepares the CRM updates, then waits for a person to approve.
- 6 steps
- in one LangGraph run
- 0 writes
- without human approval
- Survives restarts
- state saved in Postgres
On the right is a saved run of the hot lead. Now run one live:
What the agent did · LangGraph
- QualifyLLM · structured output2.4s
- Look upMCP · find_contact, search_inventory0.9s
- Draft replyLLM · streamed1.1s
- Propose CRM actionsLLM · MCP tool schemas2.7s
- Human approvalLangGraph interrupt · Postgres checkpointstopped here
- ExecuteMCP · write tools
recorded run · real output · gpt-4.1-mini
Drafted reply
Proposed CRM actions · waiting for approval
This run stopped here. Run the agent live to approve or reject its actions yourself.
CRM pipeline · Postgres
new · 0
qualified · 0
quoted · 0
won · 0
lost · 0
How it’s builtOne example step by step, then the decisions and what they costOpenClose
In one sentence: A lead writes in, the agent scores it, drafts the reply and prepares the CRM updates, then stops until a person approves.
Use this when the AI should take actions, but a wrong one costs money or customers.
“iPhone 15 Pro today, 16,000 pesos.”
- 1
It sizes up the lead
A buyer, score 85.
Qualify · intent, budget, score
- 2
It checks what the store knows
Checks the contact and matching stock.
Look up · CRM + inventory via MCP
- 3
It prepares everything
Writes the reply and the CRM updates.
Draft + propose · reply and actions
- 4
It waits for a person
Stops here. A person reviews it.
Approval · paused, state in Postgres
- 5
It does only what was approved
Runs only what was approved.
Execute · approved actions only
The decisions, and what each one costs
Why use LangGraph here?
Decision: LangGraph
Because the run pauses for hours and resumes exactly where it stopped.
It costs more moving parts than the first system.
Why does the CRM get its own MCP server?
Decision: a custom MCP server
Because it is the only door to the CRM, and any agent can reuse it.
It costs one more process to run.
Why does every write need a human?
Decision: human approval before writes
Because nothing changes before approval, and only allow-listed tools run.
It costs slower than full autonomy.
When things go wrong
- The agent proposes a tool outside the allow-listIt is rejected.allow-list of 4 write tools
- The server restarts in the middle of an approvalThe run resumes where it stopped.Postgres checkpoint
- The service is asleep (free tier)The page says so instead of hiding it.cold start shown
Resale Intelligence
The system I built to price used electronics from real market data.
- 19,000+
- listings tracked
- 4 LLM agents
- spec, market, risk, lead
- < 5 s · $0.001
- per deal scored
Listings tracked
19,155
since Sep 24
Likely sold
5,444
tracked ≥20 h, then gone
Price changes logged
20,952
every re-capture
New in last 7 days
2,417
iPhone, iPad, Mac, audio
What used Apple devices really sell for in Mexico City
Bar = middle 50% of asking prices (P25–P75) · tick = median · MXN
- iPhone 17 Pro Max$20,000
- iPhone 16 Pro Max$14,000
- iPhone 16 Pro$12,500
- iPhone 15 Pro Max$10,300
- iPhone 16$9,600
- iPhone 15 Pro$8,900
- iPhone 14 Pro Max$7,500
- iPhone 15$7,000
- iPhone 14 Pro$6,800
- iPhone 14$5,500
Today’s flagged deals · real listings
Scored by the CRM against the market. Pick one and let the agents decide, live.
Or paste any listing
Deal desk · multi-agent
recorded run · real output · 2.1s“iPhone 12 128GB unlocked, great deal $3,800”
Message to the seller
1,170 tokens · $0.0007 · 2.1s ·numbers by code, judgment by LLM
How it got there
iPhone 12 · storage 128 GB · asking $3,800 · confidence 1.00
Skipped — Parser was confident — no LLM call needed.
13 comps · exact config · P25 $5,000 · median $5,600 · P75 $5,600 · 2 sold in ~6 d · price ceiling $4,100
resale $5,200 · demand medium
The expected resale price for this iPhone 12 128GB is around MXN 5200, which is below the median but above the 25th percentile. With 2 out of 10 listings sold recently, demand is medium and median days to sell is 6.
low riskhaircut 5%unlocked
The iPhone 12 is unlocked and priced moderately below market, presenting low risk.
- Listing price MXN 3800 is about 8.5% above maxBuy MXN 3500.
- Risk is low, so no major concerns about device condition.
- Expected resale price MXN 5200 supports a reasonable margin at MXN 3500 offer.
How it’s builtOne example step by step, then the decisions and what they costOpenClose
In one sentence: I browse listings, the system records every price, code works out what a device is really worth, and the agents judge whether a deal is safe to buy.
“iPhone 13 128GB, $6,500.”
- 1
It sees the listing
Sees the listing while I browse.
Chrome extension · captures listings
- 2
It saves it once
Saves it once, with its price.
Ingest API · validated, deduped
- 3
Code does the math
Works out market price and max buy.
Price model · deterministic code + SQL
- 4
It remembers every price
Keeps it with its price history.
Postgres · listings, price history
- 5
The agents give a verdict
Verdict: negotiate. Offer written.
Agents · judgment only
The decisions, and what each one costs
Why not let the AI do the math?
Decision: code for numbers, AI for judgment
Because prices and margins must be exact, so they are code. Agents only judge text and scam signals.
It costs more code than “ask the model”.
Why capture listings with a Chrome extension?
Decision: capture at the source
Because it sends every listing I browse, exactly as the buyer sees it.
It costs coverage is only what I browse.
Why cache the market view?
Decision: 30-minute cache
Because it lets the database sleep between visits.
It costs numbers can be 30 minutes old.
Next: cross-border sourcing.
