Skip to content

Writing

Blog

AI, agents and what I learn building from Patagonia.

From 0 to WhatsApp Payments: Mercado Pago + Stripe from a Single Conversation

How I built a payment system embedded in WhatsApp that processes medical orders and charges automatically with Mercado Pago and Stripe.

WhatsAppPaymentsMercado PagoStripeExamyaIntegrationArchitecture

FHIR + Law 21.668: How Examya Is Preparing for Chile's Mandatory Interoperability

How we're adding a FHIR layer on top of Examya's current stack (NestJS + Prisma + pgvector) to comply with Law 21.668 without rewriting anything.

FHIRLaw 21.668InteroperabilityDigital HealthChileExamyaHL7NestJSpgvector

Clinical labs: the missing piece for healthcare interoperability in Chile

We mapped 245 clinical labs from Arica to Punta Arenas. Four out of ten lack a functional digital presence. Law 21.668 will force them to interoperate in 2026. Here are the ground-level data.

Digital HealthClinical LabsInteroperabilityChileExamyaAutomation

PostgreSQL + Drizzle ORM: My Favorite Stack for AI Projects

How Drizzle ORM transformed my backend development in AI projects with TypeScript type safety and production performance.

PostgreSQLDrizzle ORMTypeScriptAIBackendPrismaNestJS

Chile now requires clinical record interoperability: why this changes everything for digital health

Law 21.668 mandates all healthcare providers in Chile to make clinical records interoperable. I analyze what this means technically, which standards are coming (FHIR, SNOMED CT, AIToF), and how Examya is preparing for this newly mandatory market.

HealthTechInteroperabilityFHIRChileLaw21668ExamyaAISNOMEDHL7DigitalHealth

Crowdsourcing medical prices: how Examya builds cost transparency layer by layer

The real architecture behind Examya's 3-layer pricing intelligence: FONASA data, user crowdsourcing, and order generation from WhatsApp. With code, design decisions, and real bugs.

AIExamyaCrowdsourcingFONASAWhatsAppPricingHealthcareAgents

Medical OCR on WhatsApp: how my agent reads exam orders and lab results

The real architecture behind Examya's OCR pipeline: how an AI agent classifies WhatsApp photos, decides if they're medical orders or lab results, and automatically generates FONASA quotes. With real bugs and design decisions explained.

AIOCRWhatsAppExamyaAgentsArchitectureFONASAVision

DeepEval: how I measure the quality of my medical agent with objective metrics

How I built an evaluation layer with DeepEval to measure the quality of Shuri, Examya's medical agent. With real data: from 20% to 70% on E2E, custom metrics for Chile's FONASA system, and why gpt-5-nano doesn't work for structured output.

AIDeepEvalEvaluationExamyaLLMTestingAgentsProduction

Bidirectional Mac-VPS Sync with Engram: the brain that never sleeps

A technical tutorial on building a bidirectional sync pipeline between a Mac, a VPS in Germany, Engram, Obsidian, and the Karpathy knowledge management method. Using Python scripts, git, and cron jobs.

AIObsidianEngramVPSKarpathySyncAutomationPKMPipeline

pgvector + Embeddings in Production: The Foundation of Medical Reasoning in Examya

Architecture for semantic search and text similarity in production with pgvector, pg_trgm, and real MINSAL data.

AIPostgreSQLpgvectorExamyaProductionMedical

My Digital Brain: How I Connected Memory, Knowledge, and Automatic Publishing

How I built a system that extracts AI memories from a VPS, organizes them in Obsidian Karpathy-style, and publishes articles automatically to a blog, X.com, and LinkedIn.

AIObsidianEngramAutomationPKMAgentsVPS

MCP / Tool Use: The Future of Real Tool Integration

How Model Context Protocols are revolutionizing the way AI agents interact with external tools to execute complex tasks.

AIAgentsMCPIntegrationAutomation

One Week of Building: 82 Decisions That Shaped an AI Product

What Engram's memories reveal about a real week of development: bugs caught, architecture hardened, and the invisible decisions that make a medical agent work.

AIAgentsDevelopmentExamyaOpenClawMemory

Examya: how I built a medical WhatsApp agent that processes exam orders

Technical details of implementing the Shuri agent in Examya, a system for processing medical orders via WhatsApp with FONASA integration.

AIWhatsAppAgentsExamyaFONASAShuri

From Equipment on the Street in Full Lockdown to Building AI Agents in Patagonia

I'm not the developer who learned to code on YouTube. Twelve years solving real problems in healthcare, management and business before writing a single line of code. This is the story.

storyaipatagoniabiohealthentrepreneurship