Ali MarefatiDownload CV

Hi, I'm

Ali Marefati

AI Engineer & Product Leader

Technology leader with 7+ years building products and teams that move business metrics. CTO of Ahanonline, Iran's largest online steel retailer, where we cut technology costs by up to 80% and shipped RAG-based AI. Built its B2B marketplace Gereft into a platform for 700 suppliers and 10K purchase requests a month. Earlier took a SaaS for physicians from zero to 150+ customers single-handedly.

Send an email

Tehran, Iran

Portrait of Ali Marefati
Career from December 2019 to today. The Gereft and Ahanonline roles run concurrently.

Experience

Ahanonline

Iran's largest online steel retailer and #1 steel website

Read the case studyCutting technology costs by up to 80% at Iran's largest online steel retailer
  1. Chief Technology Officer (CTO)

    Mar 2025 – Present
    • Lead a 7–10 person technology team, driving business workflows directly with the CEO and founders, leading LLM/AI adoption and coordinating SEO, product, infrastructure and network teams.
    • Cut technology costs by up to 80% through CDN optimization, server and compute cost reduction, and redesigned business workflows.
    • Built an AI customer-support chatbot with RAG (n8n, OpenAI, pgvector, Elasticsearch) and LLM-generated SEO content, increasing purchase-request submissions.
    • Kept the platform fully online during the 2025 war, reachable from inside Iran and abroad, while hardening security against attacks.
    • Fully automated delivery with CI/CD on self-hosted GitLab and Docker Swarm, with LLM-based review of every merge request that flags security issues and bugs as MR comments.
  2. Software Engineer

    Mar 2024 – Feb 2025
    • Cut outages from several per day to near zero by stabilizing the legacy platform through code cleanup and performance optimization.
    • Owned DevOps, security hardening and technical SEO for the SEO-critical website: brought all Core Web Vitals to green and kept #1 Google rankings on core keywords while organic traffic grew.

Gereft

Ahanonline's B2B steel marketplace, concurrent role

Read the case studyRebuilding a B2B steel marketplace and scaling it 30×
  1. Tech Lead

    May 2023 – Present
    • Led a full rewrite of the marketplace in 3 months (Next.js, NestJS), then grew it over 2 years to 700 suppliers and ~10,000 purchase requests/month.
    • Scaled purchase-request handling 30× (10 → 300+/day) with the same 3-person operations team by redesigning business workflows and automating them on the new platform.
    • Shipped the company's first production AI: an LLM pipeline that transcribes calls (ElevenLabs speech-to-text), indexes them in Elasticsearch, extracts and classifies requests with OpenAI GPT models and auto-routes them to suppliers, plus AI follow-up of every purchase request, all orchestrated on n8n.
    • Built and led a 4-person engineering team (interviewed, hired 3 engineers, negotiated salaries), reporting directly to the CEO and designing business workflows with the product manager.
  1. Full Stack Developer

    Jun 2021 – Apr 2023
    • Took a subscription SaaS for physicians (online consultation, chat, booking, doctor websites) from idea to 150+ paying physicians in 12 months.
    • Sole product and engineering owner, working directly with the CEO: requirements, business workflows, UX/UI design, architecture and delivery.
  2. Back End Developer

    Dec 2019 – Jun 2021
    • Drove the re-architecture of the backend from Strapi to NestJS and optimized the database, improving overall system performance up to 5×; translated business needs into feature and business-logic design with the product team.

Projects

Open source

Skills

Leadership & product
  • Team building & hiring
  • working with CEO & founders
  • product design
  • business workflow design
  • cross-team coordination (SEO, product, infrastructure, network)
AI & LLMs, in production
  • LLM integration (OpenAI GPT API)
  • prompt engineering
  • AI agents & tools (n8n)
  • speech-to-text (ElevenLabs)
  • RAG & AI chatbots (pgvector, Elasticsearch)
  • LLM pipelines over call transcripts
  • LLM-based code review
Backend
  • TypeScript
  • Node.js
  • NestJS
  • Go
  • Strapi
  • familiar with Python
Frontend
  • Next.js
  • React
Data & messaging
  • PostgreSQL (high availability, tuning, monitoring)
  • pgvector
  • MongoDB
  • MySQL
  • Elasticsearch
  • Redis
  • BullMQ
  • RabbitMQ
DevOps & security
  • Docker
  • Docker Swarm
  • CI/CD
  • self-hosted GitLab
  • Cloudflare (CDN, WAF, DNS)
  • Iranian cloud providers
  • bare-metal servers
  • infrastructure cost optimization
  • security hardening
  • attack mitigation
  • technical SEO
Languages
  • Persian (native)
  • English (advanced)
Education
  • B.Sc. in Computer Science, Kharazmi University, Tehran

Let's build something.

For collaboration, advisory work or a conversation about a product, send an email.

marefati110@gmail.com