AI Engineer · Lahore, Pakistan · open to remote

Arslan Ali

I build AI agents and automations that real customers and staff use every day, and I own them end to end, from talking to the team that has the problem to shipping, monitoring and fixing what breaks. This page shows the systems I've built, how they work, and which ones you can try right now.

▶ Try Duo Rank (live demo) Download CV LinkedIn arslanali1181@gmail.com
2production AI agents
32MCP tools across 2 servers I built
20+agent releases shipped
100%agent availability with model fallback
~48%lower AI running cost

Production AI agents

Built for KFood, a farm-to-table food brand (Waseela Pakistan), where I work as AI Integration Engineer.

Website customer-service agent Live

A chat assistant on shop.kfood.pk that answers product, order-status and "where does this come from" questions. Open the site and use the chat widget to try it.

Customer chat→Agent on Cloudflare Workers→Shopify Admin API tools→Answer + human review
  • Tool calling: product lookup, order status and paginated search against Shopify, so answers come from live data, not the model's memory.
  • Never down: multi-provider fallback routing (gpt-oss-120b → Gemini 2.5 Flash-Lite), rebuilt each time a provider retired a model.
  • Learns from failures: I read real conversations, and each wrong answer (invented prices, wrong bundle, replies too long) became a rule plus a replay test. 20+ releases this way.
  • Cheaper: cut the system prompt from about 6,200 to 3,200 tokens; with routing changes, AI cost dropped about 48%.
Cloudflare WorkersD1Shopify Admin APITool callingGuardrailsReplay evals

WhatsApp ordering agent Internal

Built from scratch for fresh-milk home delivery in Lahore. Its own D1 data model for delivery zones and products, webhook handling, and a browser test console that replays saved conversations before every release, a lightweight regression eval.

WhatsApp Business APIWebhooksD1Evals

Meta AI agent on WhatsApp Internal

Integrated Meta's AI agent with KFood's WhatsApp Business account and trained it on the shop.kfood.pk catalogue, FAQs and delivery policies, so customers get answers on WhatsApp as well as on the website.

Meta Business AIWhatsAppKnowledge setup

Human-in-the-loop review dashboard Internal

So the customer-service team can see every agent conversation, drill into any of them, export to CSV and take over a case. Metrics API plus auto-refresh. Internal because it shows real customer conversations.

Cloudflare PagesChart.jsMetrics API

MCP servers I built

They let Claude (or any MCP client) query live business data in plain language, for example "how much did we spend on ads this week and which creative converted?", instead of someone exporting spreadsheets.

Shopify + PostEX Key-protected

18 tools covering orders, sales, customers, inventory, discounts, refunds, order attribution and PostEX courier tracking.

get_sales_summarysearch_orderget_recent_ordersget_abandoned_checkoutsget_inventoryget_order_attributionget_customer_city_breakdownget_refunds_returnspostex_track_orderpostex_delivery_summary+8 more

Meta Ads + Facebook Page + Google Ads Key-protected

14 tools covering ad spend and ROAS, campaign/ad-set/creative performance, the Facebook Page inbox (response times, peak hours) and Google Ads keywords.

get_account_summaryget_campaign_summaryget_ad_creative_performanceget_daily_spendget_inbox_statsget_response_time_reportget_peak_hoursgoogle_campaign_summarygoogle_keyword_performance+5 more
Claude / MCP client→ secret key →MCP server (Cloudflare Worker)→Shopify · PostEX · Meta Graph · Google Ads APIs

These servers return real company and customer data, so they are not public. Every call needs a secret key, and all API credentials are stored as encrypted Worker secrets, never in code. I'm happy to demo them live on a call.

Duo Rank: my personal AI content engine Live demo

A multi-agent pipeline I designed, built and run myself on my own Cloudflare account. Open the dashboard → (view-only for visitors, so nobody can spend credits or publish).

How it works: 10 Workers, one D1 database
Keyword discovery→Semantic clustering→Research brief→Writer→Fact-check→Images→Human review→Publish to WordPress

An orchestrator worker runs one article end to end, and a bulk runner processes many keywords in a queue. Six workers call LLMs through a shared fallback module that rotates across providers (Groq, Cerebras, Mistral, DeepSeek, OpenRouter, Gemini, then Workers AI), so one provider being down or rate-limited doesn't stop the pipeline.

Problems I found and fixed in production
  • 7.76 million D1 row reads a day from a query pattern. I fixed it with five targeted indexes.
  • A re-clustering loop that ran on every pipeline run.
  • The model inventing product claims and wrong dates. I caught these by adding a fact-check step and verification rules.
What to look at in the demo
  • Dashboard: 108 articles generated across 2 sites, with status (draft, needs review, published).
  • Pipeline: per-step progress for bulk jobs. Content Queue: every article with its fact-check status.
Cloudflare WorkersD1React + ViteAgent orchestrationMulti-provider LLM fallbackWordPress REST API

No user sign-up or payments yet; it's a single-owner tool. Adding auth and Stripe billing is the next step to turn it into a SaaS.

Automation

Daily leadership report Internal

Every morning leadership gets one mobile-friendly email that combines Shopify (GraphQL Admin API) and BrainQue order-management data. It isn't an AI agent: it's a Cloudflare Worker plus Google Apps Script, with no servers and no running cost. I built it with Claude Code and shipped 10+ versions in two weeks from leadership feedback.

  • Cross-checks amounts between the two systems and flags mismatches.
  • Catches inflated cancellation counts caused by bulk clean-ups.
  • Flags stale data instead of failing silently.
  • Separates orders that really need follow-up from parcels already returned, and lists orders to close in Shopify with reasons.
  • Read-only access, encrypted secrets and short-lived OAuth tokens.
Cloudflare WorkersShopify GraphQLGoogle Apps ScriptData quality checks

How I build: Claude Code every day

  • Project instructions for each codebase: what the system does, rules it must not break, how to test.
  • MCP connections to the systems I work with (ERPNext, Shopify, ads data), so the agent works from real context.
  • Custom skills for repeated work, for example one that drafts on-brand customer replies in English, Urdu and Roman Urdu.
  • Small, scoped tasks run in parallel, and I review every diff before it ships.
  • Real-data checks: fixes are verified against replayed conversations or live data, not "looks right".

This page itself was built and deployed with Claude Code, including the security review that put the MCP servers behind keys and made Duo Rank view-only for visitors.

Stack

Languages: Python, TypeScript/JavaScript, SQL, Kotlin, Java

AI: tool calling, agent workflows, MCP servers, Claude API, OpenAI-compatible APIs, Gemini, model fallback routing, guardrails, replay evals

Platforms: Cloudflare Workers, Pages and D1, Shopify Admin and GraphQL APIs, Meta Graph and Google Ads APIs, WhatsApp Business API, Frappe/ERPNext, Google Apps Script, Git

Background: MCS (Virtual University of Pakistan), BSc Computer Science (University of Sargodha). Android developer 2017–2021. Years in field operations before engineering, so I start from the real process.